I am having following markup for radCombo
<telerik:RadComboBox ID="rcbNewCategory" runat="server" Width="250px" Height="100px" Skin="Office2007"
AllowCustomText="true" ShowToggleImage="true" ShowMoreResultsBox="True" DataTextField="CategoryName" DataValueField="ID"
EnableLoadOnDemand="true"
EnableVirtualScrolling="true" HighlightTemplatedItems="true"
Visible='<%# FillCategory(DataBinder.Eval( Container, "DataItem.ID")) %>' >
<ItemTemplate>
<div>
<asp:UpdatePanel ID="pnl2" runat="server">
<ContentTemplate>
<div onclick="stopPropagation(event)" >
<asp:CheckBox runat="server" ID="chkCat" Checked="false" OnCheckedChanged="chkCat_Changed"
ToolTip='<%# DataBinder.Eval(Container,"DataItem.CategoryName") %>' AutoPostBack="true"/>
<asp:Label runat="server" ID="Label2" Text='<%# DataBinder.Eval(Container,"DataItem.CategoryName") %>'>
</asp:Label>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</ItemTemplate>
</telerik:RadComboBox>
It works fine. Even if i click inside checkbox, I can update the combobox Text with ";" seprated values.
But if i have to use ItemRequested event to show only 10 items at a time,
//OnItemsRequested="rcbNewCategory_ItemsRequested"
It fails on checkbox selection change event.
Reason: ItemCount for combobox is always 0 at the server side.
Please can you tell me the quick solution. Do i am missing some property.
I was thinking to bind the control again at the page load. But how i will know the items that were bound before. Do i have to maintain status for it in viewstate or hidden field?
<telerik:RadComboBox ID="rcbNewCategory" runat="server" Width="250px" Height="100px" Skin="Office2007"
AllowCustomText="true" ShowToggleImage="true" ShowMoreResultsBox="True" DataTextField="CategoryName" DataValueField="ID"
EnableLoadOnDemand="true"
EnableVirtualScrolling="true" HighlightTemplatedItems="true"
Visible='<%# FillCategory(DataBinder.Eval( Container, "DataItem.ID")) %>' >
<ItemTemplate>
<div>
<asp:UpdatePanel ID="pnl2" runat="server">
<ContentTemplate>
<div onclick="stopPropagation(event)" >
<asp:CheckBox runat="server" ID="chkCat" Checked="false" OnCheckedChanged="chkCat_Changed"
ToolTip='<%# DataBinder.Eval(Container,"DataItem.CategoryName") %>' AutoPostBack="true"/>
<asp:Label runat="server" ID="Label2" Text='<%# DataBinder.Eval(Container,"DataItem.CategoryName") %>'>
</asp:Label>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</ItemTemplate>
</telerik:RadComboBox>
It works fine. Even if i click inside checkbox, I can update the combobox Text with ";" seprated values.
But if i have to use ItemRequested event to show only 10 items at a time,
//OnItemsRequested="rcbNewCategory_ItemsRequested"
It fails on checkbox selection change event.
Reason: ItemCount for combobox is always 0 at the server side.
Please can you tell me the quick solution. Do i am missing some property.
I was thinking to bind the control again at the page load. But how i will know the items that were bound before. Do i have to maintain status for it in viewstate or hidden field?