Query about Decoded Format

QuestionsQuery about Decoded Format
Ankit asked 12 years ago

how do i get data in decoded format in phpgrid?

3 Answers
Abu Ghufran answered 12 years ago

Please explain what do you mean by data in decoded format.
Which data are you talking about. Can you elaborate with e.g. or screenshot.

Thanks

Ankit answered 12 years ago

my data is in encoded format(like jo%hn+marti+n) in mysql database …i would like to get it in decoded format(like john martin) in php grid

Abu Ghufran answered 12 years ago

You can use on_data_display custom event, and pass all data from urldecode() function.
If you are using paid version, you can refer editing/custom-events.php

$e["on_data_display"] = array("filter_display", null, true);
$grid->set_events($e)

function filter_display($data)
{
foreach($data["params"] as &$d)
{
$d["email"] = urldecode($d["email"]);
}
}

Your Answer

20 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?