Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
234 views
Hiya,
I am new to the Telerik tools.
 
Need to use LINQ with the RadGrid to present data in a parent/child view. Is this possible? I have spent quite while trying to get it to work. Single (parent) table works fine.

I have read the tutorial and searched the forums but cannot find a reference that says the LINQ is supported at this stage by RadGrid.

Brad
Tommy
Top achievements
Rank 1
 answered on 19 Nov 2012
2 answers
147 views
In the grid I'm running, the paging is mostly default.  The paging buttons are on the left hand side of the grid.  

On the far right hand side of the grid is the display of number of items in number of pages.

Is there any way to control that?  

(What I'd ideally like to do is have it left aligned, right up against the buttons.)
Boris
Top achievements
Rank 1
 answered on 19 Nov 2012
1 answer
102 views
I have a page that had one column that I had to provide a "(Un)Check All" in the header.  I used this code to select or unselect them all and it works fine:

Here is the js code:
    function SelectAllCheckedChanged() {

        var grid = window['<%= rgManufacturerDisplay.ClientID %>'];

        var inputElements = grid.MasterTableView.Control.getElementsByTagName("INPUT");

        var headerChecked = window.event.srcElement.checked;

        var index;

 

        for (index = 0; index < inputElements.length; index++) {

            //NOTE: The GetElementsByTagName("INPUT") will return ALL input controls in the grid, so we have

            //to filter to the ones that we specfically care about.           

            if (inputElements[index].id.indexOf("chkDistributor") != -1) {

                //If the id of the control is "chkDistributor" then this is the checkbox in the Select column

                //for the grid row and we need to check/uncheck it (only if it's enabled).

                if (!inputElements[index].disabled) {

                    inputElements[index].checked = headerChecked;

                }

            }

        }

    }  


However now I have to add a second column, and need it to do the same thing...that is select or unselect all the rows in THAT column.

I've tried a couple of things, but not yet had much success.  The second column ID is chkContractor.

Anyone got any ideas of how I would do this with JavaScript?

Thanks.
Rich
Top achievements
Rank 1
 answered on 19 Nov 2012
1 answer
119 views
I am running into issues when my dynamically bound grid has been sorted by Column A and on a post back, Column A is no longer present due to a user-preference change.  I would like to clear the sorting if the column no longer exists so that I don't get an error on the page.  Is there a way to do this?

Thanks!
<telerik:RadGrid ID="rg" runat="server" Skin="Office2010Silver" OnNeedDataSource="rg_NeedDataSource"
 
OnItemCommand="rgScores_ItemCommand">
 
<ExportSettings HideStructureColumns="true" />
 
<MasterTableView AllowPaging="true" AllowSorting="true" Width="100%" CommandItemDisplay="Top">
 
<CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false" />
 
</MasterTableView>
 
</telerik:RadGrid>


Daniel
Top achievements
Rank 1
 answered on 19 Nov 2012
1 answer
83 views
Hi

I'm using an ajaxyfied radgrid and want to use the command buttons the grid offers for export.
But Clicking on one of them does not export it shows the generated output on the page.
What I understood from all reading about this is, I have to disable ajax
for the export something like this:
<script type="text/javascript">
           function RequestStart(sender, args)
           {
               if (args.EventTarget == "Button1")
               {
                   args.EnableAjax = false;
               }
           }
       </script>
On all the examples I've found a button, "Button1", is used to do this. How do I reference the internal buttons of the radgrid to do the same or is there a different way of doing this?
Thanks in advance

Hans-Dieter
Daniel
Telerik team
 answered on 19 Nov 2012
1 answer
69 views
Sir,
I have Imported Dlls in my project and when i use any Rad Controller it works fine but donot display with styles i mean layout not working Correctly do we have to work or iimport css files as well???
Thanks
Pavlina
Telerik team
 answered on 19 Nov 2012
3 answers
145 views
Hello,

I have a RadGrid positioned inside the upper pane of a RadSplitter. I added a GridTemplateColumn to hold a RadButton with an Icon [green down arrow]. The grid is set to allow scrolling. All goes just well in Chrome; but the weird problem I am facing is that , in IE, and once the scrollbar shows, the buttons start to float out of the grid and the splitter! They even transcend the lower pane and page borders [as shown in the attached pic "wrong"]. But it's not the case when the data is accommodated inside the grid with no scrollbar [as shown in the attached pic "right"]. Also, sometimes when the cells are empty, the grid inside borders disappear in some areas and cells kind of merge as shown! Again, this happens only in IE.
I hope you can enlighten me; as this is urgent and IE is the default browser in the company I work for.

Thank you!
 
[Edit: oops, I don't seem to find a way to attach my demo pics. ? :)] 
Pavlina
Telerik team
 answered on 19 Nov 2012
0 answers
57 views
Hi:
I am experiencing extra line at top of form after I have ported from 3.5 sites to 4.0 sites.  The 'extra line' jumps down after rendering.  Sometimes as one moves the mouse over say a tab control then it jumps back to 3.5 normal.
The navy blue bar is supposed to be against the top of the browser page.  I have changed things from 100% to 99.9%
The following is the master page:
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
  <title></title>
  <asp:ContentPlaceHolder id="head" runat="server">
  </asp:ContentPlaceHolder>
    <link id="FavLink1" runat="server" rel="shortcut icon" href="~/Images/favicon.ico" type="image/x-icon" />
    <link id="FavLink2" runat="server" rel="icon" href="~/Images/favicon.ico" type="image/ico" />
</head>
<body>
  <form id="form1" runat="server">
  <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    <Scripts>
      <asp:ScriptReference Path="Scripts/jquery-1.8.2.min.js" />
    </Scripts>
  </telerik:RadScriptManager>
  <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" Runat="server">
  </telerik:RadStyleSheetManager>
  <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
  <div style="text-align: left; width: 99.9%;">
    <table style="width: 100%;">
      <tr>
        <td colspan="3" style="HEIGHT: 5px; BACKGROUND-COLOR: navy">
        </td>
      </tr>
      <tr>
        <td style="width:150px;">
          <asp:ImageButton ID="ImageButton1" runat="server"
            ImageUrl="~/Images/Logo.bmp" PostBackUrl="~/Default.aspx" ToolTip="Home" />
        </td>
        <td style="text-align:left;width: 60%; padding-left: 10px;">
          <h1>Help Desk</h1>
        </td>
        <td style="text-align:right; width:25%; vertical-align: bottom; font-size: x-small; padding-right: 2px;">
          Logged in as:
          <asp:Label ID="lblUser" runat="server" EnableTheming="False" Font-Size="X-Small"></asp:Label>
        </td>
      </tr>
      <tr>
        <td colspan="3">
          <telerik:RadMenu ID="RadMenu1" Runat="server" DataSourceID="SiteMapDataSource1"
            Skin="Default" Width="100%" style="z-index: 1000">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
          </telerik:RadMenu>
        </td>
      </tr>
    </table>
  </div>
  <div style="width: 99.9%;">
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
    </asp:ContentPlaceHolder>
  </div>
  </form>
</body>
</html>

Phil
PS where is the attachment of an image?
Phil
Top achievements
Rank 2
 asked on 19 Nov 2012
1 answer
148 views
Hi,

Where can I download the actual installer packages from now?
I do not want to use this control panel for installing and managing the controls and applications as it is just not convenient.
I sometimes have to use different machines depending on what I am doing, and have to install on a fairly regular basis, and the way it works now, I have to download the packages every time I want to install them, and they are all installed automatically. There does not appear to be an option to 'Download but do not install'

This is a classic case of 'Simplifying' where it actually has the opposite effect.

Thank you


Paul
Desislava
Telerik team
 answered on 19 Nov 2012
3 answers
124 views
Hi,
I have  one asp.net page which has ListBox(CheckBoxes).
I can't see the ListBox control on ipad  chrome Browser(but i can see the ipad safari Browser)
Even i am trying to access ListBox Demo page(http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/checkboxes/defaultcs.aspx)  on ipad chrome Browser, I can't see the control.

Is there any settings to have to see ListBox on ipad  chrome Browser?





Nencho
Telerik team
 answered on 19 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?