javascript - Access radtreeview on client side with dataset -


this event on radtreeview node click can write event on client side javascript because take time load when post . using dataset here filled when page load first time . there anyway access dataset in client side or anyway make method more faster or can make method in client side can execute faster .

protected void radtreeview1_nodeclick(object sender, radtreenodeeventargs e)     {         ds = (dataset)session["dsgrr"];         foreach (griddataitem item in radgridview2.items)         {             item["sn#"].text = null;             item["type"].text = null;             item["accounttitle"].text = null;             item["description"].text = null;             item["costcenter"].text = null;             item["debit"].text = null;             item["credit"].text = null;          }         if (e.node != null && e.node.value != null)         {             datarow[] dr = ds.tables["jv"].select("ref = '" + e.node.value + "'");             if (!dr.length.tostring().equals("0"))             {                 (int = 0; < dr.length; i++)                 {                         this.date.selecteddate = convert.todatetime(dr[i]["mdate"]);                          this.refer.text = dr[i]["ref"].tostring();                          this.radgridview2.items[i]["sn#"].text = (i + 1).tostring();                          this.radgridview2.items[i]["type"].text = dr[i]["initial"].tostring();                          this.radgridview2.items[i]["accounttitle"].text = dr[i]["title"].tostring();                          this.radgridview2.items[i]["description"].text = dr[i]["disc"].tostring();                          this.radgridview2.items[i]["costcenter"].text = dr[i]["job"].tostring();                          this.radgridview2.items[i]["debit"].text = class1.fr(dr[i]["drr"].tostring(), 2);                          this.radgridview2.items[i]["credit"].text = class1.fr(dr[i]["crr"].tostring(), 2);                   }             }         }       ttl();        } 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -