Dear support,
I am trying to load all hirarchy when user clicks on the root node via web service (web-api).
The outcome of my code brings the correct number of elements but they are all empty (LI items with no text to display).
the markup looks like this:
The source of the outcome looks like this:
Please advise
I am trying to load all hirarchy when user clicks on the root node via web service (web-api).
The outcome of my code brings the correct number of elements but they are all empty (LI items with no text to display).
the markup looks like this:
<
telerik:RadTreeView
runat
=
"Server"
ID
=
"UserGroups"
Skin
=
"Vista"
DataTextField
=
"caption"
DataValueField
=
"caption"
DataFieldParentID
=
"parentUnitCode"
DataFieldID
=
"unitCode"
>
<
Nodes
>
<
telerik:RadTreeNode
runat
=
"server"
Text
=
"All"
ExpandMode
=
"WebService"
Value
=
"0"
>
</
telerik:RadTreeNode
>
</
Nodes
>
<
WebServiceSettings
Path
=
"api/Reports"
Method
=
"UserGroups"
UseHttpGet
=
"True"
/>
</
telerik:RadTreeView
>
with fiddler I can see the following response when expand:
JSON
--{}
-- Caption =
"blabla"
-- Level = 0
-- ParentUnitCode = 0
-- Roles
-- DataRoles
-- CDomian x = test1
-- CDomian y = test2
-- DisplayRoles
-- CDomian a = test1
-- CDomian a = test2
-- UnitCode = 3091
--{}
-- Caption =
"blabla2"
-- Level = 0
-- ParentUnitCode = 0
-- Roles
-- DataRoles
-- CDomian x = test5
-- CDomian y = test6
-- DisplayRoles
-- CDomian a = test11
-- CDomian a = test22
-- UnitCode = 3091
The source of the outcome looks like this:
<
ul
class
=
"rtUL"
style
=
"height: auto; overflow: visible;"
>
<
LI
class
=
rtLI
_itemTypeName
=
"Telerik.Web.UI.RadTreeNode"
>
<
DIV
class
=
rtTop
><
SPAN
class
=
rtSp
></
SPAN
><
SPAN
class
=
rtIn
></
SPAN
></
DIV
></
LI
>
<
LI
class
=
rtLI
_itemTypeName
=
"Telerik.Web.UI.RadTreeNode"
>
<
DIV
class
=
"rtMid "
><
SPAN
class
=
rtSp
></
SPAN
><
SPAN
class
=
rtIn
></
SPAN
></
DIV
></
LI
>
<
LI
class
=
"rtLI rtLast"
_itemTypeName
=
"Telerik.Web.UI.RadTreeNode"
>
<
DIV
class
=
rtBot
><
SPAN
class
=
rtSp
></
SPAN
><
SPAN
class
=
rtIn
></
SPAN
></
DIV
></
LI
>
</
ul
>
Please advise