c# - how to bind multiple Node in RadTreeView -


question:

how bind multiple nodes in radtreeview

this code:

if (lblcategory != null && lblcategory.text != string.empty && rtcategory != null)  {      string[] tree = lblcategory.text.split(',');       (int = 0; < tree.length; i++)      {                                foreach (radtreenode t in rtcategory.nodes)          {                                         if (t.value == tree[i])              {                  t.selected = true;              }          }       }          rtcategory.expandallnodes(); } 

if (lblcategory != null && lblcategory.text != string.empty && rtcategory != null) { string[] tree = lblcategory.text.split(',');

                (int = 0; < tree.length; i++)                 {                      foreach (radtreenode t in rtcategory.getallnodes())                     {                                                    if (t.value == tree[i])                         {                             t.selected = true;                         }                     }                  }                 rtcategory.expandallnodes();             } 

use getallnodes() instead of node in foreach condition


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -