sfComboBox1.SelectedItem

Hi

how to call an action so that after the change

textBox1.text

1001,1002,1009,1005

turned into

sfComboBox1 

Name1, Name2, Name9, Name5

and only filtered contained in textBox1.text


please help

Gregory



Attachment: test_SfComboBox_2856c35f.rar

18 Replies

EM Elakkiya Muthukumarasamy Syncfusion Team September 23, 2021 12:39 PM UTC

Hi Gregory, 
 
Greetings from Syncfusion. 
 
We have checked your query and we suspect that you need to filter the SFComboBox dropdown items based on the TextBox text changed. We have checked your textBox1_TextChanged method and added the condition to get the Names(SFComboBox Fliter item) based on the Id(TextBox.Text) and added the names to SFComboBox SelectedItems. 
 
 
 
Please try it with the provided solution and let us know if you need nay further assistance on this. 
 
Regards, 
Elakkiya 



GP Gregory Pe September 24, 2021 05:48 PM UTC

Hi Elakkiya 

Thank you for your answer the filter works I still need that after changing textBox1.text ( 1001,1002,1009 ) it will dynamically and automatically appear in sfComboBox1 Name1, Name2, Name9 and mark

Regards,

Gregory



EM Elakkiya Muthukumarasamy Syncfusion Team September 27, 2021 11:52 AM UTC

Hi Gregory, 

Thanks for your update. 

We have checked your query and found that we can display the filtered items dynamically by adding the filterItems to checkedItem collection.  Please refer the sample for the same. 



Please try it with the above solution and let us know if you need any further assistance on this. 

Regards, 
Elakkiya 



GP Gregory Pe January 20, 2022 09:05 PM UTC

HI

how to add to gridGroupingControl sfComboBox1 and multiselectioncombobox just like this is done with GridListControl


   this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.GridListControl;





SS Sampathnarayanan Sankaralingam Syncfusion Team January 21, 2022 12:02 PM UTC

Hi Gregory, 

You can achieve your requirement to set the SfComboBox and MultiSelection ComboBox to the CellType of GridGroupingControl using the below code snippet. 

SfComboBox sfComboBox = new SfComboBox(); 
List<string> country = new List<string>(); 
country.Add("India"); 
country.Add("Usa"); 
country.Add("Japan"); 
country.Add("China"); 
sfComboBox.DataSource = country; 
 
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Control; 
this.gridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyRecordFieldCell.Control = sfComboBox; 
 
//MultiSelection Combox 
SfComboBox multiselectionComboBox = new SfComboBox(); 
List<string> states = new List<string>(); 
states.Add("Delhi"); 
states.Add("chennai"); 
states.Add("calfornia"); 
states.Add("newyork");  
states.Add("Beijing"); 
multiselectionComboBox.DataSource = states; 
multiselectionComboBox.ComboBoxMode = Syncfusion.WinForms.ListView.Enums.ComboBoxMode.MultiSelection; 
 
this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Control; 
this.gridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyRecordFieldCell.Control = multiselectionComboBox; 

Please let us know if you require further assistance from us. 

Regards, 
Sampath Narayanan.S 



GP Gregory Pe January 21, 2022 06:54 PM UTC

Thank you for your answer

1.

when I change row of columns GGCIDMulti_2

it fills in other rows automatically and doesn't save to GGCds.Tables ["GGCDT"]

2.

when I change the row of columns GGCIDMulti from "1004,1006,1008" to "1002,1004,1007"

it doesn't auto-fill me with Expression_GGCIDMulti

3

when I change row of columns GGCIDMulti_3

it does not fill writes to GGCds.Tables ["GGCDT"]

and its not working Enable the header in DropDownListView and initialize the custom control


as in the example

https://help.syncfusion.com/windowsforms/combobox/dropdown

I am sending a sample

please help

Gregory





Attachment: test_SfComboBox_55b6fe91.rar


GP Gregory Pe January 21, 2022 07:11 PM UTC

I'm sending a video


Attachment: ggc_combobox_c29c63ca.rar


SS Sampathnarayanan Sankaralingam Syncfusion Team January 24, 2022 02:35 PM UTC

Hi Gregory,


We are checking the possibilities to achieve your requirement. We will check and update you with more details on January 27, 2022.


Regards,

Sampath Narayanan.S



VS Vijayarasan Sivanandham Syncfusion Team January 27, 2022 01:22 PM UTC

Hi Gregory,

We are still working on this. We need two more business days to validate this. We will validate and update you on the details on or before January 31, 2022.

We appreciate your patience and understanding.

Regards,
Vijayarasan S 



SS Sampathnarayanan Sankaralingam Syncfusion Team January 31, 2022 04:01 PM UTC

Hi Gregory,

We are still working on this. We will validate and update you on the details on or before February 3, 2022.

We appreciate your patience and understanding.

Regards,

Sampath Narayanan.S



SS Sampathnarayanan Sankaralingam Syncfusion Team February 3, 2022 01:34 PM UTC

Hi Gregory, 

Please find the response below. 

when I change row of columns GGCIDMulti_2 
it fills in other rows automatically and doesn't save to GGCds.Tables ["GGCDT"] 

You need to set the SfComboBox to the CellType of GridGroupingControl in the QueryCellStyle as shown in the below code snippet. 

gridGroupingControl1.QueryCellStyleInfo += GridGroupingControl1_QueryCellStyleInfo; 
 
