Hello,
I actually have 2 issue. The main issue I have is with client side binding to a Dataset using PageMethods and serialization. I continue to get a javascript error when the "appylClientBinding" method is used.
I also have an issue with the WebDatePicker using as WebMonthCalendar for the dropdown. I would like to apply the current time value to display with the date only when the date is selected from the dropdown calendar. I placed a client side event on the WebMonthCalendar_SelectionChange (). when I debug the code is seems to be returning the correct values but nothing changes in the date-time display of the WebDatePicker control. Below is a link from my google drive with a sample solution and data files
https://drive.google.com/file/d/0B4nm4_C5BYr4VVVSdXRSLTg1Yms/view?usp=sharing
By the way, I forgot to mention in my post that I'm using VS2012 with IG version 16.2 for framework 4.5.
Hello CHPEmpl,
Thank you for contacting Infragistics support.
Regarding the first issue - what are the steps I have to take in order to get this error?
For the second issue, firstly, you have to attach to value changed event of the WebDatePicker like this:
Secondly, you have to implement the method by setting the hours, minutes and seconds to the current date:
In future, please post different issues in different cases for better tracking and faster responses.
I am looking forward to hearing from you.
Apologies Tihomir,
The 1st issue when you run the application enter the numbers "12345678" in the "Enter Member ID" box, then click the ellipsis button, when the dialog window appears click the "Search" button.
Thank you,
Thank you for your patience.
Regarding the 1st issue, I still cannot get it to throw the error. When I hit the search button with this Id, it does a request but nothing happens. Please share which browser do you use and which controls version as well.
For the second issue, you cannot execute this code on selection changed, because after that the web date picker will update itself with the selected date from the web calendar. What I can propose in your scenario is to use the text changed method from the WebDatePicker:
and check whether the event comes from the web calendar like this:
I am also attaching the Default.aspx file.
I am looking forward to hearing from you regarding the first issue and how can I reproduce it.
Thank You so much for your time Tihomir,
Regarding the 1st issue with the client side data binding. I'm using IE 11. below is the link where you can see screenshots of the error messages I'm getting.
https://drive.google.com/file/d/0B4nm4_C5BYr4OWMzU3NMLW5ld1U/view?usp=sharing
As for the WebDatePicker issues. Your solution worked great. you can consider that one resolved.
I'll test it and review the screenshots with the errors and get back to you tomorrow.
Just to give a little more information. The error is occurring in an IG script "$IG.WebDataGrid.prototype.__loadClientBindingObjects" to reproduce the error you can use the Member ID numbers from any one the records in the database table that was included with the solution from the google drive.
Again,
Thank you for your time.
I am sorry for the delay.
I reproduced the issue.
You should add a reference to the jQuery template library: https://github.com/BorisMoore/jquery-tmpl. Here is a CDN link http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js.
Please let me know if you need further assistance.
Thank again for your response,
I added the references but I'm still getting the same error. I tried coping the jquery code and created the js file in my project's Scripts folder. I also tried using the reference directly from the link.
the references were placed in the content or Form section of the page as:
<script src="Scripts/jquery-1.4.2.tmpl.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.2.tmpl.js" type="text/javascript"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js." type="text/javascript"></script>
I was able to move the jquery references to site.master page of another project.. The error message has gone away. However, nothing happens after that. The grid still doesn't render or display. Below is the script from my other project and the data source value produced from the PageMethod function. Is there anything else I'm missing or need to include to get the grid to display?
I thank you for the time and afford you've spent of this with me but my timeframe for this project is becoming crucial. I really need a solution soon.
Thank you for any other help you can provide.
<script type="text/javascript">function btnFindMember_Click(sender, evetnArgs) { var memidctl = $find("MainContent_MemberLookup_tmpl_txtLookupMemberID"); var memnamectl = $find("MainContent_MemberLookup_tmpl_txtLookupMemberName"); var memid = memidctl.get_text(); var memname = memnamectl.get_text(); if (memid.length > 0 || memname.length > 0); { PageMethods.GetGridData(memid, memname, OnSuccessCallBack, onFailureCallBack); }function OnSuccessCallBack(response, userContext, methodName) { var mgrid = $find("MainContent_MemberLookup_tmpl_WebDataGrid1"); loadGrid(response, mgrid); }
function onFailureCallBack(error) { alert(error.get_message()); }
function loadGrid(dataSource, webgrid) { var grd = webgrid; grd.set_dataSource(dataSource); grd._pi.show(grd); grd.applyClientBinding(); grd._pi.hide(grd); }}</script>
Value of variable "datasource":
[{"MemberID":"9999255","MemberName":"Doe, Jane K","DOB":"\/Date(429336000000)\/","GroupID":"01234","GroupName":"Florida Paint Services","EffDate":"\/Date(1104555600000)\/","TermDate":"\/Date(3439688400000)\/"},{"MemberID":"12345678","MemberName":"Doe, John E","DOB":"\/Date(141019200000)\/","GroupID":"01234","GroupName":"Florida Paint Services","EffDate":"\/Date(1104555600000)\/","TermDate":"\/Date(3439688400000)\/"}]