c# - How to get selected ID and parentid from Telerik RadDropDownTree -
i need selected items telerik raddropdowntree , create xml document in c#
<telerik:raddropdowntree id="rddt" runat="server" checkboxes="tristate" defaultmessage="select documents" datafieldid="id" datafieldparentid="parentid" datatextfield="name" datavaluefield="id" datasourceid="ds2"> <buttonsettings showcheckall="true" showclear="true" /> <localization checkall="select resources" /> </telerik:raddropdowntree>
how can id , parentid selected items?
var xdoc = new xdocument( new xelement("root", new xelement("resource", rddt.selectedvalue.select(x => new xelement("id", x)), rddt.selectedvalue.select(x=>new xelement("parentid",x)))));
many thanks
Comments
Post a Comment