<telerik:RadTreeView ID="radTreeView" runat="server" Width="100%" EnableDragAndDrop="true" EnableDragAndDropBetweenNodes="true"
OnNodeClick="radTreeView_OnNodeClick" OnClientNodeCollapsing="OnClientNodeCollapsing"
OnNodeDrop="radTreeView_OnNodeDrop">
<WebServiceSettings Path="BuildTrgMP.aspx" Method="GetChildNodes" />
</telerik:RadTreeView>
I have a web service method which populates the tree when nodes are clicked.
The page in question accepts an id in the query string and the id represents the Value of a node in the tree which can be any node in the tree.
The idea is that when the page starts, the user is placed in the tree with the tree expanded and the node with the parameter id selected.
The problem is that there seems to be a conflict between nodes loaded client side by the webservice and nodes loaded server side in page load ie doing expands and searches for nodes server side doesn't find anything because they haven't been loaded client side.
If I code to populate the heirarchy server side in Page_Load, when the page appears, no nodes are expanded, although if I expand them, I come to my selected node. It almost as if having webservice loading conflicts with server side loading.
So to get back to the requirements:
- I have a tree which loads branches using the webservice
- When the page loads, in Page_Load I want to be able to set a currently selected node (which can be anywhere in the tree and at any level) and I want the tree hierarchy to it to be expanded (all other paths can be collapsed)
How do I do it please ?
Thanks + regards
Graham Plowman
<
webHttpBinding
>
<
binding
name
=
"webHttpBindingConfiguration"
maxBufferPoolSize
=
"2147483647"
maxBufferSize
=
"2147483647"
maxReceivedMessageSize
=
"2147483647"
>
<
readerQuotas
maxDepth
=
"2147483647"
maxStringContentLength
=
"2147483647"
maxArrayLength
=
"2147483647"
maxBytesPerRead
=
"2147483647"
maxNameTableCharCount
=
"2147483647"
/>
<
security
mode
=
"TransportCredentialOnly"
>
<
transport
clientCredentialType
=
"Windows"
></
transport
>
</
security
>
</
binding
>
</
webHttpBinding
>
"No Proxy-Authorization Header is present."
"No Authorization Header is present."
I cannot find any guidance for using Windows Authentication for these service calls.
If it is not possible to use Windows Authentication with these calls, can I intercept the RadComboBoxContext object and add an entry with the user's username before the call is made, so I might extract it in the service method?
Your assistance is greatly appreciated.
Charlie
radGrid.DataSourceID =
null
;<br> radGrid.DataSource = dataTable;<br> radGrid.DataBind();<br>
protected
void
radGrid_ItemDataBound(
object
sender, GridItemEventArgs e)<br> {<br>
if
(e.Item
is
GridDataItem)<br> {<br> GridDataItem item = (GridDataItem)e.Item;<br>
foreach
(GridDataItem item
in
radGrid.Items)<br> {<br>
if
((item.ItemIndex % 2) == 1)<br> item.Visible =
false
;<br> } <br>