or
How do I bind the Custom Field to the TreeView Node so that in javascript, I can get "Custom1" and "Custom2" value.
DataTable tb = new DataTable(); tb.Columns.Add("ID"); tb.Columns.Add("ParentID"); tb.Columns.Add("Name"); tb.Columns.Add("Custom1"); tb.Columns.Add("Custom2"); // add item to the datatable TreeView1.DataSource = tb; TreeView1.DataBind();
<telerik:RadTreeView ID="TreeView1" runat="server" Skin="Default" DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Name"> <DataBindings> <telerik:RadTreeNodeBinding Expanded="True" TextField="Name" ValueField="ID" /> </DataBindings> </telerik:RadTreeView>
I have a column defined something like this:
<rada:GridTemplateColumn >
<HeaderTemplate>headertext</HeaderTemplate>
<ItemTemplate>
...
</ItemTemplate>
</rada:GridTemplateColumn>
GridBoundColumn
by calling this:rg.Columns.FindByDataField(
"Columnname").Visible = false;
but haven't figured out GridTemplateColumn yet.
It really would be a pain if I had to create new customised dialogs for this purpose.
Also, is there any detailed information regarding radeditor extensions and they seem to be in snipets all over the place.
Thanks,
Graham
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" Skin="WebBlue" /> <div class="tablediv"><div class="rowdiv"><div class="celldivleft">First Name:</div><div class="celldivright"> <asp:TextBox ID="FirstNameBox" runat="server"></asp:TextBox></div></div> <div class="rowdiv"><div class="celldivleft">Last Name:</div><div class="celldivright"> <asp:TextBox ID="LastNameBox" runat="server"></asp:TextBox></div> </div> <div class="rowdiv"><div class="celldivleft">Last Name:</div><div class="celldivright"><telerik:RadTextBox ID="RadTextBox1" runat="server"> </telerik:RadTextBox></div> </div> <div class="rowdiv"> <div class="celldivleft"> </div> <div class="celldivright"> <asp:Button ID="SubmitButton" runat="server" Text="Submit" onclick="SubmitButton_Click" /> </div> </div> </div> </asp:Content>protected void Page_InitComplete(object sender, EventArgs e) { RadTextBox rtb = (this.Page.FindControl("RadTextBox1") as RadTextBox); }