private void GridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e) 
{ 
    if (e.TableCellIdentity.Column != null) 
    { 
        if ((e.TableCellIdentity.Column.MappingName == "GGCIDMulti_2") &&  e.TableCellIdentity.RowIndex > 2) 
        { 
            multiselectionComboBox_2 = new SfComboBox(); 
            multiselectionComboBox_2.DataSource = ds.Tables["DT"].DefaultView; 
            multiselectionComboBox_2.DisplayMember = "Name"; 
            multiselectionComboBox_2.ValueMember = "ID"; 
            multiselectionComboBox_2.DelimiterChar = ","; 
            multiselectionComboBox_2.ComboBoxMode = Syncfusion.WinForms.ListView.Enums.ComboBoxMode.MultiSelection; 
            e.Style.CellType = GridCellTypeName.Control; 
            e.Style.Control = multiselectionComboBox_2; 
        } 
        else if (e.TableCellIdentity.Column.MappingName == "GGCIDMulti_3" && e.TableCellIdentity.RowIndex > 2) 
        { 
            SfComboBox sfComboBox_3 = new SfComboBox(); 
            sfComboBox_3.DataSource = ds.Tables["DT"].DefaultView; 
            sfComboBox_3.DisplayMember = "Name"; 
            sfComboBox_3.ValueMember = "ID"; 
            e.Style.CellType = GridCellTypeName.Control; 
            e.Style.Control = sfComboBox_3; 
 
            //https://help.syncfusion.com/windowsforms/combobox/dropdown 
            // Enable the header in DropDownListView and initialize the custom control. 
            sfComboBox_3.DropDownListView.ShowHeader = true; 
            CustomHeaderUserControl customTextBox_3 = new CustomHeaderUserControl(sfComboBox_3); 
            customTextBox_3.TextBox.Font = sfComboBox_3.DropDownListView.Style.ItemStyle.Font; 
            sfComboBox_3.DropDownListView.HeaderHeight = 23; 
            sfComboBox_3.DropDownListView.HeaderControl = customTextBox_3; 
 
        } 
    } 
} 

Sample Link :  
when I change the row of columns GGCIDMulti from "1004,1006,1008" to "1002,1004,1007" 
it doesn't auto-fill me with Expression_GGCIDMulti 

You have loaded the ComboBox in Expression_GGCIDMulti column and also having different Datasource and the changed value is not in the underlying Datasource, the value will not be changed. Please revert to us with more details if we have misunderstood your requirement.  
when I change row of columns GGCIDMulti_3 
it does not fill writes to GGCds.Tables ["GGCDT"] 
and its not working Enable the header in DropDownListView and initialize the custom control 
 
as in the example 

We could able to understand your requirement. Please provide more details with the video illustration about the requirement. It will be more helpful for us to provide the prompt and timely solution. 

Note : Our SfDataGrid have direct support to add GridComboBoxColumn. Please refer the below given help documentation. 

Regards, 
Sampath Narayanan.S 



GP Gregory Pe replied to Sampathnarayanan Sankaralingam February 3, 2022 07:42 PM UTC

Hi Sampath
Thank you for your answer


1. does not display the content in the gridGroupingControl1.DataSource = GGCds.Tables ["GGCDT"] in SfComboBox

2. does not change the selected items in the SfComboBox in GGCds.Tables ["GGCDT"] this can be seen in test_gridGroupingControl should change after a change in SfComboBox

3. after changing the width of the column gridGroupingControl1 the appearance crashes I send a video and a program

please help

Gregory


Attachment: test3_3746240c.zip


SS Sampathnarayanan Sankaralingam Syncfusion Team February 4, 2022 12:20 PM UTC

Hi Gregory, 


We are checking the possibilities achieve the requirement. We will check and update you with more details on February 8, 2022.


Regards,

Sampath Narayanan.S



SS Sampathnarayanan Sankaralingam Syncfusion Team February 8, 2022 03:04 PM UTC

Hi Gregory, 


We are still checking the possibilities achieve the requirement. We will check and update you with more details on February 10, 2022.


Regards,

Sampath Narayanan.S



SS Sampathnarayanan Sankaralingam Syncfusion Team February 10, 2022 02:19 PM UTC

Hi Gregory,  

Sorry for inconvenience 

We have checked the feasibility to achieve your requirement using SfComboBox. We regret that it is not possible to achieve these requirements as it is not possible to add items to the underlying collection of the ComboBox and make it as selected items in the Expression_GGCIDMulti column when editing the value in GGCIDMulti column since it may go infinitely. We regret for the inconvenience caused. Please let know if you need any other assistance from us. 

Regards, 
Sampath Narayanan.S 



GP Gregory Pe February 10, 2022 02:38 PM UTC

we resign from  Expression_GGCIDMulti column

but what about the other columns




SS Sampathnarayanan Sankaralingam Syncfusion Team February 11, 2022 04:18 PM UTC

Hi Gregory,  


We have checked the possibilities to achieve the requirement. You have to set the value manually to the underlying datatable respective to the value of combobox. We have achieved the requirement but still we need to check some use cases. We will check and update you with more details on February 15, 2022. Please find the sample from below link.


Sample Link : https://www.syncfusion.com/downloads/support/forum/172171/ze/TEST_S~1525078742


Regards

Sampath Narayanan.S



SS Sampathnarayanan Sankaralingam Syncfusion Team February 15, 2022 09:32 PM UTC

Hi Gregory,  


We are deeply regret that we couldn’t able to achieve all cases since there is no direct support of multiselection ComboBox in GridGroupingControl. You have to set the value manually to the underlying datatable respective to the value of combobox. However we have achieved some cases to set the value of comboboxcolumn of gridGroupingControl1 to the respective column of testGridGroupingControl. Please find the sample from the below Link.


Sample Link: https://www.syncfusion.com/downloads/support/forum/172171/ze/TEST_S~2-1212970405


Regards,

Sampath Narayanan.S


Loader.
Up arrow icon