Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
340 views
Hey there, 

I have a question as the following: 

I have a RadGrid which have a column InstallDate that is DateTime Type. 

and for example here is the data: 

11/10/2013
10/10/2013
9/10/2013
Not install

because I have a string inside that column, so how can I sort this kind of Column from this Grid. 

it is Urgent for me. 

Thanks,T
Kostadin
Telerik team
 answered on 16 Oct 2013
4 answers
166 views
Hi,

I'm using the asp Grid to bring back some very simple data using Telerik.Web.UI 2013.1.403.40

I have a problem where if I enable MasterTableView's CommandItemDisplay to anything other than None, it displays two header rows.

(I've attached a screenshot to demonstrate my issue.)


Here's my markup:

<rad:RadGrid runat="server" ID="grdGroupLeaderReport" AutoGenerateColumns="False">
    <MasterTableView CommandItemDisplay="Top">
        <CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False" ShowExportToExcelButton="True" />
        <Columns>
            <rad:RadGridBoundColumn DataField="Id" UniqueName="Id" HeaderText="Booking Id">
                <HeaderStyle Width="110px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Right"></ItemStyle>
            </rad:RadGridBoundColumn>
                <rad:RadGridBoundColumn DataField="FirstName" UniqueName="FirstName" HeaderText="First Name">
                <HeaderStyle Width="150px"></HeaderStyle>
            </rad:RadGridBoundColumn>
        </Columns>
    </MasterTableView>
</rad:RadGrid>


And here's code behind to bind it (the data source is a DataTable):

grdGroupLeaderReport.DataSource = rc.GroupLeaderReport();
grdGroupLeaderReport.DataBind();

I need to display the Export to Excel button - and each time I enable that toolbar it shows up twice. Where am I going wrong? Please help! (See attached screenshot at bottom of post for an example.)



Also - this is less important - with the BoundColumn the header text is never picked up. I have to set it programmatically in the ItemDataBound event  this is quit annoying however, I can live with this, but why does it happen, am I missing something here too?

void grdGroupLeaderReport_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridHeaderItem)
            {
                var header = (GridHeaderItem)e.Item;
                header["Id"].Text = @"Booking No.";
                header["FirstName"].Text = @"First Name";
            }
        }

Thank you in advance for taking the time to look at this.
Pavlina
Telerik team
 answered on 16 Oct 2013
1 answer
64 views
It seems that the the barcode control can not output vml.
Pavlina
Telerik team
 answered on 16 Oct 2013
2 answers
131 views
I use custom localization for RadEditor.

Example of code:
<telerik:RadEditor ID="radEditor" runat="server">
        <Tools>
            <telerik:EditorToolGroup>
                <telerik:EditorTool name="ToggleScreenMode" shortcut="F11" showtext="true" text="Togle Full Screen"/>
            </telerik:EditorToolGroup>
       </Tools>
</telerik:RadEditor>

Result in attachment.
This button is cut off partially on the right if we launch it under IE9,IE10.
Can you help with this issue?


   
Ianko
Telerik team
 answered on 16 Oct 2013
5 answers
148 views
When placing a radDock inside of another the other RadDock automatically takes on the skin of the prior dock and becomes distorted. See the code below. Need to either have a different skin or not become distorted.

<telerik:RadDockLayout EnableViewState="true" runat="server" ID="RadDockLayout1"
        StoreLayoutInViewState="true">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top" width="62%">
                    <telerik:RadDockZone EnableViewState="true" BorderStyle="None" ID="RadDockZoneTopLeft"
                        runat="server" Orientation="Vertical" MinHeight="500px">
                        <telerik:RadDock Skin="NetVigour" EnableEmbeddedSkins="false" EnableViewState="true"
                            Visible="true" ID="dockExchangeInformation" DockMode="Docked" runat="server"
                            Title="Exchange Information" Font-Bold="true" Width="100%" EnableAnimation="true"
                            Resizable="false">
                            <Commands>
                                <telerik:DockExpandCollapseCommand />
                            </Commands>
                            <ContentTemplate>
                                <p>
                                    <telerik:RadDockLayout EnableViewState="true" runat="server" ID="RadDockLayout2"
                                        StoreLayoutInViewState="true">
                                        <telerik:RadDockZone EnableViewState="true" BorderStyle="None" ID="RadDockZone1"
                                            runat="server" Orientation="Vertical" MinHeight="500px">
                                            <telerik:RadDock Skin="Sunset" EnableEmbeddedSkins="false" EnableViewState="true"
                                                Visible="true" ID="RadDock1" DockMode="Docked" runat="server" Title="Exchange Information"
                                                Font-Bold="true" Width="100%" EnableAnimation="true" Resizable="false">
                                                <Commands>
                                                    <telerik:DockExpandCollapseCommand />
                                                </Commands>
                                                <ContentTemplate>
                                                    test
                                                </ContentTemplate>
                                            </telerik:RadDock>
                                        </telerik:RadDockZone>
                                    </telerik:RadDockLayout>
                            </ContentTemplate>
                        </telerik:RadDock>
                    </telerik:RadDockZone>
                </td>
            </tr>
        </table>
    </telerik:RadDockLayout>
