This question is locked. New answers and comments are not allowed.
Hello,
I need to pass parameters to the Select method but all parameters must be taken from HTML elements.
I need to do domething like:
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("MyAction", "MyController",
new {
PropertyOne = "<#= aCheckboxInput.checked #>",
PropertyTwo = "<#= $('#aTextInput').val() #>"
})
The PropertyOne gets the rigth value but the property does not, so when the grid data binds get this error:
HTTP Error 400 - Bad Request.
I also tried to acces directly (without JQuery) to the text input but I get the same error. I mean, something like: .DataBinding (dataBinding => dataBinding.Ajax()
.Select("MyAction", "MyController",
new {
PropertyOne = "<#= aCheckboxInput.checked #>",
PropertyTwo = "<#= aTextInput'.value #>"
})
For some reason, all Telerik's samples don't mention a way to do this.
Thank you,
I need to pass parameters to the Select method but all parameters must be taken from HTML elements.
I need to do domething like:
.DataBinding(dataBinding => dataBinding.Ajax()
.Select("MyAction", "MyController",
new {
PropertyOne = "<#= aCheckboxInput.checked #>",
PropertyTwo = "<#= $('#aTextInput').val() #>"
})
The PropertyOne gets the rigth value but the property does not, so when the grid data binds get this error:
HTTP Error 400 - Bad Request.
I also tried to acces directly (without JQuery) to the text input but I get the same error. I mean, something like: .DataBinding (dataBinding => dataBinding.Ajax()
.Select("MyAction", "MyController",
new {
PropertyOne = "<#= aCheckboxInput.checked #>",
PropertyTwo = "<#= aTextInput'.value #>"
})
For some reason, all Telerik's samples don't mention a way to do this.
Thank you,