ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Tree grid crud control restrict levels
Title:
B
I
{code}
?
I am using tree grid crud control, how I can restrict addition of levels to 3 (no add child button on 3 rd level)? How I can change labels for buttons? e.g. - like Add Child, Add Sub-Child Is it must to have same fields for parents and child ?
Save Changes
Cancel
Prakash Lad
asked at 22 Jun 2016
Answers
B
I
{code}
?
right now the button is generated using ClientFormat = GridUtils.EditFormat("editNode") you can use ClientFormatFunc = myfunc myfunc would be a js function that will genereate (or not) html similar to the on in GridUtils.EditFormat for example of using ClientFormatFunc see this demo: http://demo.aspnetawesome.com/GridDemo/CustomFormat the TreeNode class should also have a level property ( filled by you ), you'll get this treenode object in the myfunc as a parameter
Save Changes
Cancel
Omu
answered at 22 Jun 2016
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK