or
function selectAllClick(sender) {
var listBox = $find(sender);
var items = listBox.get_items();
items.forEach(function(itm) { itm.set_checked(true); });
}
function unSelectAllClick(sender) {
var listBox = $find(sender);
var items = listBox.get_items();
items.forEach(function(itm) { itm.set_checked(false); });
}
<
telerik:RadTreeView ID="RadTreeView1" Runat="server" DataTextField="Text" DataValueField="Value" Skin="Outlook" Width="477px">
<Nodes>
<telerik:RadTreeNode runat="server" AllowDrag="False" AllowDrop="False" AllowEdit="False" Checkable="False" Text="Laws">
</telerik:RadTreeNode>
</Nodes>
<WebServiceSettings Path="http://localhost:22222/TMLawsDataService.svc" Method="LoadTreeNodes" UseHttpGet="false" />
<DataBindings>
<telerik:RadTreeNodeBinding Depth="1" ExpandMode="WebService" />
</DataBindings>
</telerik:RadTreeView>
If I have my WCF service in the same project as the default.aspx, then I don't need to specify a port number in the "Path" attribute of the WebServiceSettings node, and the RADTreeControl does a POST back to my WCF service onClientSideClick to get the next level of tree children, and everything works great. BUT if I want to be a good little coder and separate my projects out into a WCF project and a Web Client project under the same solution, then in order to debug my solution in Visual Studio, I need to set 2 startup projects, and run them on different assigned ports. When I do that, I need to specify the port number in the "Path" attribute of the WebServiceSettings node, and when I do that, the RADTreeView control suddenly decides to send GET requests to my service, which my WCF service does not handle, it only takes POSTs.
<telerik:RadChart ID=
"RadChart1"
runat=
"server"
DataSourceID=
"edsGrade"
>
</telerik:RadChart>
<asp:EntityDataSource ID=
"edsGrade"
runat=
"server"
ConnectionString=
"name=BFEntities"
DefaultContainerName=
"BFEntities"
EnableFlattening=
"False"
EntitySetName=
"Grades"
EntityTypeFilter=
"Grade"
AutoGenerateWhereClause=
"True"
>
<WhereParameters>
<asp:Parameter Name=
"Grades.GradeID"
/>
</WhereParameters>
</asp:EntityDataSource>
...
RadChart1.PlotArea.XAxis.AddItem(
"Col1"
);
RadChart1.PlotArea.XAxis.AddItem(
"Col2"
);