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.

Combobox column with Checkbox and calculated row

Thread ID:

Created:

Updated:

Platform:

Replies:

124743 Jun 27,2016 06:12 AM Jun 29,2016 01:24 PM Windows Forms 3
loading
Tags: GridDataBoundGrid(Classic)
Bertuzzi Mario
Asked On June 27, 2016 06:12 AM

Hello,
I'm trying to add inside a combobox column a checkbox near each voice like in the normal combobox control with multiple choice, but I still haven't found a solution.
After this, when the user close the dropdownmenu, the text inside the row must be a combination of the multi selection (example: the user check the 3 voice     TB,TC,TD => in the row there will be written TB - TC - TD.

Thanks for your attention,
Regards

Piruthiviraj Malaimelraj [Syncfusion]
Replied On June 28, 2016 06:37 AM

Hi Bertuzzi, 

Thank you for using Syncfusion products. 
 
We don’t have inbuilt support for adding the Checked list box cell type. The checkbox list can be used inside of the combobox dropdown by using the custom cell renderer and custom cell model.  We have already provided the dashboard sample for adding the CheckBox list in to the combobox with GridControl. Here we have provided the sample with GridGroupingControl. In this sample , we have customized the GridStaticCellModel and GridStaticCellRenderer to create the custom cell type. Please refer to the attached sample. 

Code snippet 
//Adding the custom cell model. 
this.gridGroupingControl1.TableModel.CellModels.Add("DropDownUserControl", new DropDownUserCellModel(this.gridGroupingControl1.TableModel, new DropDownUser())); 
this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.CellType = "DropDownUserControl"

Sample link 
 
Dashboard sample location 
<InstalledLocation>Syncfusion\EssentialStudio\<Version Number>\Windows\Grid.Windows\Samples\Custom Cell Types\Drop Down Cell Demo 

Regards, 
Piruthiviraj 


Bertuzzi Mario
Replied On June 28, 2016 08:53 AM

Hello,

Thanks for the quick answer, I've already found that sample but the big issue is that my List can change meanwhile the runtime, since it derivates from a DataTable.
I'm trying with the Model and the Renderer to create a Custom CellType with a ComboDropDown and a TreeViewAdv used as PopUpControl.
Unfortunately even if the tree is populated, when I press the button it doesn't appear the dropdown menu.
I'll attach the class DropDownCheckedList where the Custom CellType is created and the function called from the Form when activated.

Regards

Attachment: Code_abb12c08.7z

Piruthiviraj Malaimelraj [Syncfusion]
Replied On June 29, 2016 01:24 PM

Hi Bertuzzi, 

Thank you for your update. 

We had analyzed your reported query in our end, we believe that your requirement is to update the combobox dropdown values dynamically for the modified value in from the data source. Please refer to the below KB for updating the combobox values dynamically. If this is not your requirement, please revert us with your sample or modify the attached sample with your customization, so that we could provide you the prompt solution at the earliest. 

KB link: 
 
Sample: 

Regards, 
Piruthiviraj 
 


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.

;