Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
143 views
All,

I'm having an issue with my RadGrid header row.  The headers for the rows appear correctly sized, however for any screen real estate to the right of my furthest right header, I get funky results.  I attached a screenshot.

I think the fix will probably be something to the grid.css file, but I just can't seem to figure it out.  Is there something I'm missing on this?

Thank you!
Dimo
Telerik team
 answered on 21 Oct 2010
5 answers
116 views
hello guys

                i would like to ask question about grid item selections. here's the set up of the grid, i have a grid that contains clientselectcolumn which is a checkbox and i have also a button per row  which i called it view profile, once i click the button view profile the checkbox is automatically check..is there a way that checkbox will not be check while clicking the button view profile on a row on the grid? 

sample codes is highly appreciated.


many thanks
Princy
Top achievements
Rank 2
 answered on 21 Oct 2010
1 answer
114 views
I'm using the Upload control and it works as advertised, however, once the file is uploaded my form reloads.

Once when the form loads I check the database to see if I have a file.  If I do then I hide the upload control (panel) and display another panel that has a link to the uploaded file.  Included in this other panel is the option to delete the uploaded file.  The delete feature doesn't do anything with the actual file, it just blanks the database field then tells th form to show the upload control panel. 

After this happens the upload control is once again visible, however, doens't look or work correctly.  If I mouse over the text box, another textbox appears along with another button titled "browse". 

The only way I'm able to get the upload control to appear normal again is to click the Upload button again (which does nothing because there is no file selected).  I'm assuming this post back is fixing the look of the upload control. 

I've attached a screen shot of the upload control "after" is shown again on the form. 

Does anyone know how to correct this? 

FYI:  I have a .NET application with Master/Contenet pages and all of this is within an AJAX UpdatePanel. 
Genady Sergeev
Telerik team
 answered on 21 Oct 2010
1 answer
836 views
I have a RadGrid setup with a GridClientSelectColumn and AllowMultiRowSelection = false. When the page is posted back and I hit the browser back button, the previously selected checkbox is still checked. When I check another row, the first one stays checked causing two checkboxes to be checked. On top of that, it's a real pain to uncheck the first checkbox for an end-user.

Telerik has confirmed that this is not a bug with RadGrid but a browser issue, and it will be difficult to deal with since the page is not reloaded when using the browser back button.

Can anyone think of a way to clear the RadGrid checkboxes after hitting the back button?

Example:
- Go to: http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx
- Uncheck: (you may have to do a post back to persist this setting)
- Check a row in the 2nd grid (Grid with ClientSideSelectColumn)
- Click the PostBack button
- Hit your browser's back button
- Check another row
- You will see that the previous row stays checked along with the new one
- Now, try to get the original row unchecked
Vasil
Telerik team
 answered on 21 Oct 2010
