Grid (Serializer Grid) skip one record while loading
I am loading a serializer grid with record but it skips the very first record it is returning array correct
Code for my grid is working like this
->it loads the answer related to a question.
->the helper function returns an array related to a question the grid is suppose to load those answers in it.
->I have tried other ids it is working for other but when i pass id=1 helper data returns correct array but only one record is loaded but not the other one.
i.e for id=1
it returns =[1][2]
but grid only loads the [2] and skips [1]
My Grid Code is
namespace VendorNameSpaceBlockAdminhtmlAnswerTab;
use MagentoBackendBlockWidgetGrid;
use MagentoBackendBlockWidgetGridColumn;
use MagentoBackendBlockWidgetGridExtended;
use MagentoFrameworkAppObjectManager;
use VendorNameSpaceModelTopicsAttributeSourceStatus;
class Answer extends MagentoBackendBlockWidgetGridExtended
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry = null;
protected $_answerFactory;
protected $_HelperData;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoBackendHelperData $backendHelper,
VendorNameSpaceModelAnswerFactory $answerFactory,
MagentoFrameworkRegistry $coreRegistry,
VendorNameSpaceHelperHelperData $HelperData,
VendorNameSpaceModelResourceModelAnswer $resourceAnswer,
Status $status = null,
array $data =
) {
$this->_answerFactory = $answerFactory;
$this->_coreRegistry = $coreRegistry;
$this->resourceAnswer = $resourceAnswer;
$this->_HelperData = $HelperData;
$this->status = $status ?: ObjectManager::getInstance()->get(Status::class);
parent::__construct($context, $backendHelper, $data);
}
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('answer_related_answer');
$this->setDefaultSort('answer_id');
$this->setUseAjax(true);
}
/**
* @return array|null
*/
/**
* @param Column $column
* @return $this
*/
protected function _addColumnFilterToCollection($column)
{
if($column->getId() == 'in_answer_related_answer')
{
$answerIds = $this->_getSelectedAnswer();
if (empty($answerIds)) {
$answerIds = 0;
}
if ($column->getFilter()->getValue()) {
$this->getCollection()->addFieldToFilter('answer_id', ['in' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
} elseif (!empty($answerIds)) {
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
}
}
else
{
parent::_addColumnFilterToCollection($column);
}
return $this;
}
/**
* @return Grid
*/
protected function _prepareCollection()
{
$collection = $this->_answerFactory->create()->getCollection();
$collection->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
$this->setCollection($collection);
return parent::_prepareCollection();
}
/**
* @return Extended
*/
protected function _prepareColumns()
{
if ($this->getRequest()->getParam('id')) {
$this->setDefaultFilter(['in_answer_related_answer' => 1]);
}
$this->addColumn(
'in_answer_related_answer',
[
'header' => __('ID'),
'type' => 'hidden',
'name' => 'in_answer_related_answer',
'values' => $this->_getSelectedAnswer(),
'index' => 'answer_id',
'header_css_class' => 'col-select col-massaction',
'column_css_class' => 'col-select col-massaction'
]
);
// $this->addColumn(
// 'answer_id',
// [
// 'header' => __('ID'),
// 'sortable' => true,
// 'index' => 'answer_id',
// 'header_css_class' => 'col-id',
// 'column_css_class' => 'col-id'
// ]
// );
$this->addColumn(
'answer',
[
'header' => __('Answer'),
'index' => 'answer'
]
);
$this->addColumn(
'answer_likes',
[
'header' => __('Answer Likes'),
'index' => 'answer_likes'
]
);
$this->addColumn(
'answer_dislikes',
[
'header' => __('Answer Dislikes'),
'index' => 'answer_dislikes'
]
);
$this->addColumn(
'answer_author',
[
'header' => __('Answer Author'),
'index' => 'answer_author'
]
);
$this->addColumn(
'answer_status',
[
'header' => __('Status'),
'index' => 'answer_status',
'type' => 'options',
'options' => $this->status->getOptionArray()
]
);
$this->addColumn(
'action', [
'header' => __('Action'),
'type' => 'action',
'getter' => 'getId',
'actions' => [
[
'caption' => __('Edit'),
'url' => ['base' => 'faq/answer/edit'],
'field' => 'id',
],
[
'caption' => __('Delete'),
'url' => ['base' => 'faq/answer/delete'],
'field' => 'id',
],
],
'filter' => false,
'sortable' => false,
'index' => 'stores',
'header_css_class' => 'col-action',
'column_css_class' => 'col-action',
]
);
return parent::_prepareColumns();
}
/**
* @return string
*/
public function getGridUrl()
{
return $this->getUrl('faq/answer/answergrid', ['_current' => true]);
}
/**
* @return array
*/
protected function _getSelectedAnswer()
{
$answer = $this->getRequest()->getPost('selected_answer');
if ($answer === null)
{
return $answer = $this->_HelperData->getRelatedAnswerArray($this->getRequest()->getParam('id'));
}
return $answer;
}
}
magento2 grid php-7 grid-serlization
add a comment |
I am loading a serializer grid with record but it skips the very first record it is returning array correct
Code for my grid is working like this
->it loads the answer related to a question.
->the helper function returns an array related to a question the grid is suppose to load those answers in it.
->I have tried other ids it is working for other but when i pass id=1 helper data returns correct array but only one record is loaded but not the other one.
i.e for id=1
it returns =[1][2]
but grid only loads the [2] and skips [1]
My Grid Code is
namespace VendorNameSpaceBlockAdminhtmlAnswerTab;
use MagentoBackendBlockWidgetGrid;
use MagentoBackendBlockWidgetGridColumn;
use MagentoBackendBlockWidgetGridExtended;
use MagentoFrameworkAppObjectManager;
use VendorNameSpaceModelTopicsAttributeSourceStatus;
class Answer extends MagentoBackendBlockWidgetGridExtended
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry = null;
protected $_answerFactory;
protected $_HelperData;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoBackendHelperData $backendHelper,
VendorNameSpaceModelAnswerFactory $answerFactory,
MagentoFrameworkRegistry $coreRegistry,
VendorNameSpaceHelperHelperData $HelperData,
VendorNameSpaceModelResourceModelAnswer $resourceAnswer,
Status $status = null,
array $data =
) {
$this->_answerFactory = $answerFactory;
$this->_coreRegistry = $coreRegistry;
$this->resourceAnswer = $resourceAnswer;
$this->_HelperData = $HelperData;
$this->status = $status ?: ObjectManager::getInstance()->get(Status::class);
parent::__construct($context, $backendHelper, $data);
}
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('answer_related_answer');
$this->setDefaultSort('answer_id');
$this->setUseAjax(true);
}
/**
* @return array|null
*/
/**
* @param Column $column
* @return $this
*/
protected function _addColumnFilterToCollection($column)
{
if($column->getId() == 'in_answer_related_answer')
{
$answerIds = $this->_getSelectedAnswer();
if (empty($answerIds)) {
$answerIds = 0;
}
if ($column->getFilter()->getValue()) {
$this->getCollection()->addFieldToFilter('answer_id', ['in' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
} elseif (!empty($answerIds)) {
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
}
}
else
{
parent::_addColumnFilterToCollection($column);
}
return $this;
}
/**
* @return Grid
*/
protected function _prepareCollection()
{
$collection = $this->_answerFactory->create()->getCollection();
$collection->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
$this->setCollection($collection);
return parent::_prepareCollection();
}
/**
* @return Extended
*/
protected function _prepareColumns()
{
if ($this->getRequest()->getParam('id')) {
$this->setDefaultFilter(['in_answer_related_answer' => 1]);
}
$this->addColumn(
'in_answer_related_answer',
[
'header' => __('ID'),
'type' => 'hidden',
'name' => 'in_answer_related_answer',
'values' => $this->_getSelectedAnswer(),
'index' => 'answer_id',
'header_css_class' => 'col-select col-massaction',
'column_css_class' => 'col-select col-massaction'
]
);
// $this->addColumn(
// 'answer_id',
// [
// 'header' => __('ID'),
// 'sortable' => true,
// 'index' => 'answer_id',
// 'header_css_class' => 'col-id',
// 'column_css_class' => 'col-id'
// ]
// );
$this->addColumn(
'answer',
[
'header' => __('Answer'),
'index' => 'answer'
]
);
$this->addColumn(
'answer_likes',
[
'header' => __('Answer Likes'),
'index' => 'answer_likes'
]
);
$this->addColumn(
'answer_dislikes',
[
'header' => __('Answer Dislikes'),
'index' => 'answer_dislikes'
]
);
$this->addColumn(
'answer_author',
[
'header' => __('Answer Author'),
'index' => 'answer_author'
]
);
$this->addColumn(
'answer_status',
[
'header' => __('Status'),
'index' => 'answer_status',
'type' => 'options',
'options' => $this->status->getOptionArray()
]
);
$this->addColumn(
'action', [
'header' => __('Action'),
'type' => 'action',
'getter' => 'getId',
'actions' => [
[
'caption' => __('Edit'),
'url' => ['base' => 'faq/answer/edit'],
'field' => 'id',
],
[
'caption' => __('Delete'),
'url' => ['base' => 'faq/answer/delete'],
'field' => 'id',
],
],
'filter' => false,
'sortable' => false,
'index' => 'stores',
'header_css_class' => 'col-action',
'column_css_class' => 'col-action',
]
);
return parent::_prepareColumns();
}
/**
* @return string
*/
public function getGridUrl()
{
return $this->getUrl('faq/answer/answergrid', ['_current' => true]);
}
/**
* @return array
*/
protected function _getSelectedAnswer()
{
$answer = $this->getRequest()->getPost('selected_answer');
if ($answer === null)
{
return $answer = $this->_HelperData->getRelatedAnswerArray($this->getRequest()->getParam('id'));
}
return $answer;
}
}
magento2 grid php-7 grid-serlization
add a comment |
I am loading a serializer grid with record but it skips the very first record it is returning array correct
Code for my grid is working like this
->it loads the answer related to a question.
->the helper function returns an array related to a question the grid is suppose to load those answers in it.
->I have tried other ids it is working for other but when i pass id=1 helper data returns correct array but only one record is loaded but not the other one.
i.e for id=1
it returns =[1][2]
but grid only loads the [2] and skips [1]
My Grid Code is
namespace VendorNameSpaceBlockAdminhtmlAnswerTab;
use MagentoBackendBlockWidgetGrid;
use MagentoBackendBlockWidgetGridColumn;
use MagentoBackendBlockWidgetGridExtended;
use MagentoFrameworkAppObjectManager;
use VendorNameSpaceModelTopicsAttributeSourceStatus;
class Answer extends MagentoBackendBlockWidgetGridExtended
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry = null;
protected $_answerFactory;
protected $_HelperData;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoBackendHelperData $backendHelper,
VendorNameSpaceModelAnswerFactory $answerFactory,
MagentoFrameworkRegistry $coreRegistry,
VendorNameSpaceHelperHelperData $HelperData,
VendorNameSpaceModelResourceModelAnswer $resourceAnswer,
Status $status = null,
array $data =
) {
$this->_answerFactory = $answerFactory;
$this->_coreRegistry = $coreRegistry;
$this->resourceAnswer = $resourceAnswer;
$this->_HelperData = $HelperData;
$this->status = $status ?: ObjectManager::getInstance()->get(Status::class);
parent::__construct($context, $backendHelper, $data);
}
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('answer_related_answer');
$this->setDefaultSort('answer_id');
$this->setUseAjax(true);
}
/**
* @return array|null
*/
/**
* @param Column $column
* @return $this
*/
protected function _addColumnFilterToCollection($column)
{
if($column->getId() == 'in_answer_related_answer')
{
$answerIds = $this->_getSelectedAnswer();
if (empty($answerIds)) {
$answerIds = 0;
}
if ($column->getFilter()->getValue()) {
$this->getCollection()->addFieldToFilter('answer_id', ['in' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
} elseif (!empty($answerIds)) {
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
}
}
else
{
parent::_addColumnFilterToCollection($column);
}
return $this;
}
/**
* @return Grid
*/
protected function _prepareCollection()
{
$collection = $this->_answerFactory->create()->getCollection();
$collection->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
$this->setCollection($collection);
return parent::_prepareCollection();
}
/**
* @return Extended
*/
protected function _prepareColumns()
{
if ($this->getRequest()->getParam('id')) {
$this->setDefaultFilter(['in_answer_related_answer' => 1]);
}
$this->addColumn(
'in_answer_related_answer',
[
'header' => __('ID'),
'type' => 'hidden',
'name' => 'in_answer_related_answer',
'values' => $this->_getSelectedAnswer(),
'index' => 'answer_id',
'header_css_class' => 'col-select col-massaction',
'column_css_class' => 'col-select col-massaction'
]
);
// $this->addColumn(
// 'answer_id',
// [
// 'header' => __('ID'),
// 'sortable' => true,
// 'index' => 'answer_id',
// 'header_css_class' => 'col-id',
// 'column_css_class' => 'col-id'
// ]
// );
$this->addColumn(
'answer',
[
'header' => __('Answer'),
'index' => 'answer'
]
);
$this->addColumn(
'answer_likes',
[
'header' => __('Answer Likes'),
'index' => 'answer_likes'
]
);
$this->addColumn(
'answer_dislikes',
[
'header' => __('Answer Dislikes'),
'index' => 'answer_dislikes'
]
);
$this->addColumn(
'answer_author',
[
'header' => __('Answer Author'),
'index' => 'answer_author'
]
);
$this->addColumn(
'answer_status',
[
'header' => __('Status'),
'index' => 'answer_status',
'type' => 'options',
'options' => $this->status->getOptionArray()
]
);
$this->addColumn(
'action', [
'header' => __('Action'),
'type' => 'action',
'getter' => 'getId',
'actions' => [
[
'caption' => __('Edit'),
'url' => ['base' => 'faq/answer/edit'],
'field' => 'id',
],
[
'caption' => __('Delete'),
'url' => ['base' => 'faq/answer/delete'],
'field' => 'id',
],
],
'filter' => false,
'sortable' => false,
'index' => 'stores',
'header_css_class' => 'col-action',
'column_css_class' => 'col-action',
]
);
return parent::_prepareColumns();
}
/**
* @return string
*/
public function getGridUrl()
{
return $this->getUrl('faq/answer/answergrid', ['_current' => true]);
}
/**
* @return array
*/
protected function _getSelectedAnswer()
{
$answer = $this->getRequest()->getPost('selected_answer');
if ($answer === null)
{
return $answer = $this->_HelperData->getRelatedAnswerArray($this->getRequest()->getParam('id'));
}
return $answer;
}
}
magento2 grid php-7 grid-serlization
I am loading a serializer grid with record but it skips the very first record it is returning array correct
Code for my grid is working like this
->it loads the answer related to a question.
->the helper function returns an array related to a question the grid is suppose to load those answers in it.
->I have tried other ids it is working for other but when i pass id=1 helper data returns correct array but only one record is loaded but not the other one.
i.e for id=1
it returns =[1][2]
but grid only loads the [2] and skips [1]
My Grid Code is
namespace VendorNameSpaceBlockAdminhtmlAnswerTab;
use MagentoBackendBlockWidgetGrid;
use MagentoBackendBlockWidgetGridColumn;
use MagentoBackendBlockWidgetGridExtended;
use MagentoFrameworkAppObjectManager;
use VendorNameSpaceModelTopicsAttributeSourceStatus;
class Answer extends MagentoBackendBlockWidgetGridExtended
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry = null;
protected $_answerFactory;
protected $_HelperData;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoBackendHelperData $backendHelper,
VendorNameSpaceModelAnswerFactory $answerFactory,
MagentoFrameworkRegistry $coreRegistry,
VendorNameSpaceHelperHelperData $HelperData,
VendorNameSpaceModelResourceModelAnswer $resourceAnswer,
Status $status = null,
array $data =
) {
$this->_answerFactory = $answerFactory;
$this->_coreRegistry = $coreRegistry;
$this->resourceAnswer = $resourceAnswer;
$this->_HelperData = $HelperData;
$this->status = $status ?: ObjectManager::getInstance()->get(Status::class);
parent::__construct($context, $backendHelper, $data);
}
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('answer_related_answer');
$this->setDefaultSort('answer_id');
$this->setUseAjax(true);
}
/**
* @return array|null
*/
/**
* @param Column $column
* @return $this
*/
protected function _addColumnFilterToCollection($column)
{
if($column->getId() == 'in_answer_related_answer')
{
$answerIds = $this->_getSelectedAnswer();
if (empty($answerIds)) {
$answerIds = 0;
}
if ($column->getFilter()->getValue()) {
$this->getCollection()->addFieldToFilter('answer_id', ['in' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
} elseif (!empty($answerIds)) {
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $answerIds]);
$this->getCollection()->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
}
}
else
{
parent::_addColumnFilterToCollection($column);
}
return $this;
}
/**
* @return Grid
*/
protected function _prepareCollection()
{
$collection = $this->_answerFactory->create()->getCollection();
$collection->addFieldToFilter('answer_id', ['nin' => $this->getRequest()->getParam('id')]);
$this->setCollection($collection);
return parent::_prepareCollection();
}
/**
* @return Extended
*/
protected function _prepareColumns()
{
if ($this->getRequest()->getParam('id')) {
$this->setDefaultFilter(['in_answer_related_answer' => 1]);
}
$this->addColumn(
'in_answer_related_answer',
[
'header' => __('ID'),
'type' => 'hidden',
'name' => 'in_answer_related_answer',
'values' => $this->_getSelectedAnswer(),
'index' => 'answer_id',
'header_css_class' => 'col-select col-massaction',
'column_css_class' => 'col-select col-massaction'
]
);
// $this->addColumn(
// 'answer_id',
// [
// 'header' => __('ID'),
// 'sortable' => true,
// 'index' => 'answer_id',
// 'header_css_class' => 'col-id',
// 'column_css_class' => 'col-id'
// ]
// );
$this->addColumn(
'answer',
[
'header' => __('Answer'),
'index' => 'answer'
]
);
$this->addColumn(
'answer_likes',
[
'header' => __('Answer Likes'),
'index' => 'answer_likes'
]
);
$this->addColumn(
'answer_dislikes',
[
'header' => __('Answer Dislikes'),
'index' => 'answer_dislikes'
]
);
$this->addColumn(
'answer_author',
[
'header' => __('Answer Author'),
'index' => 'answer_author'
]
);
$this->addColumn(
'answer_status',
[
'header' => __('Status'),
'index' => 'answer_status',
'type' => 'options',
'options' => $this->status->getOptionArray()
]
);
$this->addColumn(
'action', [
'header' => __('Action'),
'type' => 'action',
'getter' => 'getId',
'actions' => [
[
'caption' => __('Edit'),
'url' => ['base' => 'faq/answer/edit'],
'field' => 'id',
],
[
'caption' => __('Delete'),
'url' => ['base' => 'faq/answer/delete'],
'field' => 'id',
],
],
'filter' => false,
'sortable' => false,
'index' => 'stores',
'header_css_class' => 'col-action',
'column_css_class' => 'col-action',
]
);
return parent::_prepareColumns();
}
/**
* @return string
*/
public function getGridUrl()
{
return $this->getUrl('faq/answer/answergrid', ['_current' => true]);
}
/**
* @return array
*/
protected function _getSelectedAnswer()
{
$answer = $this->getRequest()->getPost('selected_answer');
if ($answer === null)
{
return $answer = $this->_HelperData->getRelatedAnswerArray($this->getRequest()->getParam('id'));
}
return $answer;
}
}
magento2 grid php-7 grid-serlization
magento2 grid php-7 grid-serlization
asked 13 hours ago
Gee EmmGee Emm
296
296
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f262236%2fgrid-serializer-grid-skip-one-record-while-loading%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f262236%2fgrid-serializer-grid-skip-one-record-while-loading%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown