Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
290 views
Hello
I'm facing an intersting issue

I want to select an item in a paged listview when the page is displayed.
The selected item key is stored in session

How can I achieve that?

Thanks and regards
Philippe


Jason Horspool
Top achievements
Rank 1
 answered on 10 May 2012
2 answers
124 views
Ever since we have installed newest Telerik release 2012 (Q1 sp1), I've started to notice one issue with page navigation for RadGrid.
I have provided three images to illustrate my point. Screen shot one and two everything is working properly  page navigation works fine, but when I am trying to click button 3 (screen shot 3)  grid does not navigate to third page and remains on a second page with buttons 1 and 2  selected. If I click once more on button 3, grid displays page 3 and the pattern repeats for all the other pages.

This particular grid is a bit unique it is totally dynamic and is build in code using column templates to handle variable number of columns and also to allow count and sum in a single column.

All other grids work as expected in latest release. Previous release 2011 Q3 Sp1 paging was working fine for all our grids.

Thanks
Pavlina
Telerik team
 answered on 10 May 2012
5 answers
132 views
Hi,

When we try the newer dll's (version 2012.1.215.40) we are facing problems, the grid's are getting messed up as shown in screenshot.
The older version 2010.2.826.35 works fine.

What is the fix for this?

Attached is the screenshot.
Pavlina
Telerik team
 answered on 10 May 2012
0 answers
106 views
Hello,
           var strClientID = getClientID(obj.id, "chkSelectAll") + "RgGridCt";
            var stClientRi = getClientID(obj.id, "chkSelectAll") + "RgGridR";
            var strClientRe = getClientID(obj.id, "chkSelectAll") + "rgGridRe";
       
    tableView = $find(strClientID).get_masterTableView();

In the above code, if the grid is not rgGridCt, tableview is throwing error.

In my page, I am having 3 different grids. If I select one of them, how can I pass the correct value so that tableview will not throw error.

TIA
Atchut
Top achievements
Rank 1
 asked on 10 May 2012
3 answers
146 views
I've been tasked with applying a loading panel over a RadGrid that is nested in an UpdatePanel. I placed a RadAjaxManager and a RadAjaxLoadingPanel inside the update definition. The loading panel works, but for some reason, the paging on the RadGrid breaks, and it alternates between doing a full page refresh and a proper AJAX request. I've tried to replace the UpdatePanel with a RadAjaxPanel, but that didn't fix the problem, and in fact started mangling the RadGrid display.
Here's the code that's causing the problem. Any info would be appreciated. Thanks!

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
       <ContentTemplate>
            <radG:RadAjaxManager ID="RadAjaxManager1" runat="server">
               <AjaxSettings>
                   <radG:AjaxSetting AjaxControlID="btnSearch">
                       <UpdatedControls>
                           <radG:AjaxUpdatedControl ControlID="UpdatePanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                       </UpdatedControls>
                   </radG:AjaxSetting>
               </AjaxSettings>
          </radG:RadAjaxManager>
          <radG:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007" >
          </radG:RadAjaxLoadingPanel>
           
             <radG:RadGrid ID="grdCampaignStatus" runat="server" PageSize="50" Width="100%" Height="565px" Skin="Office2007"
               EnableEmbeddedSkins="true" GridLines="None" AllowPaging="true" AutoGenerateColumns="False"
               AllowSorting="true" ShowGroupPanel="False" StatusBarSettings-ReadyText="Ready"
               StatusBarSettings-LoadingText="Please Wait..." ShowStatusBar="True">
               <ClientSettings AllowDragToGroup="True">
                   <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True">
                   </Resizing>
                   <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
               </ClientSettings>
               <MasterTableView AllowNaturalSort="false" TableLayout="Fixed">
                   <Columns>
                       <radG:GridBoundColumn SortExpression="Campaign Id" AllowSorting="True" HeaderText="Campaign Id"
                           DataField="[Campaign Id]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Campaign Name" AllowSorting="true" SortExpression="Campaign Name" DataField="[Campaign Name]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Status" AllowSorting="true" SortExpression="Status" DataField="[Status]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Placed Date" AllowSorting="true" SortExpression="Placed Date" DataField="[Placed Date]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Requested launch Date/Time" AllowSorting="true" SortExpression="Requested Launch" DataField="[Requested Launch]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Date/Time sent" AllowSorting="true" SortExpression="Time Sent" DataField="[Time Sent]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="First Name" AllowSorting="true" SortExpression="First Name" DataField="[First Name]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Last Name" AllowSorting="true" SortExpression="Last Name" DataField="[Last Name]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Reply To" AllowSorting="true" SortExpression="Reply To" DataField="[Reply To]">
                       </radG:GridBoundColumn>
                       <radG:GridBoundColumn HeaderText="Recipient Count" AllowSorting="true" HeaderStyle-Width="50" SortExpression="Recipient Count" DataField="[Recipient Count]">
                       </radG:GridBoundColumn>
                       
                       <radG:GridTemplateColumn HeaderText="Run" UniqueName="TemplateColumn" HeaderStyle-Width="30">
                           <ItemTemplate>
                               <asp:Button ID="LinkButtonRedistribute"    CommandName="ExecuteService" OnClientClick = "return confirm('Do you want to run the campaign service?');"  
                                   CommandArgument='<%# DataBinder.Eval(Container.DataItem,"[Campaign Id]") %>' runat="server"
                                   Text="Run"></asp:Button>
                           </ItemTemplate>
                       </radG:GridTemplateColumn>
                        
                       <radG:GridTemplateColumn HeaderText="Complete" UniqueName="CompleteColumn" >
                           <ItemTemplate>
                               <asp:Button ID="LinkButtonCompleteCampaign" Width="60"   CommandName="CompleteCampaign" OnClientClick = "return confirm('This will only update the status of the campaign to Completed. This will not send any notification or send any emails. Do you want to complete the campaign? ');"  
                                   CommandArgument='<%# DataBinder.Eval(Container.DataItem,"[Campaign Id]") %>' runat="server"
                                   Text="Complete"></asp:Button>
                           </ItemTemplate>
                       </radG:GridTemplateColumn>
                        
                        
                   </Columns>
               </MasterTableView>
               <PagerStyle Mode="NumericPages" />
           </radG:RadGrid>
       </ContentTemplate>
       <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
           <asp:AsyncPostBackTrigger ControlID="uxCampaignStatus" EventName="SelectedIndexChanged" />           
       </Triggers>
   </asp:UpdatePanel>

