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

I have a RadGrid on my webpage which has paging enabled, I also use the GridClientSelectColumn in order to select all displayed records.  Here is an example:

<telerik:RadGrid ID="radgrdEvaluator" AutoGenerateColumns="False" AllowPaging="True" AllowMultiRowSelection="True" PageSize="10" runat="server">  
    <MasterTableView DataKeyNames="EvaluatorID" ShowHeadersWhenNoRecords="True">  
    <Columns> 
        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">  
        <HeaderStyle Width="30px" HorizontalAlign="Center" /> 
        <ItemStyle Width="30px" HorizontalAlign="Center" /> 
        </telerik:GridClientSelectColumn> 
        <telerik:GridBoundColumn DataField="EvaluatorID" HeaderText="EvaluatorID" UniqueName="EvaluatorIDData"></telerik:GridBoundColumn> 
    </Columns> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="True">  
    <Selecting AllowRowSelect="True" /> 
    </ClientSettings> 
    <pagerstyle mode="NextPrevAndNumeric" AlwaysVisible="True" /> 
</telerik:RadGrid> 

In this example let's say I have 30 records that are returned but I have set the PageSize to 10 which would give me 3 pages of results.  When I click the "select all" checkbox it only selects the 10 records of the displayed page.  How can I get it so that the "select all" checkbox selects all 30 records, and not just the 10 displayed records without having to increase the PageSize property? 

Thanks!
Jason
Princy
Top achievements
Rank 2
 answered on 17 Dec 2009
2 answers
92 views

Hi!

This looks like a bug - try to add a link in Rad editor and set the Target property to open in  “Same Window”, link works fine (opens in new window).

Now when if you add another link to same page and set its Target property to any of the options, the Target property of previous link is set to “#” (which opens a new window).

 

Similarly on adding links to that page, sets the Target property of all previous links to “#” (Open in new window).

Joe
Top achievements
Rank 1
 answered on 17 Dec 2009
2 answers
134 views
Hi, I wish to use different searchpatterns for view and upload, for example, for view, I want to display files with pattern "AWR10169*.JPG" but for upload, it can upload *.jpg files.
Already using CustomFileSystemProvider.
Any idea?
James Shelton Agar
Top achievements
Rank 2
 answered on 17 Dec 2009
4 answers
188 views

as for the post you'd solved the other day, local path  for fileexplorer, works pretty well, thanks
http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/use-local-path-instead.aspx

I am now trying to putup a feature for users to maintain images from my local path(not web root), as I can callout the imagemanager standalone as solved

how can i access the filebrowser within imagemanager and change file provider to support local path?

thanks
James Shelton Agar
Top achievements
Rank 2
 answered on 17 Dec 2009
1 answer
200 views
Hello,

How do I expand the left hand side of the FileExplorer to match the Width of the TreeView? TreeView.Width = 400; works but the splitter does not align with the size / width of the TreeView. Right now, I have to scroll all the way to the right to see the end of the TreeView.

Thanks
LG
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
198 views
Dear All,

I want to be able to open either radwindow & radalert or radconfirm from a method on a user-control (codebehind).
I went through all the posted threads but just can't get it to work unless I put the following code:
ScriptManager.RegisterStartupScript(Page, typeof(Page), "RadAlertScript", "Sys.Application.add_load(function(){radalert('XML Values Loaded Succesfully!!');});", true); 
I just don't wanted that way, I need to have a method that takes the title & message so I try the following :
protected void ShowAlert(string msg)  
{  
string myScript = string.Format("Sys.Application.add_load(function(){radalert('A string', 200,300,'{0}');})",msg);  
Page.ClientScript.RegisterStartupScript(this.GetType(), "SCR", myScript, true);  
}    
 
which I took it from a previous post, but it has a syntax error. and didn't work for me.

and what is the scenario for radwindow.

best regards
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
467 views
Hi,

I want to convert Asp.Net 3.5 Gridview RowCreated() event into RadGrid ItemCreated() event. I have tried but continously getting error.

Here is the RadGrid-

<telerik:RadGrid ID="gv" Width="748px" DataKeyNames="Id" DataSourceID="gvSqlDataSource"  PageSize="5" AllowMultiRowSelection="True" AutoGenerateColumns="False" runat="server" Gridlines="None" Skin="Default" EnableEmbeddedSkins="false" OnItemCommand="gv_ItemCommand" AllowPaging="True" AllowAutomaticDeletes="true" OnItemCreated="gv_ItemCreated">
                <ClientSettings EnableRowHoverStyle="true" />
                <PagerStyle Mode="NumericPages" PageButtonCount="5" EnableSEOPaging="True" />          
                 <MasterTableView AllowAutomaticDeletes="true" DataKeyNames="Id">
                     <Columns>
                       <telerik:GridTemplateColumn HeaderText="Scores">                      
                         
                          <ItemTemplate>
                                 <asp:Button id="btnScore" runat="server" CssClass="scoreButton" Text='<%# Eval("Score") + "\n Score!" %>' CausesValidation="False" CommandArgument='<%# Eval("Id") %>'></asp:Button>
                          </ItemTemplate>
                       </telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn>
                            <ItemTemplate>                                
                                <asp:ImageButton runat="server" ID="btnDelete" ImageUrl="~/images/delete.gif" CommandName="Delete"/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>                    
                        
                     </Columns>
                      <NoRecordsTemplate><br /><b>You have not entered any data yet!</b></NoRecordsTemplate>
                  </MasterTableView>
                     
           </telerik:RadGrid>
 <asp:SqlDataSource runat="server" ID="gvSqlDataSource" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"

             SelectCommand="SELECT [Id], [score] FROM [tblScores] "
             DeleteCommand="DELETE FROM [tblScores] WHERE [Id] = @Id" >
             <DeleteParameters>
                <asp:Parameter Name="Id" Type="Int32" />        
            </DeleteParameters>
             </asp:SqlDataSource>

Here is the as.net 3.5 gridview's RowCreated() event-

protected void gv_RowCreated(object sender, GridViewRowEventArgs e)
      {
         if (e.Row.RowType == DataControlRowType.DataRow)
         {
            ImageButton btn = e.Row.Cells[1].Controls[0] as ImageButton;
            btn.OnClientClick = "if (confirm('Are you sure you want to delete this score?') == false) return false;";
         }
      }

I have converted this into the following ItemCreated() event to use it for RadGrid

protected void gv_ItemCreated(object sender, GridItemEventArgs e)
            {
                if (e.Item is GridDataItem)

                {
                    GridItemType item = (GridItemType)e.Item;
                    ImageButton btn = (ImageButton)e.Item.FindControl("btnDelete");
                    btn.OnClientClick = "if (confirm('Are you sure you want to delete this score?') == false) return false;";
                }
            }

But i'm getting error, anybody knows what i'm missing or doing wrong in the code.
Any help will be really appreciated.

Regards,
dazy


Daniel
Telerik team
 answered on 16 Dec 2009
3 answers
179 views
Is it possible to put a loading panel on an entire RadDockLayout?  Right now I am resorting to putting a loading panel on each RadDockZone.  But it would look a lot nicer if I could put one on the Layout instead.  Is there a way?
Ryan
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
109 views
Hello

i have a Radgrid inside a Radpanelbar
i want to know how to rebind the radgrid in the client Code?



thanks
Schlurk
Top achievements
Rank 2
 answered on 16 Dec 2009
2 answers
103 views
Hi Telerik,
How should i export a filtered grid without the filter row. If i turn AllowFilteringByColumn off and Rebind it, the grid will show all records.
Thank you
Bogice
Top achievements
Rank 1
 answered on 16 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?