Telerik Upload Control Inside Rad TabStrip

 i've been 3hours working on this.

You see every control that you put under the tabstrip, multipage

is ajax by default. so that every button that should post back, is not full post back instead using ajax call.

to avoid this we can temporarily disabled it.

 // on upload button click temporarily disables ajax to perform
   // upload actions
   function conditionalPostback(sender, args)
   {
      if (args.get_eventTarget() == "
<%= ButtonSubmit.UniqueID %>")
      {
          args.set_enableAjax(false);
      }

 

Wrap the control that you want to behave post back as usual by Wrap it under

<telerik:ajaxpanel ClientEvents-Onrequeststart="conditionalpostback">

You control here the button submit and Rad Upload

</telerik:ajaxpanel>

 

And then if the Upload always resulting on the FileCount is 0 on Submit

It's because on masterpage Init you change the id or something

So you should disabled or not using master page

or find the control/code that change it

 

Share this post: | | | |
Published Thursday, July 30, 2009 4:34 PM by cipto
Filed under:

Comments

No Comments