Hi,
I found that kendo treeview automatically change the id of a node when selecting that node..
example:
this is the default state; then if i select a node, its id change into
and once i select another node, its became just an empty field..
now, I saw that seems to be the "design" behavior for this control...
the problem is that if I can't get the Id of the node (I use this treeview to filter a listView and its pager).
I personally think that change the id of node is not a good behavior...I usually see some added classes to manage control's states...
Is there anyway of preventing this behavior?
Thanks
Fabio
I found that kendo treeview automatically change the id of a node when selecting that node..
example:
<
ul
class
=
"k-group"
style
=
""
>
<
li
id
=
"idItem1"
class
=
"k-item"
data-uid
=
"f15ccb0c-f3d8-4a56-bebd-e9d14d2dc877"
role
=
"treeitem"
>
<
div
class
=
"k-top"
>
<
span
class
=
"k-icon k-plus"
></
span
>
<
span
class
=
"k-in"
>
<
span
class
=
"k-sprite folder"
></
span
>Item1
</
span
>
</
div
>
<
ul
class
=
"k-group"
style
=
"display: none;"
>
<
li
class
=
"customClass k-item k-last"
id
=
"CustomId"
data-uid
=
"f244d97f-2adb-4e49-b40a-3766dd1eba92"
role
=
"treeitem"
>
<
div
class
=
"k-bot"
>
<
span
class
=
"k-in"
>
<
span
class
=
"k-sprite pdf"
></
span
>Sub-Item1
</
span
>
</
div
>
</
li
>
</
ul
>
</
li
>
<
li
id
=
"idItem2"
class
=
"k-item"
data-uid
=
"8da3519c-27cd-49e6-a478-6e4cf1ccd3d0"
role
=
"treeitem"
>
<
div
class
=
"k-mid"
>
<
span
class
=
"k-in"
>
<
span
class
=
"k-sprite folder"
></
span
>Item2
</
span
>
</
div
>
</
li
>
</
ul
>
id="treeName_tv_active"
now, I saw that seems to be the "design" behavior for this control...
the problem is that if I can't get the Id of the node (I use this treeview to filter a listView and its pager).
I personally think that change the id of node is not a good behavior...I usually see some added classes to manage control's states...
Is there anyway of preventing this behavior?
Thanks
Fabio