Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
How can I remove case sensitive in Radgrid AllowFiltering?
Shinu
Top achievements
Rank 2
 answered on 31 Oct 2011
1 answer
71 views
I want to make GridNumericColumn ReaOnly in edit mode.How can I do this?
Shinu
Top achievements
Rank 2
 answered on 31 Oct 2011
1 answer
56 views
Focussed style back color not working

<telerik:radtextbox id="txt" runat="server" Focussed-Style-BackColor="Red" ReadOnly="true">
</telerik:radtextbox>
Shinu
Top achievements
Rank 2
 answered on 31 Oct 2011
5 answers
143 views
Hi,
I was looking at the RADSplitter demo and the code for it. In the demo, the splitter slides out on mouse enter and collapses after the mouse leaves the area. I would like to know which part is responsible for this auto exapnd/collapse. 

thanks,
awni
awni
Top achievements
Rank 1
 answered on 30 Oct 2011
1 answer
72 views

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
error @ line 4 I have marked it..

M using webusercontrol to insert Value

 

protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
        {
            GridEditableItem editeditem = (GridEditableItem)e.Item;
            UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
 
            string ID1 = editeditem.OwnerTableView.DataKeyValues[editeditem.ItemIndex]["ID"].ToString();
 
            //HiddenField hddn = (HiddenField)userControl.FindControl("HiddenField1");
 
            TextBox city1 = (TextBox)userControl.FindControl("TextBox1");
            DropDownList ddpl1 = (DropDownList)userControl.FindControl("DropDownList1");
 
            string updatequery = String.Format("UPDATE MST_City set City='{0}', StateID='{1}' where ID='{2}'", city1.Text, ddpl1.SelectedValue, ID1);
            con.Open();
            using (SqlCommand sql = new SqlCommand() { CommandText = updatequery, Connection = con })
            {
                sql.ExecuteNonQuery();
            }
            con.Close();
 
        }
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Oct 2011
8 answers
202 views
HI,

We are using the RadTreeView in our web applicastion.
When our customers use our web application under proxy server (wich change our web application path to be a sub domain of the proxy - i.e. http://WebApp.com -> http://proxy.com/WebApp/) web resources and script resources fail to download to client.
The RadTreeView is calling web resources and script resource in root reltaive manner (i.e. src="/WebResource.axd?querystring_Information").
Because of the proxy the root is interperted by the client to be the proxy and not the web application.
Therefore, the web resources or scripts are not downloaded to client and the application breaks.

We tried to handle this using an HttpModule which adds a Filter to the Response and fix all places with root relative paths using regex.
This works good and we get the resources downloaded to client correctly.
But now we encounter a problem that the tree doesn't respond to expand click.
When debugging the click scenario we see that an Ajax request is sent to server and get back to client with an error message like this:
"Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled."

Is there a way we can use the Ajax Rad controls under proxy without the need for HttpModule rewrite procedure?
Can we tell the Rad Controls to resolve to client url so all web resources will be downloaded from the web app root and not the proxy root?
Asset Management
Top achievements
Rank 1
 answered on 30 Oct 2011
3 answers
89 views
I've looked through documentation and release notes but can't seem to find an answer.
Are the latest Telerik ASP.NET Ajax controls compatible with Service Pack 1 for Visual Studio 2010?  I'm actually looking for an "official telerik answer" on this one whether it's supported or not.
Stuart Hemming
Top achievements
Rank 2
 answered on 30 Oct 2011
2 answers
111 views
Our marketing department would like the following behavior to occur with the radMenu. The attached jpg will show the menu item with the list of subitems. I will use the actual menu names on the jpg to explain the wanted behavior. They would like the level (0) "Claim Management" to stay highlighted once a subitem "Remittance" is selected and the respective page is loaded. Each time a submenu item is selected and the paged is loaded, our menu bar is rebuilt because it is contained in an ascx control that is on each page. It should behave like the behavior of the tabstrip. You can capture the selected index, store it and then set the "selected" value once a new page is loaded and that tab is highlighted. Is this possible?
dhuss
Top achievements
Rank 1
 answered on 29 Oct 2011
3 answers
230 views
Hi

I am trying to set a menu items url to an action in a controller (outside the current controller). I am using the ASPX View Engine:

<telerik:RadContextMenu ID="ResourcesMenu" runat="server">
 <Items>
  <telerik:RadMenuItem Text="User" NavigateUrl='<%: Url.Action("Create", "Users") %>' />
...

However this renders:
<a href="&lt;%:%20Url.Action(&quot;Create&quot;,%20&quot;Users&quot;)%20%>" class="rmLink">

If I use a standard link: 

<a href="<%: Url.Action("Create", "Users") %>">New User</a>


This works fine.
What do I need to do for this?

Thanks
Russell Mason
Paul Ridden
Top achievements
Rank 1
Veteran
 answered on 29 Oct 2011
3 answers
109 views
I am creating the column structure programmatically as followers:


Dim dt as New DataTable
Dim clm_AddUser As New GridButtonColumn
Dim clm_DenyUser As New GridButtonColumn

dt.Columns.Add("clm_AddUser")
            dt.Columns.Add("clm_DenyUser")

clm_AddUser.DataTextField = "clm_AddUser"
            clm_DenyUser.DataTextField = "clm_DenyUser"

clm_AddUser.ButtonType = GridButtonColumnType.ImageButton
            clm_DenyUser.ButtonType = GridButtonColumnType.ImageButton

            clm_AddUser.ImageUrl = "~/images/AddUser.gif"
            clm_AddUser.CommandName = "AddUser"
            clm_AddUser.CommandArgument = "AddUser"


            clm_DenyUser.ImageUrl = "~/images/DenyUser.gif"
            clm_DenyUser.CommandName = "DenyUser"
            clm_DenyUser.CommandArgument = "DenyUser"

dt.Rows.Add("AddColumn", "DenyColumn")


now, in my ItemCommand section, I have:

    Private Sub grd_PendingLinks_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles grd_PendingLinks.ItemCommand
        If e.CommandName = "AddUser" Then lbl_pendinglinkreqs.Text = "ADD USER!"
        If e.CommandName = "DenyUser" Then lbl_pendinglinkreqs.Text = "DENY USER!"
    End Sub

this WILL get triggered if I turn off the ButtonType to Image, and leave it as default.

However, as soon as ButtonType is set to Image, the ItemCommand does NOT get triggered.

I have read of ways that I can do 'OnClick', but that requires setting a template in the .aspx file itself, and I am unsure of how to do that. So I am doing it programmatically.

Is this by design? Am I doing something wrong? Any info would be great.
TIM
Top achievements
Rank 1
 answered on 29 Oct 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?