Skip to content Skip to sidebar Skip to footer

Access Object From Javascript Devexpress

I wonder why I cant access Object by ClientInstanceName from javascript. example: function NextStep(pageControl) { currentStep = pageControl.GetActiveTabIndex(); sw

Solution 1:

This means that the ASPxPageControl sends a callback to the server every time you activate a new tab. This callback is necessary to obtain the content of the active tab and show it on the client. So, this approach reduces the time needed to load a page as a small content is sent to the client side. Note, that if the EnableCallbacks is set to true, the ASPxPageControl caches its contents on the client side. So, when you activate a Tab which was already active, a callback is not sent and thus tab is activated using the pure client side code.

Solution 2:

Have you set GridViewClient to disabled=true? As per this entry on the dx forums, this will result in no client-side object being created.

Solution 3:

I think that you are using the ASPxPageControl in a non client side mode. I.e. either AutoPostBack property is true or EnableCallbacks property is true. In this case, only the active tab page content is rendered and thus controls on inactive tabs are not available.

Post a Comment for "Access Object From Javascript Devexpress"