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
Edit On Select Row
<?php YsJQuery::useComponent(YsJQueryConstant::COMPONENT_JQGRID); $grid = new YsGrid('gridId','Title'); $idGridField = new YsGridField('id', 'Id'); $clientGridField = new YsGridField('clientField', 'Client'); $clientGridField->setEditable(true); $clientGridField->setEditType(YsGridConstants::EDIT_TYPE_SELECT); $clientGridField->setEditOptions(array('value' => '1:Client 1;2:Client 2;3:Client 3;n:Client n')); $dateGridField = new YsGridField('dateField', 'Date'); $dateGridField->setEditable(true); $activeGridField = new YsGridField('activeField', 'Active'); $activeGridField->setEditable(true); $activeGridField->setEditType(YsGridConstants::EDIT_TYPE_CHECKBOX); $activeGridField->setEditOptions(array('value' => 'Yes:No')); $grid->addGridFields($idGridField, $clientGridField, $dateGridField, $activeGridField); $grid->setWidth("100%"); $grid->setUrl('examples/response/gridResponse.php'); $grid->setPager('#pgridId'); $grid->setDataType(YsGridConstants::DATA_TYPE_XML); $grid->setRowList(array(3,5,10)); $grid->setViewRecords(true); $grid->setSortname('client'); $grid->setEditUrl('url/To/Edit/The/Data.php'); $grid->setEditOnSelectRow(true); ?> <button id="btnOpenDialog">Show Demo</button> <?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?> <?php echo $grid->draw(); ?> <?php echo YsUIDialog::endWidget() ?> <?php echo YsJQuery::newInstance() ->onClick() ->in('#btnOpenDialog') ->execute( YsUIDialog::build('#dialogId') ->_modal(true) ->_width(670) ->_height('auto') ->_buttons(array( 'Ok' => new YsJsFunction('alert("Hello world")'), 'Close' => new YsJsFunction(YsUIDialog::close('this'))) ) ); ?>
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
Support requests, bug reports, and off-topic comments will be deleted without warning.