Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
Greetings!

Please let me know if it is possible to make use of Tree View control inside the textbox, provided both tree view is telerik control.
Shinu
Top achievements
Rank 2
 answered on 23 May 2013
2 answers
178 views
When using a GridHyperlink column bound to a datasource it automatically sets the title attribute of the generated link to the value of the innerHtml of the anchor element.  Is there a way to set the value to another value.

    <telerik:GridHyperLinkColumn DataNavigateUrlFormatString='~/{0}?Id={1}' DataNavigateUrlFields="Url,Item.Id" NavigateUrl="" HeaderText="Subject" DataTextField="Item.LinkText"  />


Which will render a link if item.LinkText is equal to "Hello World"

<a href="somelink?Id=1" title="Hello world">Hello World</a>

I don't want the title attribute to contain the link's text, but some other value instead including an empty string.
Is there some way to accomplish this?
Michael
Top achievements
Rank 1
 answered on 22 May 2013
4 answers
431 views
I have a bunch of grids and i need to be able to delete rows, then undelete them if needed. Right now i have a red x for the delete column, which is in a GridButtonColumn, but i would like to change the icon to something that represents an undelete action. I'm able to undelete the row by going through each row in the onitemdatabound function and changing the commandname for the GridButtonColumn to undelete, but i can't seem to change the image. this is what i have for the onitemdatabound right now:
 
protected void ManageUsersGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
    GridDataItem item = e.Item as GridDataItem;
     if (item != null)
     {
        LinkButton button = item["DeleteColumn"].Controls[0] as LinkButton;
        button.CommandName = "Undelete";
    }
}

I check to see if the row in in a deleted state in there, but i removed it for simplicity
Iedoc
Top achievements
Rank 1
 answered on 22 May 2013
1 answer
110 views

Hi there,

We are in the process of planning for the upgrading all our telerik tools (including telerik asp.net for Ajax) from our current versions which are about 3 years old to the latest versions and would like some advice on the best way of doing so.

We currently use Telerik asp.net for AJAX, Telerik winforms and Telerik reporting tools for our inhouse system and are thinking of starting the upgrade with reporting tools first followed by asp.net for Ajax and winforms.

We will be trying to do this sequentially and concurrently, also take the opportunity to upgrade visual studios from 2008 sp1 to 2012.

As we are thinking of upgrading the telerik asp.net controls after reporting tools, we would like to know whether the best way is upgrade incrementally by versions ( time consuming since our current version is v2009.2.701.35) or just download the latest telerik version.

Please advise?

Regards

Jonathan
msigman
Top achievements
Rank 2
 answered on 22 May 2013
1 answer
185 views
Hello Experts,
  My Senario : I have opened RadWindow from javascript,when i click on Close (x) button,it should refresh the parent page.
How to accomplish this.

     I have opened the RadWindow from javascript like the following:
      <script type="text/javascript">
      
      function EditList(CustomerID, ID) {
       // window.RadOpen("CustomerResults.aspx?CustomerID=" + CustomerID + "ID=" + ID);
        
       var oManager = window.radopen("CustomerResults.aspx?CustomerID=" + CustomerID + "&ID=" + ID, "RadEditWindow");
     
       oManager.setSize(900,500); //Width, Height
       oManager.center();
       //oManager.ReloadOnShow = true;
       oManager.set_reloadOnShow(true);
       oManager.set_showContentDuringLoad(true);
     // oWnd.set_title(Title);
       

        return false;
    }
  </script>

Following is the Design Page
---------------------------------------
 <script type="text/javascript">
      
      function EditList(CustomerID, ID) {
       // window.RadOpen("CustomerResults.aspx?CustomerID=" + CustomerID + "ID=" + ID);
        
       var oManager = window.radopen("CustomerResults.aspx?CustomerID=" + CustomerID + "&ID=" + ID, "RadEditWindow");
     
       oManager.setSize(900,500); //Width, Height
       oManager.center();
       //oManager.ReloadOnShow = true;
       oManager.set_reloadOnShow(true);
       oManager.set_showContentDuringLoad(true);
     // oWnd.set_title(Title);
       

        return false;
    }
  </script>


<script type="text/javascript">
    function RefreshParentPage() {
         //GetRadWindow().BrowserWindow.location.reload();
        top.location.href = top.location.href;

    }