2 answers
178 views
Hi, I have a gridview that needs to be bound to 1 main query and 2 other queries to fill in the rest of the columns.  Here are the problems I am having: (note: the queries are binded to the grid prgrammatically using datasets and the language I am using is C#).
  1. when I pass the FilterContainerID,
    • When I click on Apply button, i am able to generate the right query but the gridview doesn't get affected.
      • When I use the Apply filter button on the gridview, it works.  This is the closest I got to getting the filters to work.
    • Only the columns from the main query are shown in the filter and the columns data type are incorrect.
  2. when I manually add the filter columns,
    • Even though it generates the right query, not only does the radgrid not get affected, i get different errors.
      • for both the Apply Button and the Apply filter button on the gridview.

I tried looking for some examples or explanations, but was unsuccessful.  Can you please post an example or links to help me out with the following scenario.

Thank you for your help,

Pat
adam
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
175 views
hi,
i am looking for a solution like as following,
filter sample (from another 3. party solution)

is it possible to set a client side filter on telerik treeview ?

thanks..
Yana
Telerik team
 answered on 21 Oct 2010
3 answers
293 views
How can I detect (server side) which transfer button was clicked during a RadListBox "Transferring" event?

I have a RadTreeView in the ItemTemplate of a RadListBox and another RadListBox on the destination side.  I have DragAndDrop and Transfer working both ways except TransferAll from the RadTreeView side does not work.  To Transfer from that side I had to loop through the SelectedNodes from the RadTreeView and I intend to simply set all the Nodes to Selected but how can I detect that the "TransferAll" button was clicked?

Thanks,
Dan

Yana
Telerik team
 answered on 21 Oct 2010
2 answers
101 views
I have a simple page that when I add a OnRowSelected client site event handler, it breaks the $find command for finding the RadGrid  

If I remove the ClientSettings section and just use a button to execute the same javascript it works fine.  I don't understand why adding the client settings is breaking $find.  When the client settings are there $find always returns null. 

Master Page File
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="radWindowExample.SiteMaster" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <div class="page">
        <div class="header">
            <div class="title">
                <h1>
                    My ASP.NET Application
                </h1>
            </div>
            <div class="loginDisplay">
                <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                    <AnonymousTemplate>
                        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
                        [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
                    </LoggedInTemplate>
                </asp:LoginView>
            </div>
            <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                    <Items>
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                    </Items>
                </asp:Menu>
            </div>
        </div>
        <div class="main">
            <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="footer">
         
    </div>
    </form>
</body>
</html>

Webform Markup
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="radWindowExample.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <script language="javascript">
        var messageId;
        var grid;
 
 
 
        function PreventRowSelection(index) {
            if ((this.Rows[index].ItemType == "Item" || this.Rows[index].ItemType == "AlternatingItem")) {
                return false;
            }
        }
 

        //------dgMessages.ClientID is returning NULL ----THIS IS THE ERROR-----------//
        function CheckSelections() {
            //added the line below
            alert($find("<%= RadGrid1.ClientID %>").get_masterTableView().get_dataItems().length);
             
            //var MasterTable = grid_1.get_masterTableView();
            //var srows = MasterTable.get_selectedItems();
 
            messageId = "";
 
            if (srows.length == 1) {
                messageId = srows[0].KeyValues["ID"];
                DisableButtons(false, false);
            }
            else if (srows.length > 1) {
                DisableButtons(true, false);
            }
            else {
                DisableButtons(true, true);
            }
        }
        </script>
 
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
    CellPadding="0"  EnableAJAX="True"
    EnableAJAXLoadingTemplate="True" GridLines="None" PageSize="25"
        AllowMultiRowSelection="True">
    <CommandItemStyle />
    <ExportSettings>
        <Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in"
        PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" />
    </ExportSettings>
 
    <PagerStyle BackColor="#6699CC" HorizontalAlign="Justify" />
    <ClientSettings >
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" />
        <Scrolling AllowScroll="False" />
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>
        <ClientEvents OnRowSelected="CheckSelections()" />
    </ClientSettings>
     
    <HeaderStyle BorderColor="#6699CC" BorderStyle="Solid" BorderWidth="0px" HorizontalAlign="Left" />
 
     <PagerStyle NextPageText="Next &gt;" PrevPageText="&lt; Prev" />
    <FilterMenu></FilterMenu>
</telerik:RadGrid>
<input type="button" onclick="CheckSelections(); return false;" value="Hello" />
</asp:Content>

Code Behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace radWindowExample
{
    public partial class WebForm4 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dtRagGrid = new DataTable();
             dtRagGrid.Columns.Add("name");
            dtRagGrid.Columns.Add("id");
             dtRagGrid.Rows.Add("john", "1");
            dtRagGrid.Rows.Add("Mark", "2");
             RadGrid1.DataSource = dtRagGrid;
         }
    }
}
Marcus Kellermann
Top achievements
Rank 1
 answered on 21 Oct 2010
5 answers
188 views
i am stuck i need to export a selected row using item template of RadGrid
please help me to export a row from the grid on clicking the button
Daniel
Telerik team
 answered on 21 Oct 2010
1 answer
141 views
Hi all,

how do i find the immdiate children of a parent node???, is this supported by telerik?

Thanks
-Nen
Shinu
Top achievements
Rank 2
 answered on 21 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?