|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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
|
|
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?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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!
|
|