This is a migrated thread and some comments may be shown as answers.

Grid Ajax editing popup - byte encoding problem

0 Answers 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jatin
Top achievements
Rank 1
Jatin asked on 06 Aug 2011, 03:06 PM
HI,
   I am using Ajax popup editing for Telerik Q2 grid. I have a byte[] as one of the hidden fields in my Model Editor Template coded like this -  @Html.HiddenFor(m => m.Version). When posting back (ajax submit) the edit form, the byte[] array field is throwing the following error when trying to update model in my controller.

"The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters"

The problem does not occur when I use my own Edit Form using normal postback. So I decided to post the issue in this forum. I could see that the byte[] in view is not properly encoded when using telerik ajax edit. The value is displayed as "0,0,0,0,0,0,7,210" when it should be displayed as "AAAAAAAAB9I="

Why does editing through Telerik Grid not encode byte[] properly.

regards,
Nirvan.

 

Tags
Grid
Asked by
Jatin
Top achievements
Rank 1
Share this question
or