Sigma Php Ajax framework, Ajax Components, GUI Builder
May 17, 2012, 01:08:05 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How do you hide a column in a TreeGrid?  (Read 339 times)
FurBurger
Jr. Member
**
Posts: 5


View Profile
« on: October 21, 2011, 07:27:25 AM »

I am getting the items for the grid from a SQL Stored Procedure which give me more columns than I want to display in the grid.

For example, I don't want to display the first column in this grid:

var MainHeaders = [
{"id":"BranchId", "type":"label", "width":"0", "caption":"BranchId"},
{"id":"BranchName", "type":"label", "width":"100", "caption":"Branch"},
];           

var MainBrowse = (new linb.UI.TreeGrid)
    .setHeader(MainHeaders )
    .setRows([["1","Main"]])
    .show();


How do I hide Column1?
Logged
FurBurger
Jr. Member
**
Posts: 5


View Profile
« Reply #1 on: October 24, 2011, 12:08:05 AM »

I found a solution:

TreeGrid1.showColumn('BranchId',false)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!