Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
Hey guys,

Is it possible to modify a RadTreeView's drag and drop behavior to use a handle?

Just like the RadGrid's GridDragDropColumn:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

Thanks!
- J
Nikolay Tsenkov
Telerik team
 answered on 27 Oct 2010
3 answers
124 views
Hi

We have recently updated telerik from 2008...... dll to newer version which is using 2010...... dll.
Many of control used to 'Default2006' skin previously which is changed to 'Default'. But still management not happy with new 'Default' Skin so is there any how i can get the 'Default2006' skin for whole controls?
Dimo
Telerik team
 answered on 27 Oct 2010
8 answers
557 views
I want to be able to list organizations whether or not they have websites. If they have a website, I want the GridHyperLinkColumn text property = WEB and it would be the hyperlink to link to the organization's website. If they don't have a website, then I want the text property = "" or nothing.

Well, if you don't do anything, you get WEB in the website column whether or not they have a website - now the WEB for live hyperlinks are underlined and work whereas the others are just text with no underline - so it looks bad.

So I thought I would try to use some sort of conditional statement on the Itembound subroutine. I use a class named "Company" and "CheckForWeb" is an instantiation of that class. "GetCompany" is a function in the Company class that will get the company record from the database with the "CompanyID" (id) in the RadGrid row. Here is what I did:

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim id As String = item.GetDataKeyValue("CompanyID").ToString
  
            Dim CheckForWeb As Company
            CheckForWeb = Company.GetCompany(CInt(id))
        ' see if the object is populated
            If CheckForWeb.CompanyID.HasValue Then
        ' check to see if there is a valid URL from the datafield WebsiteURL
                If CheckForWeb.WebsiteURL.Length > 10 Then
                    item("CompanyWebsite").Text = "WEB"
                Else
                    item("CompanyWebsite").Text = ""
                End If
            End If
        End If
    End Sub

Now, that resulted in companies that have websites having WEB in the website column and nothing if they didn't have a website BUT the link was not live - it was just text.

So after scouring the forum, I decided to add a couple of lines to the code to add a hyperlink as shown below.

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
        If TypeOf e.Item Is GridDataItem Then
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
            Dim id As String = item.GetDataKeyValue("CompanyID").ToString
 
            Dim CheckForWeb As Company
            CheckForWeb = Company.GetCompany(CInt(id))
        ' see if the object is populated
            If CheckForWeb.CompanyID.HasValue Then
        ' check to see if there is a valid URL from the datafield WebsiteURL
                If CheckForWeb.WebsiteURL.Length > 10 Then
                    item("CompanyWebsite").Text = "WEB"
                     Dim link As HyperLink = DirectCast(item("CompanyWebsite").Controls(0), HyperLink)
                    link.NavigateUrl = CheckForWeb.WebsiteURL
                Else
                    item("CompanyWebsite").Text = ""
                End If
            End If
        End If
    End Sub

That was really no good as I got the following alert error: Specified argument was out of the range of valid values. Parameter name: index - so I'm back to square one. Any help would be appreciated.
Dimo
Telerik team
 answered on 27 Oct 2010
2 answers
93 views

I am new to telerik. I want rad grid to work as shown in screen shot. Please provide me solution…

 

Marin
Telerik team
 answered on 27 Oct 2010
3 answers
404 views
Hi,

I have following code

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"
    onfileuploaded="RadAsyncUpload1_FileUploaded" TargetFolder="~/App_Data">
</telerik:RadAsyncUpload>

When I upload file I see it in ~/App_Data/RadUploadTemp but it is not later moved to ~/App_data, any idea?

Also event RadAsyncUpload1_FileUploaded is not fired after uploading file, debugger simple do not go to line.
protected void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
   {
       int i; // stop debugger here
   }
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Oct 2010
1 answer
102 views
Hello,
          I want to store a value which is common to the entire row? How do i do it?  Or do I need to keep a hidden column to do it? Please let me know. I didnt see much information on this in the documentation.

Thanks,
Bharani
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2010
3 answers
150 views
hi,
http://demos.telerik.com/aspnet-ajax/listview/examples/selecting/defaultcs.aspx

i want to set one of the item selected (with selected SelectedItemTemplate) in Page_Load in above example.





Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Oct 2010
4 answers
275 views
I have read through a number of posts and articles today and am still a bit unclear on how to solve a particular rebind issue we are seeing. Any help would be greatly appreciated.

ASPX Page (Default.aspx)
    -> RadTabString
    -> RadMultiPageView
        -> UserControl
            -> RadPanelBar
                -> RadGrid

The hierarchy above outlnes where my grid is in the page. Basically we are mimicing the same functionality found in this demo: 
Using RadWindow to Edit a Grid Row

The main difference is that our grid is not on the same page like the demo but embedded in a usercontrol and also within a RadPanel that allows us to collapse the multiple grids that are on that control.

As with some other posters, we are seeing the issue of the RadGrid not refreshing when you call Rebind within the RadAjaxManager1_AjaxRequest call.

We do see the _NeedDataSource call being made and the DataSource being set to the update data object, the control itself just won't redraw.

Is there an efficient way to make the grid refresh in this scenario?

Thanks





Gajanan
Top achievements
Rank 2
 answered on 27 Oct 2010
0 answers
110 views
Is posible attach files directly to mail message without stored en file system?

tks
Ludwing
Top achievements
Rank 1
 asked on 26 Oct 2010
4 answers
159 views
I have a page with a link that opens a RadWindow on the page with an edit form.  When the user saves on the RadWindow the entire page reloads and updates info.  This was based on a Telerik example and worked fine.

I added a fileExplorer to the page now with a custom content provider.  Everything seemed to be working well.

However, my users have encountered an issue when they upload files.  I see that Upload is the only event on the FileExplorer that does a postback and not just an ajax load.  If the user uploads a file, and then uses the RadWindow edit form and saves their changes they will be prompted 100% of the time with the generic "Do you want to reload the page" browser dialog box and if they click cancel they will get Session has expired, if they click retry they will get the message from the FileExplorer stating that the file already exists.

It seems that the upload process from the FileExplorer is lingering in the page and when I tell my form to save it tries to save the file again since its locked up in the page refresh.

This seems to be because the edit form does a postback of its own information, and then using javascript closes itsself and reloads the underlying page, which still has the upload postback to fire. Its a simple window.location.reload()

Any suggestions as to a work around for this?
Jay Leffue
Top achievements
Rank 1
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?