Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
190 views
When a user clicks on the GridHyperLinkColumn in a particular row, how can only get that value back?

I want to reiterate through, but I want only the selected GridHyperLinkColumn value of "Name" below.  

That's it.

???? 


protected void grdData_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridDataItem)
           {
               GridDataItem item = (GridDataItem)e.Item;
               HyperLink link = (HyperLink)item["Name"].Controls[0];
               
           }
       }
Richard
Top achievements
Rank 1
 answered on 18 May 2012
1 answer
91 views
I have a radlistbox of checkboxes. Each checkbox corresponds to hidden panels that I want to become visable.

So for example the checkboxes are

New York        London        Washington

when someone clicks on New York I want a panel to open up. If someone unchecks that checkbox then I want the panel to disappear.

How do I know which items in the panel is checked?

Any help would be appreciated.

Thanks
Richard
Top achievements
Rank 1
 answered on 18 May 2012
21 answers
1.2K+ views
I have a radlistbox:
<telerik:RadListBox ID="rlb" runat="server" CheckBoxes="true" />

and a reguiredfieldvalidator:
<asp:RequiredFieldValidator runat="server" ID="rfv" ControlToValidate="rlb">*</asp:RequiredFieldValidator>

The Required field validation works fine when at least one item is selected (highlighted).

How can I get the RequiredFieldValidator to accept a checkbox.checked item (not highlighted) as a valid pass?
Tash
Top achievements
Rank 1
 answered on 18 May 2012
2 answers
60 views
What recommendations can be made for putting an application using the Scheduler in the cloud on, for example, Azure? I have an application now that runs locally and uses the scheduler, but to optimize performance of queries within dates I have to use the function you have provided which must be installed on the sql server hosting the database. This type of customization cannot be done in the cloud. Do you have any future products or recommended database structures to enable a more cloud friendly aside from creating a custom interface to the data? Are there any examples out there?

Thanks!
Brian
Top achievements
Rank 2
 answered on 18 May 2012
1 answer
189 views
Hello,
I am working with a RadGrid that has a nested ListView control on each row. I have datakeys identified in the MasterTableView and also in the NestedViewSettings for the NestedViewTemplate. I have two separate SqlDataSources created, one for the Grid and one for the ListView. When the page loads, the Grid is populated with the correct datarows from the source, but when I expand the view to show the ListView for each row, the data retrieved is the same for each row in the Grid.
Richard
Top achievements
Rank 1
 answered on 18 May 2012
2 answers
177 views
sorry, the title is incorrect  

OnSelectedIndexChanged fires when 

GridHyperLinkColumn is clicked! 




I have a RadGrid that uses the OnSelectedIndexChanged (which fires off some other events that changes things on the screen)

The first column in this RadGrid is a GridHyperLinkColumn which uses DataNavigateUrlFormatStringWhen a user clicks the GridHyperLinkColumn  we want the OnSelectedIndexChanged  

<telerik:RadGrid runat="server" Height="150"  ID="grdData" EnableEmbeddedSkins="false" OnSelectedIndexChanged="grdData_SelectedIndexChange" OnPreRender="grdData_PreRender"
Skin="AS_Grid_Skin_V10" AutoGenerateColumns="False" AllowPaging="False" AllowSorting="True" Width="100%" OnItemDataBound="grdData_ItemDataBound">
 
                            <ClientSettings EnablePostBackOnRowClick="true">
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
 
                            <MasterTableView DataKeyNames="ID">
                                <Columns>
                                    <telerik:GridHyperLinkColumn  HeaderText="<%$ Resources:GlobalTerms, lblName%>"                        DataTextField="Name"
                                                                  HeaderStyle-Wid
th="25%"
                                                                  DataNavigateUrlFields="Id" DataNavigateUrlFormatString="javascript:openScenarioDashboard('{0}');"
                                                                  UniqueName="Name" SortExpression="Name"/>
                       

So in the end, the user clicks the GridHyperLinkColumn link and we want to simulate the 

 protected void grdData_SelectedIndexChange(object sender, EventArgs e)
 {

//runs some code here when the Row is clicked, not the link.  We want both
}


any ideas?


Richard
Top achievements
Rank 1
 answered on 18 May 2012
5 answers
235 views

I hide the default ExpandCollapseColumn and create my own custom column using GridExpandColumn.  My customed column is called "btnExpandColumn".

I use following code to hide/show my custom column, but for some reason, it doesn't allow me to change the tooltip text.

I assume to change the tooltip text, I just need to use:
    col.ToolTip = "My custom text";

Is it correct?


protected void rgPatientList_PreRender(object sender, EventArgs e)
    {
        foreach (GridColumn col in rgPatientList.MasterTableView.RenderColumns)
        {
            if (col.UniqueName == "ExpandColumn")
            {
                col.Display = false;
            }
        }

        foreach (GridDataItem dataItem in rgPatientList.Items)
        {
            GridImageButton btn = (GridImageButton)dataItem["btnExpandColumn"].Controls[0];
            if (!dataItem.Expanded)
            {
                btn.Visible = true;
            }
            else if (dataItem.Expanded)
            {
                btn.Visible=false;
            }
        }    

    }

Richard
Top achievements
Rank 1
 answered on 18 May 2012
1 answer
66 views
Hi 
   I have an Rad Grid where the Columns are defined ASPX and while binding the Data from DataSource i want to re-arrange the Columns in different sequence than it is defined in ASPX page 


Thanks in advance 
Chethan Rajashekaraiah
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 May 2012
0 answers
124 views
Here's my scenario.  My Visual Studio 2010 Web Application has just been upgraded from an older version of Telerik to the newest version (Q1 2012 SP1) to support IE9.  I am noticing quite a few UI issues and some things that stopped working.  The most prominent is the resizing of controls on the screen.  We used to use the AjaxManager's "OnResponseEnd" to fire a "resize" client-side function and all was right with the world.  That apparently has stopped working and I was wondering if the newest version of the ASP .NET controls need some extra work.

I have a MasterPage within my "MainPage.aspx" file which holds my main menu.  Under the main menu I have a UserControl (which is really just an iFrame).  Depending on which menu item is selected I load a specific ASPX page into my iFrame user control.  Now my "MainPage" has a RadAajaxManager on it and the ClientEvents get called correctly (OnResponseEnd is what I'm using) with no issues. 

My UserControl (simple ASCX file) does NOT have a RadAjaxManager ... but the ASPX page it loads DOES have one.  For example:
userControl.FrameSource = SubPage.aspx;

SubPage.aspx DOES have a RadAjaxManager ... but I cannot get the OnRequestStart or OnResponseEnd to fire.  Like I mentioned before...this was all working in the old version of Telerik on IE7 and 8 (comp mode).  Is it my code, new Telerik, IE9?  Any help would be greatly apprecited.

Thanks all,
Kevin
Kevin
Top achievements
Rank 1
 asked on 18 May 2012
2 answers
137 views
I have two RadListBoxes on my page which I populate via a database call server-side.

Selecting an item from listbox1 will select (highlight) certain items in listbox2.  After this is done, I want the first highlighted item in listbox2 to display at the top of the visible area of that listbox, i.e. I want that item to scroll to the top of listbox2.

I'm familiar with the client-side methods "item.ensureVisible()" and "item.scrollIntoView"....but what I need is a server-side version of "ensureVisible()".  Is there a way to do this?  Thanks in advance.
David
Top achievements
Rank 1
 answered on 18 May 2012
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?