Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
378 views
I'm switching a web page over from using the GridView control to using the RadGrid control.  One thing I'm stuck on is how to right-indent text in an item.

As you'll see in the first screenshot, the illustrated column is correctly indented.  I did this very simply with this CSS Class:

.indentRight {padding-right:20px}

However, that no longer seems to have any effect in the RadGrid.  I tried changing several things but to no avail.  Here's the markup code in question:

              <telerik:GridBoundColumn DataField="TaskStdHours" HeaderText="Std Hours" ReadOnly="true" SortExpression="TaskStdHours" DataFormatString="{0:F2}"><br>                <HeaderStyle Width="70px" HorizontalAlign="Center" /><br>                <ItemStyle HorizontalAlign="Right" CssClass="indentRight" /><br>              </telerik:GridBoundColumn><br>

What do I need to do to make it look the same as in the GridView?

Robert W.

Kostadin
Telerik team
 answered on 15 Mar 2013
1 answer
204 views
Hi,
Can we use RadFormDecorator to decorate HTML table. Or is there any alternative to apply css to table similar like RadGrid?
Bozhidar
Telerik team
 answered on 15 Mar 2013
2 answers
108 views
I have a field in my grid for an email address.  I would like to add a regular expression validator to ensure the format.  Currently I have a required field validator which works but is not sufficient.  I've searched but haven't found a working example.

I also have a date field and would like to set a valid range validator to it but I need to set the min/max values from my code behind file.  I have managed to set the min/max date of the editor using the ItemDataBound event as a work around but would like to know if this is possible.

Thanks.
J
Top achievements
Rank 1
 answered on 15 Mar 2013
8 answers
214 views
Hello,

I'am using a RadAjaxManagerProxy in a page with a RadAjaxManager in the MasterPage, but I discovered that we c'ant use The DfaultLoadingPanelID in the proxy, is there a reason or is it missing from the 1424 release ?

Regards
CS
Richard
Top achievements
Rank 1
 answered on 15 Mar 2013
7 answers
247 views
I set: ExplorerMode="Thumbnails"
The images are about 10 mb each, and it takes a long time to load the images to thumbnails visible.
Is there any way to get around the problem?
Vessy
Telerik team
 answered on 15 Mar 2013
2 answers
161 views

Hi all,

I need to do some backend tasks when the user clicks the 'Select All'-Checkbox at the top of my grid. I followed this approach and it works fine: http://www.telerik.com/community/forums/aspnet-ajax/grid/gridclientselectcolumn-select-all.aspx#1469954

 

In the backend I then select ALL documents on ALL pages. I go to page 2 and all documents are selected as expected. But then I want to deselect all, and this does not work, because the deselect-click is not recognized on first try. Then you have to select all again and then deselect, on the second try it works fine.

 

I think the problem is caused by the auto-checked 'Select all'-Checkbox if all docs on current page are selected:

  1. I'm on page 1.
  2. I click 'Select all'.
  3. Handler is fired. In the backend I mark all documents as selected.
  4. I switch to page 2. All documents are selected as expected. BUT also the 'Select all'-Button in the Header is checked.
  5. I unselect the 'Select all' Button on the header, but the handler is not fired.
  6. I select the 'Select all' button on the header, now the hanlder is fired and all docs on all pages are marked as selected.
  7. I unselect the 'Select all' Button on the header and now the handler is fired, deselecting all docs on all pages.

So the problem is in step 5. I guess this is because by default the 'Select all' is not checked, but after all docs are displayed and the grid notices that all are checked, the 'Select all' is also checked automatically, but without notifying the backend handler. So when I uncheck the 'Select all' checkbox (step 5), the handler does not fire because the checkbox is 'still unchecked' (as the backend did not know that the grid checked the 'select all' checkbox in the meantime).

