Welcome Guest Search | Active Topics | Sign In | Register

Grid Control Options
Minhasnk
Posted: Thursday, January 19, 2017 6:37:26 AM
Rank: Newbie
Groups: Member

Joined: 1/19/2017
Posts: 2
Hi

I have a EO:grid on webform and adding DateTimeColum in code behind. When I run the form and click on DateTimeColum, it doesn't show
DatePicker and throw following exception in browser.

eo_web.ashx?id=b4565c2b-4ddc-4af8-9741-44125a0bde1a:6 Uncaught TypeError: Cannot read property 'setSelectedDate' of null
at EO1047.f.abjv.EO1047.f.able [as abci] (eo_web.ashx?id=b4565c2b-4ddc-4af8-9741-44125a0bde1a:6)
at EO1047.f.abep.EO1047.f.abgc [as aayu] (eo_web.ashx?id=b4565c2b-4ddc-4af8-9741-44125a0bde1a:6)
at EO1047.f.abep.EO1047.f.abgs [as adq] (eo_web.ashx?id=b4565c2b-4ddc-4af8-9741-44125a0bde1a:6)
at Object.EO1047.f.ala (eo_web.ashx?id=7af66148-fe17-4b98-912b-b8deb2965b0e:6)
at HTMLDivElement.EO1047.f.akv (eo_web.ashx?id=7af66148-fe17-4b98-912b-b8deb2965b0e:6)

I set the column value row.Cells[cellIdx].Value = datevalue; like this.

If i press some button and submit page one time and click again DateTimeColum, it works fine.

Any suggestion how to fix this problem.


Thanks
eo_support
Posted: Thursday, January 19, 2017 8:32:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

Please try to place an invisible DatePicker control in the page outside of the Grid and see if it works. You can do this by putting a DatePicker inside a hidden DIV:

Code: HTML/ASPX
<div style="display:none">
   DatePicker here
</div>


Thanks
Minhasnk
Posted: Thursday, January 19, 2017 9:41:53 AM
Rank: Newbie
Groups: Member

Joined: 1/19/2017
Posts: 2
Thanks It solved one problem. Another problem is, When DatePicker control is displayed then if I click away another control on page,it doesn't hide unless I click another column in same grid. How to fix it?
eo_support
Posted: Thursday, January 19, 2017 10:06:05 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

Do you have any JavaScript code in your page that cancels mousedown event? We handle mousedown event on the document object to cancel the popup. So if you have any code that cancels the mousedown event, then it won't work.

You can also run DatePicker in a separate blank page and see if it works. If that works, you can then try to compare your code with the working page to find out what triggered the problem. Usually as soon as you find out the trigger it should make sense to you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.