We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

how to show AutoComplete box in GridDataBoundGrid Filterbar

Thread ID:

Created:

Updated:

Platform:

Replies:

102552 Feb 8,2012 11:09 AM May 17,2012 11:38 PM Windows Forms 8
loading
Tags: GridControl
venkatesh
Asked On February 8, 2012 11:09 AM

How can i show AutoComplete box in GridDataBoundGrid Filterbar.
I have tried the following code which is not showing any affect.

GridStyleInfo style = new GridStyleInfo(); style.ModifyStyle(this.BaseStylesMap["Header"].StyleInfo, StyleModifyType.Copy);
style.CellType = "ComboBox";
style.ExclusiveChoiceList = true;
style.BaseStyle = "Standard";
style.Font.Bold = false;
style.BackColor = this.TableStyle.BackColor;
style.Borders.Bottom = new GridBorder(GridBorderStyle.Dashed);
style.DropDownStyle = GridDropDownStyle.Editable;
_filter.WireGrid(this, style);
_rowHeaderCount++;

Can you guys please suggest me a way to change the dropdown in the filterbar to Autocomplete box


Asarudheen S [Syncfusion]
Replied On February 14, 2012 03:33 PM

Hi Plotnikova,

Thanks for the update.

It is hard to trace why this issue is arising without seeing the sample. We have searched our support database for any such similar issues, and found no similar issues found.

Is there any possible way for you to provide us with a sample that shows this issue? It will be easier for us to have a closer look into the problem and to resolve it.

Thanks for providing additional information any.

Regards,
Asarudheen.



Asarudheen S [Syncfusion]
Replied On February 15, 2012 12:41 AM

Hi Venkatesh,

Please ignore our previuos update.

Please make use of folliwng code to achieve the reported behavior.


GridFilterBar filter = new GridFilterBar();
filter.WireGrid(this.gridDataBoundGrid1);
filter.StyleInfo.DropDownStyle = GridDropDownStyle.AutoComplete;



Please let us knowm if this helps.

Regards,
Asarudheen.


venkatesh
Replied On February 15, 2012 11:27 AM

Hello Asarudheen,

Thanks for your reply.

The solution you have suggested will turn all columns in Flterbar to auto complete but i have to do it for one specific column.

Here is my requirement.

My grid got more than 15 columns.. out of 15 columns filters i have to change one columns filter to auto complete... rest 14 filters in filter bar should behave like normal dropdown(combobox).


venkatesh
Replied On February 17, 2012 06:04 AM

Hi,

Setting "filter.StyleInfo.DropDownStyle = GridDropDownStyle.AutoComplete;" is not showing any affect.
what i have noticed while debugging is "GridComboBoxCellRenderer" StyleInfo.DropDownStyle is always showing as "Exclusive" and i am not able to change it to "Editable" or "AutoComplete"

While debugging Filterbar Styleinfo is showing as AutoComplete but not working as auto complete.. i think this is something i have do with GridComboBoxCellRenderer style...

It is important for me to Change a column in the filter bar to editable or autocomplete...



Cheers,


Mercy C [Syncfusion]
Replied On February 29, 2012 07:09 AM

Hi venkatesh,

You cannot have autocomplete for one particular column in GridDataBoundGrid as GridDataBoundGrid is wired within a filterbar.
But you can have filter bar as per your requirement in GridGroupingControl.

Please refer to the sample in the following link
http://www.syncfusion.com/downloads/Support/DirectTrac/91426/I62438-502677779.zip

Please let me know if you have any concerns.

Regards,
Mercy.C




I62438_27c1d021.zip

venkatesh
Replied On May 17, 2012 07:48 AM

Hi,

Setting "filter.StyleInfo.DropDownStyle = GridDropDownStyle.AutoComplete;" is not showing any affect. 
what i have noticed while debugging is "GridComboBoxCellRenderer" StyleInfo.DropDownStyle is always showing as "Exclusive" and i am not able to change it to "Editable" or "AutoComplete"

While debugging Filterbar Styleinfo is showing as AutoComplete but not working as auto complete..

venkatesh
Replied On May 17, 2012 07:48 AM

Hi,

Setting "filter.StyleInfo.DropDownStyle = GridDropDownStyle.AutoComplete;" is not showing any affect. 
what i have noticed while debugging is "GridComboBoxCellRenderer" StyleInfo.DropDownStyle is always showing as "Exclusive" and i am not able to change it to "Editable" or "AutoComplete"

While debugging Filterbar Styleinfo is showing as AutoComplete but not working as auto complete..

Ragamathulla B [Syncfusion]
Replied On May 17, 2012 11:38 PM

Hi Plotnikova,

Thanks for the update.

I would request you please provide your version details and also it is hard to trace why this issue is arising without seeing the sample. We have searched our support database for any such similar issues, and found no similar issues found.

Is there any possible way for you to provide us with a sample that shows this issue? It will be easier for us to have a closer look into the problem and to resolve it.

Thanks for providing additional information any.

Regards,
Ragamathullah B.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;