Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
153 views
I looked up the web and there are plenty of issues/workarounds with handling the viewstates for dynamically created controls and statically designed elements.   However they are more like hacks and I'd prefer to avoid going to that route.

What is the best approach and gotchas if I need to create RadEditor, RadCombo, RadTextbox dynamically?

My page would have some static elements on the top and bottom of the page, and the center of the page would have some dynamically created controls based on what the user has selected from a dropdown.

It will have a RadUpload statically created and a button to validate during postback.
After postback if validation fails, the values the user entered in the dynamically created controls (RadTextbox/Combo/Editor) should remain.

I don't see VS2010 to mention any additional feature to the dynamically created control's viewstate issue.
Marbry
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
76 views
Hello ALL,

I have used RadDatePicker into my web page, Now i want to restrict feature date selection to user.

So i had set the max date property as today's date from code behind.it's working properly, user can't able to select feature date from calender.

In case if user try to add feature date manually, then date picker highlighted with warning symbol with yellow color.

But when i click on save button and checked Page.IsValid property, it will always give me true and i got the date picker selected value as null.

How can i validate RadDatePicker for feature date? Please help me.

Here is my code :

aspx :
  <telerik:RadDatePicker ID="dpCompletedDate" Calendar-ShowRowHeaders="false"
                                    Skin="Office2007" runat="server"  />

Page Load cs :
dpCompletedDate.MaxDate = System.DateTime.Now;

Kevin
Top achievements
Rank 2
 answered on 01 Nov 2011
3 answers
153 views
Hello;

I'm trying to add a new row to a Radgrid client-side using insertItem() and then update all inserted items in a single batch.

I've got several questions:

1)  What's the correct way to use the client-side API call insertItem() ?
2)  Can insert operations be batched like edit operations?

Thanks...
Iana Tsolova
Telerik team
 answered on 01 Nov 2011
3 answers
101 views
I'm using resolution 800x600 and when show radwindow with a big size (940 width , 730 height) it shifted up and the controls in the top of the page which is displayed in the radwindow became unreachable .. how to fix this
thanks for effort 
Marin Bratanov
Telerik team
 answered on 01 Nov 2011
5 answers
241 views
I am using a usercontrol for my grid edit form and have editmode set to popup.

When I edit an item in my grid, the popup edit form shows along with a caption bar along the top with a big "X" close-button at the right end of the caption bar.

I read here:

http://www.telerik.com/help/aspnet-ajax/grdcustomeditforms.html       

"Please note that all settings related to the edit form caption are applied only if the EditFormType is "AutoGenerated". Otherwise a caption is not rendered automatically by RadGrid, however, you can add a custom caption in the edit form template or user control edit form."

I thought this meant that having my EditFormType set to "WebUserControl" would suppress the rendering of a caption on the popup edit form.

I don't mind having a caption (I am able to put change the caption content via the captiondatavield and captionformatstring) but I am having trouble controlling its appearance.  The caption bar that renders is only about half as wide as the usercontrol that I have created as my edit form and any of the formatting I apply to *it* seems to only render as wide as the caption.  That is, I put a border around my edit form control and when it pops up, the border only shows around the left half of the form (showing only as wide as the rendered caption).

Is there a way to force the caption to be as wide as my control?  If not, is there a way to specifically suppress the rendering of the caption?

Thanks,

Mike
Augusto
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
109 views
Hello,
I open popup window which displays a page. When I try to call web service from pageLoad() function, I always get a message "Insufficient stack space". When I put function to main window and call if with wnd.BrowserWindow.MyFunction(), I get no errors and everything works fine. Does this mean I cannot call web service directly from RadWindow?
Thank you.
Marin Bratanov
Telerik team
 answered on 01 Nov 2011
1 answer
169 views
Hi

I have a rad grid that shows a list of names and a delete column. I do not want the user to be able to edit the names, they should only be able to delete (using the delete column) and insert (using the EditMode="InPlace" built in elements).

