Hi Telerik team,
I am Telerik user and I have an requirement as below:
Right now, Telerik RadListBox doesn’t support Dropped event (it is not fired when dropping an item over another RadListBox/RadListBoxItem). So, how can I sort AvailableList’s items whenever an item is dropped into it?
I have tried to work around by firing two event OnInserted and OnUpdated, but it seems hopelessness (these two events were fired one by one after an item was dropped into AvailableList), and it threw exception like:
Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Insertion index was out of range. Must be non-negative and less than or equal to size.
Parameter name: index
It’s urgent, any solution please?
Many thanks,
Bo
function TreeViewLoad() { var treeView = $find("<%=TreeView.ClientID%>"); if (treeView != null) { var node = treeView.get_nodes().getNode(0); //get the first node node.get_checkBoxElement().style.display = "none"; // hide the CheckBox }}function OnClientNodeDataBoundHandler(sender, e) { var node = e.get_node(); if (e.get_dataItem().ShowCheckBox) { node.set_checked(e.get_dataItem().Checked); } else { node.get_checkBoxElement().style.display = "none"; // hide the CheckBox }}I wanna write in one of my tab text the following " Imagazine *new* ".
But i want the *new* text to be in certain color other than the one am using for Imagazine. I tried the following :
Text="iMagazine <font color='FF FA 03'>*new*</font>"| <asp:GridView ID="grdContent" runat="server" AutoGenerateColumns="false" Height="124px" |
| Width="577px" OnRowCommand="grdContent_RowCommand"> |
| <Columns> |
| <asp:TemplateField HeaderText="Language"> |
| <ItemTemplate> |
| <asp:Label ID="lblLanguage" runat="server" Text='<%#Bind("ActualLanguage") %>'></asp:Label> |
| </ItemTemplate> |
| </asp:TemplateField> |
| <asp:CheckBoxField HeaderText="Read" DataField="IsRead" /> |
| <asp:CheckBoxField HeaderText="Write" DataField="IsWrite" /> |
| <asp:CheckBoxField HeaderText="Speak" DataField="IsSpeak" /> |
| <asp:TemplateField> |
| <ItemTemplate> |
| <asp:LinkButton ID="lnkModify" runat="server" CommandName="Modify" CommandArgument='<%#Bind("ID") %>' |
| Text="Modify"></asp:LinkButton> |
| <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Del" CommandArgument='<%#Bind("ID") %>' |
| Text="Delete"></asp:LinkButton> |
| <asp:HiddenField ID="hdnID" runat="server" Value='<%#Bind("ID") %>' /> |
| </ItemTemplate> |
| </asp:TemplateField> |
| </Columns> |
| </asp:GridView> |
| |
| <JobsControl:LinkButton ID="lbtnNew" runat="server" OnClick="lbtnNew_Click">New</JobsControl:LinkButton> |
| <asp:Panel ID="LanguagePanel" runat="server" Visible="False"> |
| <table width="100%" border="0" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td width="5%"> |
| </td> |
| <td style="width: 30%"> |
| Language |
| </td> |
| <td width="60%"> |
| <JobsControl:CompositCombo ID="ddlLanguage" runat="server" CommonCode="160" IsLoadValuesInPostBack="true" /> |
| <asp:HiddenField ID="hdnID" runat="server" /> |
| <asp:HiddenField ID="hdnLanguageID" runat="server" /> |
| </td> |
| <td width="5%"> |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| Read |
| </td> |
| <td width="60%"> |
| <JobsControl:CheckBox ID="chkRead" runat="server" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| Write |
| </td> |
| <td width="60%"> |
| <JobsControl:CheckBox ID="chkWrite" runat="server" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| Speak |
| </td> |
| <td width="60%"> |
| <JobsControl:CheckBox ID="chkSpeak" runat="server" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| |
| </td> |
| <td width="60%"> |
| <JobsControl:Button ID="btnSave" runat="server" CausesValidation="False" OnClick="btnSave_Click" |
| Text="Save" Width="54px" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| </table> |
| </asp:Panel> |
RadTimePicker startTime = this.NamingContainer.FindControl(StartTimeControlID) as RadTimePicker;