I have a webgrid inside a WebAsyncRefreshPanel and have the WebAsyncRefreshPanel's target control pointing to a webcombo. When i'm setting the datasource for the webgrid i'm trying to set the parameter to a control but when i click the dropdownlist to select my webcombo there are no controls listed.
Can anybody tell me what i'm missing
Thanks
Paul
Hello Paul,
I'd say it does not really make much of a difference, because you can always convert the string back to integer on the server, and in javascript there are not strict types anyway, so it does not matter if you pass int or string to the .value property of a hidden field.
Hi
I came across this video http://community.infragistics.com/videos/aspnet/data-binding/master-detail.aspx on this website. When you click the webcombo it populates a hidden label. This label is then used as the control parameter which works fine.
This demo uses the northwind database where the companyid is a text field. If this was an interger am i right in saying that i could not use this method of using a hidden field because this would pass the value as text?
Maybe this is not they way this would be used in the real world anyway?
Anyway
Thanks again
Hello,
That's a bit hard to tell - but could this be a page lifecycle issue? For example, you are trying to access the controls in the Page_Load event, whereas in a postback (ajaxified) scenario they are available only in the postback event handler?
Still, if you paste some of your sample code, this will surely provide additional clues.
Hi Anand
I can see the webcombo when i run the app and it has data. The WebAsyncRefreshPanel is able to see the webcombo because i set it as the target control i'm just not sure why the webgrid can't.
might be because its empty.
try to add one parameter as ("", "") both empty on page load and see if you are able to see that webcombo.
I was getting same thing for a dropdown in WebGrid.
hope this helps.