Might this be the reason? And if so, is there a workaround somehow? For example by disabling the 'Select all' checkbox to be checked if all docs on the page are checked? I've read in another posting that this is the expected behaviour but maybe there is chance to remote it?

Many thanks in advance!

Kai
Top achievements
Rank 2
 answered on 15 Mar 2013
5 answers
87 views
Hello,

I have added a grid header context menu on OnPreRenderEvent .
When I leave the page idle for some time and  try to do something with the grid later, the gridheadercontext menu items count is zero. and error is thrown.

Does anyone have any idea?

Thanks,
Neerajan
Eyup
Telerik team
 answered on 15 Mar 2013
1 answer
121 views
Hi I´am getting this ErrorMessage

Unhandled exception at line 15, column 16485 in http://localhost:58311/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:de-DE:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:de-DE:d8ebf3de-0179-4fa4-89e6-a030e0cf94a1:16e4e7cd:f7645509:22a6274a:ed16cbdc:58366029:24ee1bba:f46195d3:2003d0b8:1e771326:aa288e2d

0x800a139e - RuntimeError in JavaScript: Sys.WebForms.PageRequestManagerServerErrorException: Unkown Error StatusCode 0

I´ve read about that this may come a Firewall or Proxy...but I get this Error developing on my LocalMachine!

Here is my aspx-Code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <link href="Styles/ServiceRequestStyle.css" rel="Stylesheet" type="text/css" />
    <link href="Styles/Default.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
     
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ArticleGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="ArticleGrid" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
 
                <telerik:AjaxSetting AjaxControlID="ArticleGrid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="ArticleImage" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <div id="rootContainer" >
 
            <div id="selectionContainer">
                <asp:TextBox ID="ArticleFilterTb" runat="server" AutoPostBack="true" OnTextChanged="ArticleFilterTb_TextChanged"/>
 
                <telerik:RadGrid ID="ArticleGrid" runat="server" AutoGenerateColumns="false"
                                 AllowPaging="True" Height="350px" Width="500px"
                                 OnSelectedIndexChanged="ArticleGrid_SelectedIndexChanged">
                    <PagerStyle Mode="NextPrevAndNumeric" EnableSEOPaging="True"/>
                    <MasterTableView>
                        <Columns>
                            <telerik:GridImageColumn DataType="System.String"
                                                     UniqueName="Picture"
                                                     DataImageUrlFields="PicturePath"
                                                     ImageHeight="50px"
                                                     HeaderStyle-Width="65px" />
                            <telerik:GridBoundColumn DataField="DisplayName" />
                            <telerik:GridBoundColumn DataField="PrimaryKey" />
                        </Columns>
                    </MasterTableView>
                    <ClientSettings EnablePostBackOnRowClick="true">
                        <Selecting AllowRowSelect="true" />
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </div>
 
            <div id="detailsContainer">
                <asp:Image ID="ArticleImage" runat="server" Height="150px" ImageUrl="D:\Bibliotheken\Bilder\Logo_Spiral_Tribe.png" />
            </div>
        </div>
    </form>
</body>
</html>
Maria Ilieva
Telerik team
 answered on 15 Mar 2013
1 answer
69 views
hey all,
I have some problem with RadCalendar.
I have an 'Href' on choosen dates and when i clicking on choosen date before 3 months (for example),
i get in to the link inside the Href but the problem is when i get back to the my calendar page, the calendar
is not going back to the month that i was on him (3 month ago). i get always the current month -1.

for example.
today: 03/13/2013

the date i'm clicking on it : 08/01/2012
then i get in the site and when i get back to my calendar the result should be: 08/2012 Month.
but i'm get the month: 02/2013!


Anyone having this problem??

Thanks for any help.

Nitsan.
Vasil
Telerik team
 answered on 15 Mar 2013
1 answer
79 views
Hello,

How can we display a RadMenu inside a Radpanelbar?

Thankyou,
Saira.
Princy
Top achievements
Rank 2
 answered on 15 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?