Hi,
I am trying to track clientside expanding/collapsing as ClientOperations, for example:
Unfortunately expand and collapse don't seem to be tracked by the trackChanges() function. Therefore after a postback the serverside collection RadPanelBar.ClientChanges is empty. My example works fine if I use disable() or other functions instead of expand().
Is there any way to track expand/collapse as well? Can I somehow add custom changes to the ClientChanges collection from JS?
My goal is simply to see clientside changes in the expand/collapse state after a postback on the serverside, too.
Thanks in advance!
I am trying to track clientside expanding/collapsing as ClientOperations, for example:
function
OnClientItemExpand(sender, args) {
var
panel = sender;
var
item = args.get_item();
if
(item && panel) {
panel.trackChanges();
item.expand();
panel.commitChanges();
}
else
{
alert(
"item or panel is null"
);
}
}
Unfortunately expand and collapse don't seem to be tracked by the trackChanges() function. Therefore after a postback the serverside collection RadPanelBar.ClientChanges is empty. My example works fine if I use disable() or other functions instead of expand().
Is there any way to track expand/collapse as well? Can I somehow add custom changes to the ClientChanges collection from JS?
My goal is simply to see clientside changes in the expand/collapse state after a postback on the serverside, too.
Thanks in advance!