set variable to defaultValue of date column

Questionsset variable to defaultValue of date column
abdelilah dourhmani asked 1 week ago

how can i set a variable $datechange to column date as defaultValue

1 Answers
Abu answered 1 week ago

If this variable is based on $_GET then you can simply put it in defaultValue property of editoptions.

If it’s coming from $_POST then you need to preserve it in session and then use it.

https://www.gridphp.com/docs/misc-faqs/#q-how-to-load-grid-based-on-_post-data-from-other-page

If it doesn’t solve, share grid code as well.

Your Answer

20 + 5 =

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?