Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Frozen Columns 2
<?php //For use the component YsJQuery::useComponent(YsJQueryConstant::COMPONENT_JQGRID); /* The Grid */ $grid = new YsGrid('gridId','Title'); // <- id|name and caption /* The columns */ $invGridField = new YsGridField('id', 'Id'); $invGridField->setFrozen(true); $invGridField->setWidth(200); $nameGridField = new YsGridField('name', 'Name'); $nameGridField->setFrozen(true); $nameGridField->setWidth(200); $dateGridField = new YsGridField('invDate', 'Date'); $accountGridField = new YsGridField('account', 'Account'); $balanceGridField = new YsGridField('balance', 'Balance'); $grid->addGridFields($invGridField, $nameGridField,$dateGridField,$accountGridField,$balanceGridField); // <- multiple $records = new YsGridRecordList(); for($i=1; $i<=10; $i++){ $record = new YsGridRecord(); $record->setAttribute('id', '12345'. $i); $record->setAttribute('invDate', '2011-01-01'); $record->setAttribute('name', 'Client ' . $i); $record->setAttribute('account', '12345678' .$i); $record->setAttribute('balance', '50' . $i); $records->append($record); } $grid->setRecordList($records); /* jqGrid options */ $grid->setWidth(700); $grid->setDataType(YsGridConstants::DATA_TYPE_LOCAL); $grid->setHeight('auto'); $grid->setRowList(array()); $grid->setViewRecords(true); $grid->setSortname('id'); $grid->setUseColSpanStyle(true); $grid->setShrinktofit(false); $grid->showLineNumbers(); $grid->setMaxPerPage(3); $grid->setMaxPerPageList(3,5,10); ?> <button id="btnOpenDialog">Show Demo</button> <?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?> <?php echo $grid->renderTemplate(); ?> <?php echo YsUIDialog::endWidget() ?> <?php echo YsJQuery::newInstance() ->onClick() ->in('#btnOpenDialog') ->execute( YsUIDialog::build('#dialogId') ->_modal(true) ->_width('auto') ->_height('auto') ->_buttons(array( 'Ok' => new YsJsFunction('alert("Hello world")'), 'Close' => new YsJsFunction(YsUIDialog::close('this'))) ), $grid->build() ) ?>
Deprecated: Return type of YsGridRecordList::append($value) should either be compatible with ArrayObject::append(mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/Components/jqGrid/YsGridRecordList.php on line 21
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Support requests, bug reports, and off-topic comments will be deleted without warning.