Hi,
I am using WARP control(9.1.20091.2190) and i defined webdatagrid inside it.But if i click button on page the webdatagrid is not showing data it simply showing the lines.
Please refer attached source files for your reference.
Thanks & Regards
Obalesu.N
Hello Obalesu N,
Thank you for posting in the community.
WebAsyncrefreshPanel has been designed to work with our Classic controls which are not Ajax Extentions dependent. Since you are using WebDatGrid, which is built on the Aikido framework(that means it is Ajax Extensions dependent) what I can suggest is consider using the UpdatePanel instead of WebAsyncRefreshPanel. Some further reference about UpdatePanel could be found at:
http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.aspx
Additionally, please ensure that the WebDataGrid is being bound on every postback. If the data is not present for the grid on postback the grid can be displayed blank.
I hope this information helps in resolving the issue.
Feel free to contact me if you have any additional questions regarding this matter.
Hi Vasya,
Thanks for reply and as you said i am using updatepanel instead of WARP control.UpdatePanel is working fine for my usercontrol but if i port this usercontrol in sharepoint(2007) webpart updatepanel is not working.
Can you please suggest how do we use updatepanel with webdatagrid in sharepoint(2007) webpart.
Thank you for your response.
By default this control does not work with these standart SharePoint components because of teh differences in the postback mechanisum that are used by SharePoint and ASP.NET. The ASP.NET AJAX UpdatePanel control must change the page’s postback behavior to enable support for asynchronous postbacks and partial rendering. However, in a SharePoint application, these modifications cause a JavaScript error. This is because SharePoint attempts to make a similar change. TheSafeScriptManager control corrects the JavaScript problem.
What I can suggest for resolivng you issue is adding a ererence to Microsoft.Practices.SPG.AJAXSupport.dll. Add a SafeScriptManager control to your page and set the EnableUpdatePanelSupport flag to true. This changes the postback script that is needed for the UpdatePanel control to work in a SharePoint environment. For example:
[code]
<%@ Register
Assembly="Microsoft.Practices.SPG.AJAXSupport, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8768CCAE1C3C9EB2"
TagPrefix="spg"
Namespace="Microsoft.Practices.SPG.AJAXSupport.Controls" %>
<spg:SafeScriptManager ID="SafeScriptManager"
runat="server"
EnableUpdatePanelSupport = “True”
/>
<asp:UpdatePanel runat=”Server” id=”MyUpdatePanel”>
...
</asp:UpdatePanel>
Some further reference could be found at:
http://msdn.microsoft.com/en-us/library/ff650218.aspx
I hope this helps. Feel free to contact me if you have any additional questions regarding this matter.
Unable to find link to download Microsoft.Practices.SPG.AJAXSupport.dll library, if anyone have idea, please share it asap.
Please do not hesitate to contact me if you have any additional questions regarding this matter.
This dll file is not part of the Infragistics packages. However, I noticed that the same question has been discussed in the following thread that you might find helpful:
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ebbeff36-2f83-4c54-90cb-eeab3e21f7f5
I hope this helps. Feel free to contact me if you have any further questions regarding Infragistics components.
Thanks for your reply,I did not find above mentioned dll(Microsoft.Practices.SPG.AJAXSupport.dll) in my machine where can we download this dll.
Obalesu,N