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










0















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;


);









share|improve this question
























  • 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















0















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;


);









share|improve this question
























  • 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













0












0








0








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;


);









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

1928 у кіно

Захаров Федір Захарович

Ель Греко