How do I get the standard built in Update/Cancel command buttons to appear without having to have an Edit column in my grid?

Thanks
Corina
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
97 views
Hello,

I want to know if the control is Telerik control in clientside ( javascript)
Is it possible to know  ?
Rumen
Telerik team
 answered on 01 Nov 2011
3 answers
288 views
Hello,

I am using Rad Ajax controls version 2011.2.915. Whenever a user running Windows XP and IE 7 tries to upload a file from My Documents or another network location they get prompted with a windows credential box. If they enter their credentials IE 7 locks up.

The RadAsyncUpload works fine in windows 7 IE8. If the IE 7 users try a file from their C drive, that functions correctly as well. 

I have tried to allow Anonymous Access to the website in IIS (5) but this does not make a difference. Placing these lines of Javascript before the upload control also do not help.

 <script type="text/javascript">     
   if (Telerik.Web.UI.RadAsyncUpload != null && Telerik.Web.UI.RadAsyncUpload.Modules != null) {
         Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; };
         Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };
   }
</script>



How do I either disable the flash and silverlight, or how do I fix the permissions problem?

Here is how I am using the uploader in a RadGrid, once as an attachment column for inserting, and once as a control in a template column for editing.

<telerik:GridAttachmentColumn AttachmentDataField="Data" FileName="Name"
                       FileNameTextField="Name"
                       HeaderText="View Attachment" UniqueName="Data" DataTextField="Name"
                       AttachmentKeyFields="FormSequenceNr" EditFormHeaderTextFormat="">
                   </telerik:GridAttachmentColumn>
                   <telerik:GridTemplateColumn HeaderText="File"  DataField="Name" FilterControlAltText="Filter TemplateColumn column"
                       UniqueName="Name">
                       <ItemTemplate>
                           <asp:Label runat="server" ID="lblName" Text='<%# Eval("Name") %>' />                         
                       </ItemTemplate>                           
                       <EditItemTemplate>                       
                           <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded"
                               OnValidatingFile="RadAsyncUpload1_ValidatingFile">
                           </telerik:RadAsyncUpload>
                       </EditItemTemplate>
                   </telerik:GridTemplateColumn>




Thanks
Peter Filipov
Telerik team
 answered on 01 Nov 2011
1 answer
149 views
I'm working with the RadTreeView, within an HTML table;

An objective for this .aspx web page is to have the RadTreeView resize, according to the resizing of a .aspx web page;

For example, if the width or height of the .aspx web page is resized to a point where the .aspx web page has less width or less height than the RadTreeView itself - the RadTreeView will resize accordingly with scroll bars;

Hopefully the description provides a clear understanding;  Best regards - Rob

<table style="width: 100%;">
        <tr>
            <td align="left" valign="top">
  
             <telerik:RadTreeView ID="RadTreeView1" runat="server" 
                    OnNodeExpand="RadTreeView1_NodeExpand" ForeColor="Black" 
                Font-Names="Microsoft Sans Serif" onnodeclick="RadTreeView1_NodeClick" 
                    Height="600px" Width="400px" Font-Size="Medium">
             </telerik:RadTreeView>
  
            </td>
            
  
            <td>
                 
            </td>
  
            <td align="right" valign="top" width="100%">
                <iframe runat="server" id="myPDF" height="600" width="100%" visible="false" ></iframe>
            </td>
              
        </tr>     
          
        <tr>
            <td colspan="2" class="style1" height="100px">
  
                <asp:Label ID="Label1" runat="server" Text="" ForeColor="#0D141A"></asp:Label>
  
            </td>
        </tr>   
          
           <tr>
                    <td align="center" colspan="3" valign="bottom">
                        
                       <asp:Image ID="FALogo" runat="server" ImageUrl="~/Images/FA_Logo_600x289.png"/>
  
                         <asp:Image ID="imgContactUs" runat="server" ImageUrl="~/Images/ContactUs.png" visible="false"/>
  
                    </td>
                </tr>       
         
    </table>
Dimitar Terziev
Telerik team
 answered on 01 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?