<telerik:RadGrid ID="RadGrid_ECNEntity" runat="server" AutoGenerateColumns="False"GridLines="None" OnNeedDataSource="RadGrid_ECNEntity_OnNeedDataSource" OnInsertCommand="DoInsert"> <MasterTableView CommandItemDisplay="Top" EditMode="InPlace"> <Columns> <telerik:GridTemplateColumn DataField="EntityName" HeaderText="EntityName" UniqueName="EntityName" SortExpression="EntityName"> <ItemTemplate> <asp:Label ID="lblECNEntityName" runat="server" Text='<%#Bind("EntityName") %>' /> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox ID="RadComboBox_EntityName" runat="server" EnableLoadOnDemand="true" DataTextField="Value" DataValueField="Key" OnItemsRequested="RadComboBox_EntityName_OnItemsRequested" AllowCustomText="true" ShowMoreResultsBox="true" OnClientSelectedIndexChanged="LoadECnEntityKeys" /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="EntityKeyName" HeaderText="EntityKeyName" UniqueName="EntityKeyName" SortExpression="EntityKeyName"> <ItemTemplate> <asp:Label ID="lblECNEntityKeyName" runat="server" Text='<%#Bind("EntityKeyName") %>' /> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox ID="RadComboBox_EntityKeyName" runat="server" EnableLoadOnDemand="true" EnableViewState="false" DataTextField="Value" DataValueField="Key" OnItemsRequested="RadComboBox_EntityKeyName_OnItemsRequested" AllowCustomText="true" ShowMoreResultsBox="true" OnClientItemsRequested="ItemsLoaded"/> </EditItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid> <telerik:RadScriptBlock ID="scriptBlock" runat="server"> <script type="text/javascript"> function LoadECnEntityKeys(sender, eventArgs) { var EntityKeyName = $find("<%= RadGrid_ECNEntity.ClientID%>").get_masterTableView().get_item().findControl("RadComboBox_EntityKeyName"); var item = eventArgs.get_item(); EntityKeyName.set_text("Loading..."); // if a Entity is selected if (item.get_index() > 0) { // this will fire the ItemsRequested event of the // EntityKey combobox passing the EntityID as a parameter EntityKeyName.requestItems(item.get_value(), false); } else { // the -Select a Entity- item was chosen EntityKeyName.set_text(" "); EntityKeyName.clearItems(); } } function ItemsLoaded(sender, eventArgs) { if (sender.get_items().get_count() > 0) { // pre-select the first item sender.set_text(sender.get_items().getItem(0).get_text()); sender.get_items().getItem(0).highlight(); } sender.showDropDown(); } </script> </telerik:RadScriptBlock>
I am getting error for this line
var EntityKeyName = $find("<%= RadGrid_ECNEntity.ClientID%>").get_masterTableView().get_item().findControl("RadComboBox_EntityKeyName");




How to show time picker even if I create appointment on month view or week view? any chance to achieve that?
Regards
I am trying to implement server side custom paging and using https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/paging/custom-paging/defaultcs.aspx as a reference.
Please refer to your following code
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { MyBusinessObjectCollection MyBusinessObjectCollection1 = new MyBusinessObjectCollection(); int startRowIndex = (ShouldApplySortFilterOrGroup()) ? 0 : RadGrid1.CurrentPageIndex * RadGrid1.PageSize; int maximumRows = (ShouldApplySortFilterOrGroup()) ? MyBusinessObjectCollection1.SelectCount() : RadGrid1.PageSize; RadGrid1.AllowCustomPaging = !ShouldApplySortFilterOrGroup(); RadGrid1.DataSource = MyBusinessObjectCollection1.Select(startRowIndex, maximumRows); }
If the user uses filtering, say in the example, searching for Unit Price 9, in this case, your ShouldApplySortFilterOrGroup() would return a true. That means maximumRows will be count of entire dataset. So, MyBusinessObjectCollection1.Select(0, 100000); would be very expensive.
I also noticed, that when filtering, items in pages in the bottom right of the grid doesnt display the correct item count.
Do you have another working example of server side paging which allows filtering?
Thank you

I am in the process of adding Time Zone functionality into our existing Scheduler which did not include it. I am having an issue when I set a TimeZoneId on the Scheduler and then use the Advanced Form with EnableTimeZonesEditing turned on. The times of the appointment that get stored in UTC reflect the time zone of the Scheduler, not for the appointment. For example, if I set the TimeZoneId of the Scheduler to "Pacific Standard Time" and add an appointment for July 25, from 1:00 PM to 2:00 PM with a timezone of "Eastern Standard Time", I would expect the stored time of the appointment to be 17:00 to 18:00 UTC. However, when I view the appointment in the AppointmentInsert event, the start time is 20:00 UTC and then end time is 21:00 UTC, even though the TimeZoneId of the appointment shows as "Eastern Standard Time".
Am I supposed to do the calculation myself when adding an appointment with a different timezone than the Scheduler, or should this be done automatically? Looking at the code for the Time Zones demo for the Scheduler, I don't see any additional code for this calculation, yet it seems to work as expected.