CalendarEdit not working in PropertyGrid

Hi, i have a query regarding implementation of CalendarEdit control in Property Grid, I have created a customEditor for it, & in code behind of PropertyGridWindow
i have wrote some what like below: 

"CustomEditor calEditor = new CustomEditor() { HasPropertyType = true, PropertyType = typeof(DatesCollection), Editor = new Controls.CalendarControlEditor() };
 ColumnProperties.CustomEditorCollection.Add(calEditor);
 ColumnProperties.RefreshPropertygrid();"

However when this window is loaded, it does not allows to select any dates, i am attaching an image regarding my query.

Query 2) Same is the case with SFColorPalette, it also shows in window, but when selected it does not remain selected in its property of SelectedObject
Can someone please help?

Attachment: CalendarEditQuery_4d82c62f.zip

6 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team March 21, 2018 11:54 AM UTC

Hi Nitin

Thank you for contacting Syncfusion Support.

Query 1: Hi, i have a query regarding implementation of CalendarEdit control in Property Grid, I have created a customEditor for it, & in code behind of PropertyGridWindow

We have checked the reported query that the Date has not been selected in CalendarEdit and we observed that the DateChanged event is not called on changing the dates when the control loaded in PropertyGrid. So we have confirmed it is as a defect and logged a report on this. This fix would be available in our Upcoming volume release SP2, 2018.

Query 2: Same is the case with SFColorPalette, it also shows in window, but when selected it does not remain selected in its property of SelectedObject
Can someone please help?

We have checked the reported query by loading the SfColorPallete in the PropertyGrid as a customeditor, but we are able to select the color. Please find the sample for the same for your reference.

Sample: http://www.syncfusion.com/downloads/support/forum/136549/ze/PropertyGridSample-400359838.zip 

Can you please check the sample and let us know whether we followed correct procedure to reproduce the issue. If not kindly modify our sample into issue reproducible , it would be helpful for us to proceed on this.

Regards
Vijayalakshmi V.R. 



NP Nitin patel March 22, 2018 07:10 AM UTC

Hi, 
Firstly i would like to thank you for the solution of query 2, its binding properly with the property of Product.
However i saw that its not looking much user friendly as that color palette is not kind of like ColorPicker (dropdown which when we click on dropdown it open its fullview & later we select & color palette closes).

what i tried?
I tried by putting a custom usercontrol there which had textbox & a button, & on button click it opens that color palette control in separate window which user than selects & window closes, but on its finish the color thats selects is not actually binding to the property.

Can you please help me in that? or provide me an example? it would be really appreciated.


GS Gokul Sainarayanan Syncfusion Team March 23, 2018 09:00 AM UTC

Hi Nitin,

We have checked your reported query and we have a control “ColorPickerPalette” which has a dropdown button as per your query. When the dropdown button is clicked the ColorPickerPalette opens and after selecting the color it gets closed. We have modified the sample by replacing the SfColorPalette with the ColorPickerPalette. You can download the sample from the below location.

Sample Link: http://www.syncfusion.com/downloads/support/forum/136549/ze/PropertyGridSample-250684188

Please check and let us know whether it meets your requirement.

Regards,
Gokul S


VR Vijayalakshmi Roopkumar Syncfusion Team March 27, 2018 12:06 PM UTC

Hi Nitin

On further analyzing the reported issue "Dates are not able to select in the CalendarEdit when it is loaded in PropertyGrid" with PropertyGrid, we have found that you have binded the SelectedDate property with CalendarEdit, without binding the collection of dates for that property. Due to this the DateChanged event does not invoked. To get the dates selected, we need to bind the property with Collection of Dates. Now you can able to select the date in CalendarEdit .We have modified the sample for the same, please refer it from following location:

Sample: http://www.syncfusion.com/downloads/support/forum/136549/ze/PropertyGridSample_modified1280495768.zip 

Regards
Vijayalakshmi V.R. 



NP Nitin patel March 27, 2018 12:27 PM UTC

Hi
Thanks for replying to my both the queries, i have implemented the solutions & it was quiet useful, & both my queries has been resolved.

Thanks & regards


VR Vijayalakshmi Roopkumar Syncfusion Team March 28, 2018 04:16 AM UTC

Hi Nitin

Thank you for the update.

We are glad the reported issue has beee resolved at your end.

Please let us know if you need any other assistance.

Regards
Vijayalakshmi V.R.

Loader.
Up arrow icon