Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Hello,

I'm having a problem with ClientEvents on a RadGrid being applied to all child grids contained within the parent grid.  I have a grid configured like this:

<telerik:RadGrid ID="myGrid" runat="server"
    AllowSorting="true" AutoGenerateColumns="false"
    AllowPaging="true" PageSize="50" Height="500">
     
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn Visible="false" DataField="Id" UniqueName="Id" />
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="FirstName" />
            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName="Last Name" />
        </Columns>
        <EditFormSettings EditFormType="WebUserControl" UserControlName="~/EditForm.ascx" />
 
         
    </MasterTableView>
     
     <ClientSettings EnableRowHoverStyle="true">
        <Scrolling UseStaticHeaders="True" AllowScroll="True" />
        <ClientEvents OnRowDblClick="editRow" />
    </ClientSettings>
</telerik:RadGrid>

The editRow function is as follows:

function editRow(sender, eventArgs) {
    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
}

The grid functions beautifully and the edit form loads and submits successfully.  However, there is a secondary grid in the edit form (EditForm.ascx) which seems to be inheriting the ClientSettings from the parent grid, such that if you double click one of the rows inside the user control then editRow fires and the item being edited is changed (because get_itemIndexHierarchical returns the index of the item double clicked inside EditForm.ascx).

I've looked at the events and documentation, but do not see a way to clear the client settings on the child grids.  I can probably work around it by using a button for editing instead of the double click event, but the client specifically requested the double click.  Does anyone have an idea on how I can clear the client settings on the grid within the EditForm.ascx user control?  I really want to get rid of both the event handler and the hover style from the grids within EditForm.ascx.

Thanks in advance for any help!
Tsvetoslav
Telerik team
 answered on 13 Oct 2011
1 answer
89 views
Hello Support

I have an serious issue related to RadAjaxLoadingPanel which changes the URL in the address bar
On my page I have an RadAjaxLoadingPanel

<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" Height="200px" Width="200px" runat="server"  Transparency="30">
       <table width="100%">
           <tr>
               <td width="100%" align="center" valign="top">
                   <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                       style="border: 0px;" />
               </td>
           </tr>
       </table>
       </telerik:RadAjaxLoadingPanel>

When the code is executed, on this line the URL of my page changes to something like
http://localhost:50049/Web_App/
 
http://localhost:50049/Web_App/http://localhost:50049/Web_App/

http://localhost:50049/Web_App/(S(mq4cwf55cmht42ypwio5dhzu))/Login.aspx?ReturnUrl=%2fWeb_App%2fdefault.aspx
/Login.aspx?ReturnUrl=%2fWeb_App%2fdefault.aspx

Because of the second changed URL my none images are not loaded. It shows me cross mark(image not found error). The unkown directory name is not found my the application. (S(mq4cwf55cmht42ypwio5dhzu))
How to stop the url rewriting the zunk values from current scenario?

The zunk value is an sessionid is added in url by default how to prevent this?

Thanks
Vasil
Telerik team
 answered on 13 Oct 2011
1 answer
104 views
We use RadGrid with AllowMultiRowEdit and AllowAutomaticUpdates properties set to true.  When we edit muliple records and click Update All, not all of the edited contents are persisted to the database.  Only a subset of the edited records get updated in the database.

We use ASP:SQLDataSource to update the database.
Shinu
Top achievements
Rank 2
 answered on 13 Oct 2011
1 answer
141 views
Hi,
I have a RadGrid with different columns and has filter for each columns. I do not want to show all the filter functions. I want hide some filter function based on the datatype. How do I do this. Considering the below example http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx,

Thanks,
Raji
Princy
Top achievements
Rank 2
 answered on 13 Oct 2011
3 answers
155 views
I have a RadWindow which shows results in Radgrid. I need to pass back the selected row values from the Grid back to the Parent page. How can I do this? If it is not possible what is the best way to achieve this? I have to close the modal window and fill the parent page text fields after clicking on the grid row. Any input is appreciated.
Stuart Hemming
Top achievements
Rank 2
 answered on 12 Oct 2011
2 answers
75 views
Hi,

How do you select or check multiple items?

I am building an application where there will be a standard "view" item in the menu. Then based on which child items are selected I show/hide various columns in a RadGrid. However, I can't seem to select more that one menu item at a time.

Any suggestions?

Jeff
Jeff Paetkau
Top achievements
Rank 1
 answered on 12 Oct 2011
2 answers
59 views
Consider the following code:

<telerik:RadRibbonBar ID="Menu" runat="server" OnButtonToggle="ButtonToggle" />

private void Page_Load(object sender, System.EventArgs e)
{
    if (!IsPostBack)
    {
        String Menu_XML = new XElement("RibbonBar"
                , new XElement("Tab", new XAttribute("Text", "View")
                    , new XElement("Group", new XAttribute("Text", "Columns")
                        , new XElement("ToggleButton", new XAttribute("Text", "test"))))).ToString();
        Menu.LoadXml(Menu_XML);
    }
}
 
protected void ButtonToggle(object sender, System.EventArgs e)
{
}

Produces the following error when you toggle the button

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: indexProduces the following error when you toggle the button


However, the following code works as expected:

<telerik:RadRibbonBar ID="Menu" runat="server" OnButtonToggle="ButtonToggle">
    <telerik:RibbonBarTab Text="View">
        <telerik:RibbonBarGroup Text="Columns">
            <Items>
                <telerik:RibbonBarToggleButton Text="Test" />
            </Items>
        </telerik:RibbonBarGroup>
    </telerik:RibbonBarTab>
</telerik:RadRibbonBar>

What am I doing wrong?
Jeff Paetkau
Top achievements
Rank 1
 answered on 12 Oct 2011
4 answers
429 views
Greetings,

I have a problem with comparing the time values in a time pickers using a compare validator. When the form loads with an existing value (e.g 10:00AM & 8: AM in two time pickers) the second time picker should be validated to have a greater time value than the first one. In a new form if we add the time, the validation fires, but not consistently. The validations should be checked on a button click.

Please lend your helping hand.

Thanx in advance.

regards

brian
Top achievements
Rank 1
 answered on 12 Oct 2011
13 answers
145 views
Hello,

I'm receiving an error when selecting Black as a base skin in the Visual Style Builder for the Telerik ASP.NET AJAX. Steps to reproduce:
1) Select the ASP.NET AJAX tab on the Visual Style Builder Website
2) Enter any name into the Skin Name (I used Temp1 or MyStyle)
3) Select "Blacl" as the Base Skin
4) Select TabStrip (or any control)
5) Click "Create"

An error message pops up saying :

Failed to create skin!
A server error has occured.
We have been notified and will try to resolve it ASAP.
Sorry for the inconvenience.

I've tried creating a new skin using Black as a base under IE9, FireFox 5 and Chrome with out success. I also have Silverlight 4 installed, if that information helps. Please assist.

Thanks,
Betty
Cradz
Top achievements
Rank 1
 answered on 12 Oct 2011
0 answers
65 views
Hello,

I have an tree containing multiple nodes with icons. I set the allowDrag on the node, so I can drag the node.
What I want is to allow the user to drag the node grabbing the icon. But I want to prevent the user from dragging the Node by grabbing the text of the node. How can I do this?
Is it possible to identify if the user grabbed the icon or the text and then cancel the dragevent?

Thank you very much

Christian
Christian
Top achievements
Rank 1
 asked on 12 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?