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

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved