CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

how to make JQGrid Disabled

by fateh78 » 25 Jul 2017 10:51

how to make JQGrid Disabled ?
i tried JQGrid.Enabled := False; but not work
i tried to disable the containing panel, also not work

urgent
fateh78
 
Posts: 85
Joined: 16 Mar 2017 21:45

by Jorge Sousa » 26 Jul 2017 11:52

The jqgrid plugin doesn't support the disable by definition.

You can use the following tweak in an async/ajax event:

Code: Select all
procedure DisableGrid(AGrid: TIWCGJQGrid);
var
  js: string;
begin
  js:= Format('$("#lui_%s").show();',[AGrid.JQHTMLName]);
  CGAddJavascriptToAjaxResponse(js);
end;

procedure EnableGrid(AGrid: TIWCGJQGrid);
var
  js: string;
begin
  js:= Format('$("#lui_%s").show();',[IWCGJQGrid1.JQHTMLName]);
  CGAddJavascriptToAjaxResponse(js);
end;


more info @

https://stackoverflow.com/questions/19809605/disable-entire-jqgrid
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQGrid

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.