<telerik:RadComboBox ID="RadComboBoxSymbols" runat="server" AutoPostBack="true" OnClientSelectedIndexChanged="OnSymbolChange" OnSelectedIndexChanged="RadComboBoxSymbols_SelectedIndexChanged" Width="100"> </telerik:RadComboBox>private void BindToSymbolsList(Values.pointReg.PointRegistration pointRegistration) { RadComboBoxSymbols.Items.Clear(); foreach (Symbol symbol in pointRegistration.Getallsymbols()) { RadComboBoxItem item = new RadComboBoxItem(symbol.Name,symbol.Id); item.ImageUrl = symbol.Path; RadComboBoxSymbols.Items.Add(item); } RadComboBoxSymbols.SelectedIndex = 0; }Private Sub RadGrid_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid.PreRender For Each column As GridColumn In RadGrid.MasterTableView.Columns If column.UniqueName = "ID" Then column.Visible = False 'Not column.Visible End If Next For Each column2 As GridColumn In RadGrid.Columns If column2.UniqueName = "ID" Then column2.Visible = False 'Not column.Visible End If Next 'Dim column3 As GridColumn = RadGrid.MasterTableView.GetColumnSafe("ID") 'If column3 IsNot Nothing Then ' column3.Visible = False 'Not column.Visible 'End If RadGrid.MasterTableView.Rebind() End SubProtected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack() Then Dim bp As BasePage bp = CType(Parent.Page, BasePage) RadGrid.DataSource = bp.mDs bp.ExecuteQuery(" WHERE 1 = 0 ") End IfEnd SubHi 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> |