Bozhidar
Telerik team
 answered on 16 Oct 2013
0 answers
724 views
Hello,

When you access an ASP.NET-based webpage by using Internet Explorer 11, the webpage renders the content incorrectly and/or JavaScript errors are thrown (especially when using AJAX).

This issue occurs because Internet Explorer 11 is not recognized as an Internet Explorer browser by ASP.NET.

If you are working under .NET 4.0, a patch that Microsoft released recently should fix the IE11 browser detection problem in ASP.NET: http://support.microsoft.com/kb/2836939/en-us and we recommend installing it.


If the patch alone does not help you also need to check the App_Browsers folder of your site. If it has any contents, .NET 4.0 will still recognize IE11 as Mozilla 0 and you will still experience issues. There are two possible solutions for this:
- install .NET 4.5 on the server, because the browser detection problem is fixed there
- OR, add a custom .browser file to your App_Browsers folder with the following content:
<browsers>
  <browser id="IE11" parentID="Mozilla">
    <identification>
      <userAgent match="Trident/(?'layoutVersion'[7-9]|0*[1-9]\d+)(\.\d+)?;(.*;)?\s*rv:(?'version'(?'major'\d+)(\.(?'minor'\d+)))" />
      <userAgent nonMatch="IEMobile" />
    </identification>
    <capture>
      <userAgent match="Trident/(?'layoutVersion'\d+)" />
    </capture>
    <capabilities>
      <capability name="browser"              value="IE" />
      <capability name="layoutEngine"         value="Trident" />
      <capability name="layoutEngineVersion"  value="${layoutVersion}" />
      <capability name="extra"                value="${extra}" />
      <capability name="isColor"              value="true" />
      <capability name="letters"              value="${letters}" />
      <capability name="majorversion"         value="${major}" />
      <capability name="minorversion"         value="${minor}" />
      <capability name="screenBitDepth"       value="8" />
      <capability name="type"                 value="IE${major}" />
      <capability name="version"              value="${version}" />
    </capabilities>
  </browser>
  
  <!-- Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11,0) like Gecko -->
  <browser id="IE110" parentID="IE11">
    <identification>
      <capability name="majorversion" match="11" />
    </identification>
  
    <capabilities>
      <capability name="ecmascriptversion"    value="3.0" />
      <capability name="jscriptversion"       value="5.6" />
      <capability name="javascript"           value="true" />
      <capability name="javascriptversion"    value="1.5" />
      <capability name="msdomversion"         value="${majorversion}.${minorversion}" />
      <capability name="w3cdomversion"        value="1.0" />
      <capability name="ExchangeOmaSupported" value="true" />
      <capability name="activexcontrols"      value="true" />
      <capability name="backgroundsounds"     value="true" />
      <capability name="cookies"              value="true" />
      <capability name="frames"               value="true" />
      <capability name="javaapplets"          value="true" />
      <capability name="supportsCallback"     value="true" />
      <capability name="supportsFileUpload"   value="true" />
      <capability name="supportsMultilineTextBoxDisplay" value="true" />
      <capability name="supportsMaintainScrollPositionOnPostback" value="true" />
      <capability name="supportsVCard"        value="true" />
      <capability name="supportsXmlHttp"      value="true" />
      <capability name="tables"               value="true" />
      <capability name="supportsAccessKeyAttribute"    value="true" />
      <capability name="tagwriter"            value="System.Web.UI.HtmlTextWriter" />
      <capability name="vbscript"             value="true" />
    </capabilities>
  </browser>
</browsers>


Telerik Admin
Top achievements
Rank 1
Iron
 asked on 16 Oct 2013
1 answer
238 views

The telerik grid I have uses sorting on every field. I wanted to sort by the date in descending order, but now it is making the data show up wrong because it is sorting by the month and day, not the month, day, and year.

Ex: 
12/31/2000
12/31/1998
12/31/1997
12/30/2012
12/30/2011

I would like the data to show up with the most recent month, day, and year...like this:

12/30/2012
12/30/2011
12/31/2000
12/31/1998
12/31/1997

<telerik:GridDateTimeColumn AllowFiltering="true" SortExpression="Service_Date" DataField="Service_Date" HeaderText="Service Date" UniqueName="Service_Date"  DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true" >
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Oct 2013
1 answer
99 views
Is there anyway to keep the template for adding new records open all the time and prevent it from closing after the insert/save link is clicked .
Princy
Top achievements
Rank 2
 answered on 16 Oct 2013
3 answers
795 views
How to add radcombobox with items inside radgrid..?
Princy
Top achievements
Rank 2
 answered on 16 Oct 2013
6 answers
225 views
Hi All,

I have Facing the Problem Related to the rad scheduler, I want add control [Like check box] in cell of Moth view.
But there is no option in rad scheduler.....
Pls  Help me its so urgent.

Thanks 
Prithvi
Sandy
Top achievements
Rank 1
 answered on 15 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?