This is a migrated thread and some comments may be shown as answers.

SharedCalendar in a GridTableView not working

1 Answer 57 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Stewart Partington
Top achievements
Rank 1
Stewart Partington asked on 14 Jan 2009, 03:20 PM
Hello,

I have a grid within a grid, using the radGrid as the parent grid and the GridTableView as the child grid. In the child grid, I have a template column which gets a RadDatePicker added to it. This all works wonderfully, however it results in pages that are > 500kb even if there are only 10 child rows being shown (it seems that the radCalendar is fairly heavy).

I came across the following example to use the SharedCalendar property of a RadDatePicker:

http://demos.telerik.com/aspnet-ajax/Calendar/Examples/Design/Sunny/DefaultCS.aspx

These examples work great for me if I'm not dynamically adding RadDatePickers to the form.

However, when using the GridTableView, I'm adding the RadDatePickers dynamically. So it makes sense for me to dynamically set the .SharedCalendar property to my shared calendar. I cannot however make this work - when I click on the RadDatePicker, the calendar is not shown.

I've tried setting the .SharedCalendar property in my template class for the template column. I've also tried setting it on the itemDataBound event of the parent grid. Niether works.

I'm guessing I'll be asked to post an example of the project, which I'm willing to do. However, I'm hoping there's a quick fix to this...

Thanks!

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 19 Jan 2009, 10:50 AM
Hello Stewart,

Based on this information, it is hard to determine what is causing this discrepancy.
I suspect there is a problem with the way the controls are dynamically added.
To best trace the issue, you can open a formal support ticket, and send us the problematic code, for additional review.

Kind regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
Stewart Partington
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or