Kendo UI DataSource/Grid Change Client Filter Parameters2019 Community Moderator ElectionReloading/refreshing Kendo GridKendo UI grid. Not transmitted parameters - pageSize and SkipJSONP response for Kendo UI does not populate gridGet Kendo Grid filtered datasource counthow to get the Selected item in dropdownlist while click the Edit button in inline kendo grid in asppass kendo grid DataSourceRequest from javascript to ASP.NETKendo grid/datasource/groupingMouse scroll is not working in IE browser in Kendo Grid with virtualization.How to apply filters to a kendo grid datasource on startupKendo Vue datasource for Kendo grid with Auth Header
Rejected in 4th interview round citing insufficient years of experience
What is the greatest age difference between a married couple in Tanach?
What options are left, if Britain cannot decide?
What is a good source for large tables on the properties of water?
How to write cleanly even if my character uses expletive language?
Do I need life insurance if I can cover my own funeral costs?
Can elves maintain concentration in a trance?
Is a lawful good "antagonist" effective?
I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver
Old race car problem/puzzle
Why do Australian milk farmers need to protest supermarkets' milk price?
Know when to turn notes upside-down(eighth notes, sixteen notes, etc.)
Brexit - No Deal Rejection
Welcoming 2019 Pi day: How to draw the letter π?
Why are there 40 737 Max planes in flight when they have been grounded as not airworthy?
Employee lack of ownership
Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?
Why do passenger jet manufacturers design their planes with stall prevention systems?
Connecting top and bottom SMD component pads using via
What does it mean to make a bootable LiveUSB?
How to answer questions about my characters?
Why did it take so long to abandon sail after steamships were demonstrated?
Did CPM support custom hardware using device drivers?
Using "wallow" verb with object
Kendo UI DataSource/Grid Change Client Filter Parameters
2019 Community Moderator ElectionReloading/refreshing Kendo GridKendo UI grid. Not transmitted parameters - pageSize and SkipJSONP response for Kendo UI does not populate gridGet Kendo Grid filtered datasource counthow to get the Selected item in dropdownlist while click the Edit button in inline kendo grid in asppass kendo grid DataSourceRequest from javascript to ASP.NETKendo grid/datasource/groupingMouse scroll is not working in IE browser in Kendo Grid with virtualization.How to apply filters to a kendo grid datasource on startupKendo Vue datasource for Kendo grid with Auth Header
When using the Kendo UI Grid I can manipulate requests being sent to the server using the parameterMap
in the transport
option if I set the dataSource to use serverPaging
, serverFiltering
, and/or serverSorting
. Specifically I am looking for certain fields in the filter of a read request and I am changing the name of the field being filtered.
When doing all of my filtering, sorting, and paging client-side the transport
options, including parameterMap
no longer apply. Is there some other way that I can modify filter requests for client-side filtering?
I am using jQuery version 2017.2.621.
EDIT to include requested code. This is for changing the fields on server filtering/sorting. Need to accomplish this with client-side.
var dataSourceGrid = new kendo.data.DataSource(
schema:
model:
id: "my_line_id",
fields: modelFields
,
data: "data",
total: "total"
,
pageSize: 15,
serverPaging: false,
serverFiltering: false,
serverSorting: false,
transport:
create:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
read:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
update:
url: "./grid.php",
type: "POST",
data: action: 'update', my_id: my_id,
dataType: "json"
,
parameterMap: function(data, type)
if (type === "read" && data.filter)
$.each(data.filter.filters, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
if (type === "read" && data.sort)
$.each(data.sort, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
return data;
);
jquery kendo-ui kendo-grid filtering kendo-datasource
add a comment |
When using the Kendo UI Grid I can manipulate requests being sent to the server using the parameterMap
in the transport
option if I set the dataSource to use serverPaging
, serverFiltering
, and/or serverSorting
. Specifically I am looking for certain fields in the filter of a read request and I am changing the name of the field being filtered.
When doing all of my filtering, sorting, and paging client-side the transport
options, including parameterMap
no longer apply. Is there some other way that I can modify filter requests for client-side filtering?
I am using jQuery version 2017.2.621.
EDIT to include requested code. This is for changing the fields on server filtering/sorting. Need to accomplish this with client-side.
var dataSourceGrid = new kendo.data.DataSource(
schema:
model:
id: "my_line_id",
fields: modelFields
,
data: "data",
total: "total"
,
pageSize: 15,
serverPaging: false,
serverFiltering: false,
serverSorting: false,
transport:
create:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
read:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
update:
url: "./grid.php",
type: "POST",
data: action: 'update', my_id: my_id,
dataType: "json"
,
parameterMap: function(data, type)
if (type === "read" && data.filter)
$.each(data.filter.filters, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
if (type === "read" && data.sort)
$.each(data.sort, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
return data;
);
jquery kendo-ui kendo-grid filtering kendo-datasource
Show the code that is changing the filter ?
– Richard
Mar 6 at 22:05
Updated the question to include code snippet.
– Ricca
Mar 7 at 0:11
add a comment |
When using the Kendo UI Grid I can manipulate requests being sent to the server using the parameterMap
in the transport
option if I set the dataSource to use serverPaging
, serverFiltering
, and/or serverSorting
. Specifically I am looking for certain fields in the filter of a read request and I am changing the name of the field being filtered.
When doing all of my filtering, sorting, and paging client-side the transport
options, including parameterMap
no longer apply. Is there some other way that I can modify filter requests for client-side filtering?
I am using jQuery version 2017.2.621.
EDIT to include requested code. This is for changing the fields on server filtering/sorting. Need to accomplish this with client-side.
var dataSourceGrid = new kendo.data.DataSource(
schema:
model:
id: "my_line_id",
fields: modelFields
,
data: "data",
total: "total"
,
pageSize: 15,
serverPaging: false,
serverFiltering: false,
serverSorting: false,
transport:
create:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
read:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
update:
url: "./grid.php",
type: "POST",
data: action: 'update', my_id: my_id,
dataType: "json"
,
parameterMap: function(data, type)
if (type === "read" && data.filter)
$.each(data.filter.filters, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
if (type === "read" && data.sort)
$.each(data.sort, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
return data;
);
jquery kendo-ui kendo-grid filtering kendo-datasource
When using the Kendo UI Grid I can manipulate requests being sent to the server using the parameterMap
in the transport
option if I set the dataSource to use serverPaging
, serverFiltering
, and/or serverSorting
. Specifically I am looking for certain fields in the filter of a read request and I am changing the name of the field being filtered.
When doing all of my filtering, sorting, and paging client-side the transport
options, including parameterMap
no longer apply. Is there some other way that I can modify filter requests for client-side filtering?
I am using jQuery version 2017.2.621.
EDIT to include requested code. This is for changing the fields on server filtering/sorting. Need to accomplish this with client-side.
var dataSourceGrid = new kendo.data.DataSource(
schema:
model:
id: "my_line_id",
fields: modelFields
,
data: "data",
total: "total"
,
pageSize: 15,
serverPaging: false,
serverFiltering: false,
serverSorting: false,
transport:
create:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
read:
url: "./grid.php",
type: "POST",
data: action: 'read', my_id: my_id,
dataType: "json"
,
update:
url: "./grid.php",
type: "POST",
data: action: 'update', my_id: my_id,
dataType: "json"
,
parameterMap: function(data, type)
if (type === "read" && data.filter)
$.each(data.filter.filters, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
if (type === "read" && data.sort)
$.each(data.sort, function (i, v)
if (v.field === 'field_1')
v.field = 'new_field_1';
if (v.field === 'field_2')
v.field = 'new_field_2';
if (v.field === 'field_3')
v.field = 'new_field_3';
if (v.field === 'field_4')
v.field = 'new_field_4';
);
return data;
);
jquery kendo-ui kendo-grid filtering kendo-datasource
jquery kendo-ui kendo-grid filtering kendo-datasource
edited Mar 7 at 0:10
Ricca
asked Mar 6 at 18:34
RiccaRicca
94118
94118
Show the code that is changing the filter ?
– Richard
Mar 6 at 22:05
Updated the question to include code snippet.
– Ricca
Mar 7 at 0:11
add a comment |
Show the code that is changing the filter ?
– Richard
Mar 6 at 22:05
Updated the question to include code snippet.
– Ricca
Mar 7 at 0:11
Show the code that is changing the filter ?
– Richard
Mar 6 at 22:05
Show the code that is changing the filter ?
– Richard
Mar 6 at 22:05
Updated the question to include code snippet.
– Ricca
Mar 7 at 0:11
Updated the question to include code snippet.
– Ricca
Mar 7 at 0:11
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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');
);
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%2fstackoverflow.com%2fquestions%2f55029999%2fkendo-ui-datasource-grid-change-client-filter-parameters%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 Stack Overflow!
- 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');
);
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%2fstackoverflow.com%2fquestions%2f55029999%2fkendo-ui-datasource-grid-change-client-filter-parameters%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');
);
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');
);
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');
);
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
Show the code that is changing the filter ?
– Richard
Mar 6 at 22:05
Updated the question to include code snippet.
– Ricca
Mar 7 at 0:11