Hello,
I have a grid with hidden column id.
I hide the id column with
{header: "id", hidden:true, ...
But web user can view the column form grid sort& show hide column menu.
Is there a way of preventing this, or any suggestions?
Thanks.
Hello,
I have a grid with hidden column id.
I hide the id column with
{header: "id", hidden:true, ...
But web user can view the column form grid sort& show hide column menu.
Is there a way of preventing this, or any suggestions?
Thanks.
--
Mehmet Çad?rc?
Why are you adding the column to the column model?
Hello again,
I get the grid data with JSON reader and while getting those information I also get the data's id since I need that for updating records via RowEditor.
Is there a better way of holding the row id?
Thanks alot.
--
Mehmet Çad?rc?
Yes, use the record (where it already is).
You don't need to create a separate field for holding the record id.
Configure your JsonReader as..
Make sure your select query passes the 'id' column.Code:reader: new Ext.data.JsonReader({ root: 'Table', idProperty: 'id' }, record)
Then, when you select a record, you can get its id by .... record.id
And even if you did need a field to hold a value, you are not forced to create a Column to display it. It can just be in the Record unreferenced by any UI.
Hello,
Thanks for the answers I will try them at weekend.
--
Mehmet Çad?rc?