Customise GridComboBoxCellRenderer to set default values.

I want to create a special combobox which only display some values I set. I've created ComboBoxCellModel and Renderer for that. And override OnInitialize function to do that. In OnInitialize function, I set the ListBoxPart.DataSource to default values. But when I clicked on droplist, the list is still empty. I've also tried to set StyleInfo.ChoiceList in OnInitialize function, but it didn't work either.

Could anyone tell me how to do that. Thanks.


4 Replies

BI bigfoot January 9, 2008 12:45 AM UTC

Problem solved. forgot to put base.OnInitialize in the begining of the call.

There's one thing I'm still confused about. OnInitialize is called every time I clicked on the dropdown button. Isn't cell only initialized once?



FS Fathima Shalini P Syncfusion Team January 9, 2008 12:59 PM UTC

Hi,

Thank you for your interest in Syncfusion Products.

To analyse and reproduce this issue, could you please send us a sample, so that we could sort out the cause of issue and provide you a better solution.

Please let me know if any concerns.

Regards,
Fathima



BI bigfoot January 10, 2008 04:06 AM UTC


Can I get your email please? Thanks.



FS Fathima Shalini P Syncfusion Team January 10, 2008 10:25 AM UTC

Hi,

Here is my mail id : [email protected]. You can also send your sample to [email protected].

Please let me know if you have any concerns.

Regards,
Fathima


Loader.
Up arrow icon