(I am using version 2011.1.519.40; I will try to get the Q2 release downloaded if that will allow me to get what I need. I see the new LoadOnDemand functionality in the documentation, which would definitely help us.)
I have the TreeList loading fine from a datatable.
I need to do just a few things which I expected were straightforward...
(1) When an item is selected, I need to get two of the bound data items (one of which displays and one of which doesn't--the one that doesn't is the "DataKeyNames" item). I then need to do server side actions depending on what I determine from those two data items.
(a) I can't find any way to retrieve those data items (astonishingly to me).
(b) There doesn't appear to be a server side event for Selected. So, what do you recommend for hitting a server method from a client-side event in this context?
Can you (I mean, Telerik support) or anyone provide a code snippet which would accomplish this?
(2) When an item is double-clicked, I need to get "DataKeyNames" item, and depending on what I determine from it, possibly expand the node.
(a) I can't find any way to retrieve this data item (astonishingly to me).
(b) There doesn't appear to be a server side event for Double-Click. So, what do you recommend for hitting a server method from a client-side event in this context?
Can you/anyone provide a code snippet which would accomplish this?
(3) I don't want to add/edit/delete data directly from the list. Can I add or delete programatically, rather than reloading the whole datatable and requerying? Is there a sample showing something like this?
Actually, I'm willing/just as happy to do any of this server-side, client-side or server-side, whichever...
Thanks.
I have the TreeList loading fine from a datatable.
I need to do just a few things which I expected were straightforward...
(1) When an item is selected, I need to get two of the bound data items (one of which displays and one of which doesn't--the one that doesn't is the "DataKeyNames" item). I then need to do server side actions depending on what I determine from those two data items.
(a) I can't find any way to retrieve those data items (astonishingly to me).
(b) There doesn't appear to be a server side event for Selected. So, what do you recommend for hitting a server method from a client-side event in this context?
Can you (I mean, Telerik support) or anyone provide a code snippet which would accomplish this?
(2) When an item is double-clicked, I need to get "DataKeyNames" item, and depending on what I determine from it, possibly expand the node.
(a) I can't find any way to retrieve this data item (astonishingly to me).
(b) There doesn't appear to be a server side event for Double-Click. So, what do you recommend for hitting a server method from a client-side event in this context?
Can you/anyone provide a code snippet which would accomplish this?
(3) I don't want to add/edit/delete data directly from the list. Can I add or delete programatically, rather than reloading the whole datatable and requerying? Is there a sample showing something like this?
Actually, I'm willing/just as happy to do any of this server-side, client-side or server-side, whichever...
Thanks.