Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Is it possible to call the SelectedIndexChange of a RadGrid without actually clicking the row?

I can use Javascript within a HyperLink of that row to pass the "current selected row" if that helps.

It's a unique request, so having issues finding a good clean way of doing it.




Richard
Top achievements
Rank 1
 answered on 18 May 2012
2 answers
146 views

I am using asp:UpdateProgress control to show progress during a button click. I am using telerik controls to ajaxify the submit button. The code sample is below:

<telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server"> 
<div class="customButton">
<asp:LinkButton ID="lbtnSave"
OnClientClick="return Page_ClientValidate();"
runat="server" OnClick="lbtnSave_Click"
CausesValidation="true">
<img src="../admin/images/icons/16x16/save.png" />
Save
</asp:LinkButton>
<div class="customButton">
</telerik:RadAjaxPanel>

My issue:

When I surround the button with the telerik:RadAjaxPanel, I have to click on the button twice. If I remove the panel, the button submits in one click. Is this happening because of the OnClientClick or one of the other LinkButton attributes or because of the surrounding telerik:RadAjaxPanel? Please help.

EDIT 04 27 12 :: 03:08PM
I tried changing the LinkButton to Button - but still the same problem.
Removing the OnClientClick attribute did not help either.

Np
Top achievements
Rank 1
 answered on 18 May 2012
1 answer
83 views
Looking for a way to fire off the SelectedIndexChange when a GridHyperLink is clicked.  Currently when the row is selected the SelectedIndexChange fires off and works great.  We want the same behavior when that user clicks the HyperLink within
that same row (but not clicking the SelectedIndexChange area which currently works).

Is there a way to incorporate that?   Is there a hack to get it to work?

Thanks in advance.




Richard
Top achievements
Rank 1
 answered on 18 May 2012
3 answers
206 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
94 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
65 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
207 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
183 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
245 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?