Mike
Top achievements
Rank 1
 answered on 10 May 2012
1 answer
72 views
Hi,

I have a requirement where I need to expand/shrink the cell of RadScheduler that contains more events without showing 'Show More Link', so as to fit all the events in the cell and still be made visible.

Can someone please help me with JQuery to accomplish this requirement.
Thanks a lot in advance.
Peter
Telerik team
 answered on 10 May 2012
5 answers
201 views
I am designing a site that will use telerikajax  windows to load it's controls from an xmlDocument. On the telerik window I will have several asp:Label, asp:textbox, asp:Listbox, and radgrid controls. Now, my data will consist of the content of nodes from an xmlDocument. How do I populate the telerik window's controls (bind the data) from the xml tree contained in the xmlDocument?

Thanks,

Steve Holdorf
Marin Bratanov
Telerik team
 answered on 10 May 2012
3 answers
80 views
Hi,
I have a problem, when i close a Modal using  RadWindowManager the page that contains the definition of RadWindowManager   back to the beginning of the page (lost the anchor) .

how can I solve this??

thank you,

Marin Bratanov
Telerik team
 answered on 10 May 2012
3 answers
111 views
I am updating a radgrid on my screen when I close a radwindow.  It works fine but I get extra text above and ble the grid.

 4186|updatePanel|ctl00_ContentPlaceHolder1_ctl00_ContentPlaceHolder1_Wizard1_rgImportPanel|

then the grid then

|

Any idea why?
Marin Bratanov
Telerik team
 answered on 10 May 2012
2 answers
366 views
Hi,

Here is what I am trying to do. I have a grid and I want to add a column that would look like a hyperlink (linkbutton). When I click on it, I want to launch a javascript and get the data of a cell from the same row.

Here is what I have so far:

<telerik:GridButtonColumn Text="Détail" UniqueName="D" ItemStyle-HorizontalAlign="Center"
                            ButtonType="LinkButton" CommandName="CustomDetail"  />

I added the client event to fire the onCommand javascript and intercept my custom command and it works. So far so good. My problem is that I can't get the cells value from the same row because I do not know which row has been clicked. I know how to do this if the row had been selected, but it is not the case in this example.

Thanks
Daniel
Top achievements
Rank 1
 answered on 10 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?