Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
123 views
Is there any way for designer to auto-generate the FormTemplate so that it can be modified according to my needs?

For example I'm binding ObjectType that has many many fields (using ObjectDataSource) I can generate columns in designer so I can nontrol them manually - but I would like designer to also generate the FormTemplate for edit/insert operations (It may be the layout like it's done automatically when I have EditFormType="AutoGenerated" property set)
That would be especially useful for grids with many columns.

Thanks
Greetings
Michal Szilder, Krakow, Poland
Tsvetoslav
Telerik team
 answered on 07 Apr 2011
1 answer
81 views
How can I format the data in the data table?  I would like to format the number in a certain format and alos right justify the values.
Giuseppe
Telerik team
 answered on 07 Apr 2011
4 answers
195 views
Hello,

I have a tabstrip with the multipage's scrollbar property set to 'auto'. When the content inside the pageview grows too large, the scrollbar appears and works excellently.

However, anytime there is an ajax postback on the page, the pageview's scrollbar gets reset to the top. I was just wondering if there is a relatively simple way to force the pageview to remember its scroll position after a postback.

Using Q2 2010 and IE7

Thank you,
Josh
Yana
Telerik team
 answered on 07 Apr 2011
1 answer
50 views
Hi,

There appears to be a bug in the Image editor in Firefox 4. When you attempt to rotate an image 90 the saved thumbnail is distorted. The function works in IE9. I tested on the demo site.

Jeff
Marin Bratanov
Telerik team
 answered on 07 Apr 2011
1 answer
176 views
Hello

I wonder if there's any way to edit the content of a RadListView into a PopUp?  (like RadGrid does)
Can you provide an example to achieve it?

I have some grids and a RadListView, and I want to provide an homogeneous way to input data.
My RadListView have a lot of items that are not shown on the ItemTemplate or SelectedItemTemplate, but must show on EditItemTemplate so will be confortable if can be on a PopUp...

Thank You
Carlos Asensio Martinez
Princy
Top achievements
Rank 2
 answered on 07 Apr 2011
2 answers
106 views
I am trying to complete a task that I have found half the answer for. I would like the context menu in the grid to only work on files, not folders. I found the solution for hiding the context menu. However, I'm not sure how to check each row for whether it is a file or folder. I am digging through the javascript now, but this is time sensitive so I thought I would post right away.
Dobromir
Telerik team
 answered on 07 Apr 2011
4 answers
738 views
Hi
I am using the Radlistview like a list of checkboxes and I can select multiple items out of it.

How can I get the selected values on a Button click event?

Here is my aspx code:

 <telerik:RadListView ID="rlv_Aircraft" runat="server"   
                                AllowMultiItemSelection="True" ClientDataKeyNames="name"   
                                DataSourceID="SqlDataSource_Aircraft" Skin="Black" 
                                DataKeyNames="name" > 
                                <LayoutTemplate> 
                                    <div class="RadListView RadListView_Black">  
                                        <table cellspacing="0" style="width:40px;">  
                                            <tbody> 
                                                <tr ID="itemPlaceholder" runat="server">  
                                                </tr> 
                                            </tbody> 
                                        </table> 
                                    </div> 
                                </LayoutTemplate> 
                                <ItemTemplate> 
                                    <tr class="rlvI">  
                                        <td width="20px">  
                                            <asp:Button ID="SelectButton" runat="server" CommandName="Select"   
                                                CssClass="rlvBSel" Text=" " /> 
                                        </td> 
                                        <td width="60px">  
                                            <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> 
                                        </td> 
                                        <td>&nbsp;  
                                        </td> 
                                    </tr> 
                                </ItemTemplate> 
                                <AlternatingItemTemplate> 
                                    <tr class="rlvA">  
                                        <td width="20px">  
                                            <asp:Button ID="SelectButton" runat="server" CommandName="Select"   
                                                CssClass="rlvBSel" Text=" " /> 
                                        </td> 
                                        <td width="60px">  
                                            <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> 
                                        </td> 
                                        <td>&nbsp;  
                                        </td> 
                                    </tr> 
                                </AlternatingItemTemplate> 
                                <EmptyDataTemplate> 
                                    <div class="RadListView RadListView_Black">  
                                        <div class="rlvEmpty">  
                                            There are no items to be displayed.</div> 
                                    </div> 
                                </EmptyDataTemplate> 
                                <SelectedItemTemplate> 
                                    <tr class="rlvISel">  
                                        <td width="20px">  
                                            <asp:Button ID="DeselectButton" runat="server" CommandName="Deselect"   
                                                CssClass="rlvBSel" Text=" " /> 
                                        </td> 
                                        <td width="60px">  
                                            <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' /> 
                                        </td> 
                                        <td>&nbsp;  
                                        </td> 
                                    </tr> 
                                </SelectedItemTemplate> 
                            </telerik:RadListView> 
Princy
Top achievements
Rank 2
 answered on 07 Apr 2011
1 answer
92 views
Hi, I'm using Radupload and trying to save a record to the database like so on a button click event:

If RadUpload1.UploadedFiles.Count > 0 Then
        .Picture = RadUpload1.UploadedFiles(0).FileName
Else
        .Picture = ""
End If

However, I would also like to change the filename when the file already exists. So I added the FileExists function:
        Protected Sub RadUpload1_FileExists(ByVal sender As Object, ByVal e As UploadedFileEventArgs) Handles RadUpload1.FileExists
            Dim counter As Integer = 1
            Dim file As UploadedFile = e.UploadedFile
            Dim targetFolder As String = Server.MapPath(RadUpload1.TargetFolder)
            Dim targetFileName As String = System.IO.Path.Combine(targetFolder, file.GetNameWithoutExtension & counter & file.GetExtension)
            While System.IO.File.Exists(targetFileName)
                counter += 1
                targetFileName = System.IO.Path.Combine(targetFolder, file.GetNameWithoutExtension & counter & file.GetExtension)
            End While
            file.SaveAs(targetFileName)
        End Sub

This results in changing the filename to picture1.jpg if picture.jpg already exists.
However, it will still save picture.jpg to the database.
How can I make sure it will be updated in the correct way?
Dimitar Terziev
Telerik team
 answered on 07 Apr 2011
7 answers
118 views
Hi,

My problem is that on my opened RadWindow I have a RadGrid.
Is it possible to return a complex list of object to parent?
Lets say my grid has 3 columns (1 checkbox and 2 string ones)
Can I return something like datasource or create custom class in js?
Should I iterate through the radgrid items?
Any code sample would be great.

Thanks
Marin Bratanov
Telerik team
 answered on 07 Apr 2011
5 answers
280 views
Hi,

I'm using a RadScheduler inside a RadAjaxPanel, with an ASP.NET Timer to have scheduler data auto-refreshed.

Is it possible to keep scrolling state between ajax refresh to avoid user always scroll ?
Or is there another way to have automatic refresh behavior ?

Thanks.
Peter
Telerik team
 answered on 07 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?