</script>

      
 <asp:GridView ID="GvProp" runat="server" OnRowDataBound="GvProp_OnRowDataBound">
 <Columns>    
 <asp:TemplateField>
 <ItemTemplate>
 <asp:LinkButton ID="lbtMore" runat="server" Text="Edit"></asp:LinkButton>
 </ItemTemplate>
 </asp:TemplateField>
       </Columns>
 </asp:GridView>
 
      <telerik:RadWindow ID="RadEditWindow" runat="server" Height="500px" Width="900px"
            EnableShadow="true"  VisibleOnPageLoad="false" VisibleStatusbar="false"  Title="Matched Properties"
            ShowContentDuringLoad="false" Behaviors="Close,Pin" ReloadOnShow="true" OnClientClose="RefreshParentPage"
          NavigateUrl='<%# String.Format("CustomerResults.aspx?CustomerID={0}", _CustomerIDs) %>'> <%--OpenerElementID="btnRunMatch"--%>
      </telerik:RadWindow>    


Here is the Code Behind Page:
--------------------------------------------
 protected void GvProp_OnRowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {

                       
                        lbtMores.Attributes["href"] = "#";
                        lbtMores.Attributes["onclick"] = String.Format("return EditList('{0}','{1}');", _CustomerID, rowData.ID);
                        lbtMores.Visible = true;
                        RadEditWindow.OnClientClose = "RefreshParentPage";
                   
            }
        }

Thanks in Advance.

msigman
Top achievements
Rank 2
 answered on 22 May 2013
1 answer
444 views
In the Master Page of my ASP.NET 4.0 project I have this code:

<form id="form1" runat="server">
  <%-- Note: The 'AsyncPostBackTimeOut' value was added to try to increase the timeout during debugging; the value is in seconds --%>
  <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnablePageMethods="true" AsyncPostBackTimeout="300">
    <Scripts>
      <%-- Note: In order to get jQuery Intellisense working, this procedure had to be followed: http://www.telerik.com/help/aspnet-ajax/introduction-jquery-intellisense.html --%>
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
      <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
 
      <asp:ScriptReference Path="~/Javascript/tools-1.0.1.js" />
      <asp:ScriptReference Path="~/Javascript/common-1.0.1.js" />
    </Scripts>
  </asp:ScriptManager>

Is there any known issue/bug that would prevent those two external Javascript files from being loaded properly each & every time?  Specifically, I'm wondering if anything about the way I'm loading the jQuery files via the Telerik DLL would prevent my own custom Javascript files from being loaded?

I ask because within "common-1.0.1.js" I have 3 related AJAX Request Handlers that are consistently not being loaded when the user starts my app in IE9.  Only after the user presses Ctrl-F5 does the code become active.

Any ideas how to fix this?

Robert

msigman
Top achievements
Rank 2
 answered on 22 May 2013
2 answers
109 views
good afternoon
I have and issue closing a radwindow with javascript
I'm using:
<script type="text/javascript">
           function GetRadWindow() {
               var oWindow = null;
               if (window.radWindow) oWindow = window.radWindow;
               else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
               return oWindow;
           }
 
           function Close() {
               GetRadWindow().close();
           }
 
       </script>
Which I know it works because when I put the code below in a button it closes the radwindow
ClientScript.RegisterStartupScript(Me.GetType(), "", "Close();", True)

my problem is that I have a toolbar with a button running the above code, it only refreses the content which in the radwindow but it doesnt close the radwindow (the toolbar is inside a radsliding panel). Please help.
Thanks
Steven
Top achievements
Rank 1
 answered on 22 May 2013
3 answers
178 views
Hi,

I am testing the radasyncupload - but have run into a small issue.

Is it possible to have the radasyncupload upload files automatically - so it doesn't wait for a postback ?

As it is now files are files first copied from temp files to the correct location when I push a submit button.

Best regards
Claus

Claus
Top achievements
Rank 1
 answered on 22 May 2013
2 answers
106 views
Hi all ,
    I'm using a List<myclass> as the datasource of RadGrid1 ,
    I just handled  SelectedIndexChanged event , but i don't know how to get the cell values of the selected row,
    I just used RadGrid1.datasource = new List<myclass>(.....) ;

    and don't binding some fileds.  i'm new to telerik. Could you please show me some helpful codes?

    Any help will be much appreciated.

Best Regards,
        Qing

Qingyang
Top achievements
Rank 1
 answered on 22 May 2013
11 answers
395 views
Hi,

The example Multiple comboboxes in in-place edit post does not work with the 2008 Q1 version of the ASP.Net Ajax controls. Can you please suggest a way to achieve this functionality.

Thanks
Tim
Top achievements
Rank 1
 answered on 22 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?