or
<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 }}