Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
485 views

Hi Everyone,

 I upgraded to ASP.NET AJAX 2016 Q1 today, and I've been receiving this error once in awhile.  I'm not sure exactly what causes it.

 I don't see it list any of my code.  It does only occur on one page (so far).  In this page I do two things related to grouping.  In the 'DetailTableDataBind' event I group by a specific field:

                e.DetailTableView.GroupByExpressions.Clear();
                var gridGroupByExpression = new GridGroupByExpression();
                gridGroupByExpression.GroupByFields.Add(new GridGroupByField { FieldName = "FIELD NAME", SortOrder = GridSortOrder.Descending });
                gridGroupByExpression.SelectFields.Add(new GridGroupByField { FieldName = "FIELD NAME", HeaderText = "HEADER TEXT", Aggregate = GridAggregateFunction.Avg, FormatString = "{0:0}" });
                gridGroupByExpression.SelectFields.Add(new GridGroupByField { FieldName = "FIELD NAME", HeaderText = "HEADER TEXT", Aggregate = GridAggregateFunction.Avg });
                e.DetailTableView.GroupByExpressions.Add(gridGroupByExpression);

 And in the 'GroupsChanging' event, I disable paging if at least one column is being grouped by:

(sender as RadGrid).AllowPaging = !(e.Action != GridGroupsChangingAction.Ungroup || e.TableView.GroupByExpressions.Count > 1);

 

Here's the full exception:

 System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException (0x80004005): Multiple controls with the same ID '_LightweightGroupPlaceHolder' were found. FindControl requires that controls have unique IDs.
    at System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls)
    at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
    at Telerik.Web.UI.GridGroupPanel.AddLightweightGroups(GridTableView tableView, Int32 level, Int32& tableIndex)
    at Telerik.Web.UI.GridGroupPanel.InitializeIn(RadGrid grid, Boolean FromViewState)
    at Telerik.Web.UI.RadGrid.CreateGroupPanel(Control container)
    at Telerik.Web.UI.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
    at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.Web.UI.GridBaseDataList.get_Controls()
    at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
    at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
    at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
    at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
    at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
    at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
    at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
    at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
    at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)
    at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)
    at System.Web.UI.Page.LoadAllState()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Pavlina
Telerik team
 answered on 01 Feb 2016
3 answers
120 views

We have an ASP.NET forms app which makes use of the Telerik RadGrid. One particular page has some code that allows the user's search criteria to be remembered (not sure if this relevant). 

Quite often when adding updated or new pages to the same folder the page with the RadGrid starts crashing even though this page hasn't been updated itself. It seems more likely to crash for people who were using the page when the other content changed as it doesn't normally affect everybody. The problem can normally be cleared up by recycling the application pool or resetting IIS (Which isn't always possible to do quickly)

We have recently moved to a new web server (Windows 2012 / IIS8). We had the problem on the old server  too - I was hoping the server move would help but it hasnt. Can anyone offer any advice?

Part of the error is pasted below

A]GridSettingsCollection cannot be cast to [B]GridSettingsCollection. Type A originates from 'App_Code.tjhpcefj, 

Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET

\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4d0bd47d\b6b2e877\App_Code.tjhpcefj.dll'. Type B originates from 

'App_Code.oxtbck2r, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:

\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4d0bd47d\b6b2e877\App_Code.oxtbck2r.dll'.

Source Error: 

Line 370:    Public Shared Function LoadFromSerializedData(ByVal data As String) As GridSettingsCollection
Line 371:        Dim formatter As New LosFormatter()
Line 372:        Return DirectCast(formatter.Deserialize(data), GridSettingsCollection)
Line 373:    End Function

Maria Ilieva
Telerik team
 answered on 01 Feb 2016
2 answers
126 views
Hello Telerik, Im trying to enable multi row select in rad grid without a check box for selecting, only on any row cell click i can select, and on another row click, it keep the previous selected row, im trying to do so client side, is there any way to implement that
Bishara
Top achievements
Rank 1
 answered on 01 Feb 2016
1 answer
280 views

 I am able to change the values of all the controls in my telerik grid in the ItemDataBound method except those in the HeaderTemplate
How can I access those controls?

 

<telerik:GridTemplateColumn UniqueName="TemplateColumnOne" >

<HeaderStyle >

</HeaderStyle>

<HeaderTemplate >

<asp:Label ID="lblToolTip" runat="server" ></asp:Label>

</HeaderTemplate>

<ItemTemplate>

<asp:Label id="lblPermitNumber" runat="server"></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

 

protected void Grid_ItemDataBound(object sender, GridItemEventArgs e)

{

var item = e.Item as GridDataItem;

TableCell documentColumn = item["TemplateColumnOne"];

var lblPermitNumber=(Label)documentColumn.FindControl("lblPermitNumber");

lblPermitNumber.Text = "some text; // how do you access LblToolTip ?

}

 

 

I am able to change the values of all the controls in my telerik grid in the ItemDataBound method except those in the HeaderTemplate

How can I access those controls?

      <telerik:GridTemplateColumn UniqueName="TemplateColumnOne" >
      <HeaderStyle ></HeaderStyle>
      <HeaderTemplate >                                  
      <asp:Label ID="lblToolTip"  runat="server"  onclick="showToolTip(this);"></asp:Label>                     
      </HeaderTemplate>
            <ItemTemplate>                                   
               <asp:Label id="lblPermitNumber" runat="server"></asp:Label>                  
             </ItemTemplate>
       </telerik:GridTemplateColumn>


    protected void Grid_ItemDataBound(object sender, GridItemEventArgs e)
    {
    var item = e.Item as GridDataItem;
    TableCell documentColumn = item["TemplateColumnOne"];
    var lblPermitNumber=(Label)documentColumn.FindControl("lblPermitNumber");
     lblPermitNumber.Text = "some text;
    // how do you access LblToolTip ?
         }

I am able to change the values of all the controls in my telerik grid in the ItemDataBound method except those in the HeaderTemplate

How can I access those controls?

      <telerik:GridTemplateColumn UniqueName="TemplateColumnOne" >
      <HeaderStyle ></HeaderStyle>
      <HeaderTemplate >                                  
      <asp:Label ID="lblToolTip"  runat="server"  onclick="showToolTip(this);"></asp:Label>                     
      </HeaderTemplate>
            <ItemTemplate>                                   
               <asp:Label id="lblPermitNumber" runat="server"></asp:Label>                  
             </ItemTemplate>
       </telerik:GridTemplateColumn>


    protected void Grid_ItemDataBound(object sender, GridItemEventArgs e)
    {
    var item = e.Item as GridDataItem;
    TableCell documentColumn = item["TemplateColumnOne"];
    var lblPermitNumber=(Label)documentColumn.FindControl("lblPermitNumber");
     lblPermitNumber.Text = "some text;
    // how do you access LblToolTip ?
         }

I am able to change the values of all the controls in my telerik grid in the ItemDataBound method except those in the HeaderTemplate

How can I access those controls?

Eyup
Telerik team
 answered on 01 Feb 2016
4 answers
170 views
In my RadGrid, I am creating columns dynamically in code behind. One column is a GridDropDownColumn which is created as follows.
GridDropDownColumn columnn = new GridDropDownColumn();
TRG.MasterTableView.Columns.Add(columnn);
 
columnn.ListDataMember = "Department";
columnn.DataField = "Id";
columnn.ListTextField = "Name";
columnn.ListValueField = "Id";
columnn.DropDownControlType = GridDropDownColumnControlType.RadComboBox;
columnn.UniqueName = "Department";
columnn.HeaderText = "Department";

ListDataMemeber is set to corresponding table name in DataSet to which the RadGrid is bound.

Now, this column appears fine in as a Bound Column Display mode , and appears as a RadComboBox in Edit Mode, with correct values.

However, the issue is that the "ExtractValuesFromItem" in Radgrid_UpdateCommand doesn't get the value for this GridDropDownColumn.
protected void MyGrid_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
    Hashtable NewData = new Hashtable();
    e.Item.OwnerTableView.ExtractValuesFromItem(NewData, (GridEditableItem)e.Item);
}

If there are total 12 columns in my RadGrid, then, there are 11 in "NewData" hashtable, and the GridDropDownColumn's value is missing.

What is the correct way to achieve this?
Brian
Top achievements
Rank 2
 answered on 01 Feb 2016
10 answers
766 views
I have a very strange thing happening and really need some help. I am running the code below which includes a parent radgrid and a nested one but when the page first loads and I expand one of the top level grid items then the nestedviewtemplate grid (detailsGrid) doesn't have any data in it. When debugging this the detailsGrid_OnNeedDataSource event is not firing. However the parent grid (destinationCodesGrid) destinationCodesGrid_OnNeedDataSource method is firing immediately then the page renders with nothing in the nested grid. About 20 seconds later the detailsGrid_OnNeedDataSource event fires and the breakpoint hits but only after it is too late.

Here is an odd thing though if I do some other action in the grid that fires a postback first such as paging to the next page or clicking edit then after that point the destinationCodesGrid_OnNeedDataSource method fires immediately. Please advise!

Here is the code:

====ASPX========

 

     <telerik:RadGrid ID="destinationCodesGrid" runat="server" AutoGenerateColumns="False"   
                    OnInsertCommand="destinationCodesGrid_OnInsertCommand" 
                    OnUpdateCommand="destinationCodesGrid_OnUpdateCommand"                    
                    OnNeedDataSource="destinationCodesGrid_OnNeedDataSource" 
                    OnDeleteCommand="destinationCodesGrid_OnDeleteCommand" 
                 OnItemCreated="destinationCodesGrid_OnItemCreated" 
                     OnItemCommand="destinationCodesGrid_OnItemCommand" 
                    Width="500px"   
                    AutoGenerateDeleteColumn="True"   
                    OnColumnCreated="destinationCodesGrid_OnColumnCreated" AllowFilteringByColumn="True"   
                    GridLines="None" AllowPaging="true" PageSize="10"   
                     > 
                    <HeaderContextMenu> 
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </HeaderContextMenu> 
                    <MasterTableView DataKeyNames="DialID" EditMode="InPlace" InsertItemDisplay="Bottom" 
                        CommandItemDisplay="Bottom">  
                          
                <NestedViewTemplate>          
                 
                                <telerik:RadGrid runat="server" ID="detailsGrid" OnNeedDataSource="detailsGrid_OnNeedDataSource"   
                                    ShowFooter="true" AllowSorting="true" AutoGenerateDeleteColumn="True">  
                                    <MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="false" 
                                        DataKeyNames="UniqueKey" > 
                                         
                                        <Columns> 
                                            <telerik:GridBoundColumn DataField="PhoneNum" HeaderText="Phone Number" UniqueName="PhoneNum">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="DestName" HeaderText="Destination Name" UniqueName="DestName">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridEditCommandColumn /> 
                                        </Columns> 
                                    </MasterTableView> 
                                </telerik:RadGrid>                                                    
                   
                </NestedViewTemplate> 

======Code behind=======

 

protected void Page_Load(object sender, EventArgs e)   
{  
}    
 
  protected void destinationCodesGrid_OnNeedDataSource(object source, GridNeedDataSourceEventArgs e)  
{  
        Administration admin = new Administration(CurrentServer);  
        destinationCodesGrid.DataSource = admin.RetrieveSpeedDialMaster();  
}  
 
 
protected void detailsGrid_OnNeedDataSource(object source, GridNeedDataSourceEventArgs e)  
{  
        RadGrid grid = (RadGrid)source;  
        GridNestedViewItem nestedItem = (GridNestedViewItem)grid.NamingContainer;  
        string dataKeyValue = Convert.ToString(((GridDataItem)(nestedItem.ParentItem)).GetDataKeyValue("DialID"));   
        RadGrid tempGrid = (RadGrid)nestedItem.FindControl("detailsGrid");  
        tempGrid.DataSource = GetDetailsDataSource(dataKeyValue);  

Eyup
Telerik team
 answered on 01 Feb 2016
3 answers
89 views

Telerik Q1/2016 but this rendering behavior is the same in previous versions of Telerik.

I have RadGrid in a <TD colspan="3">.   After postback the radgrid appears above the <table>. 

Issue occurs with Chrome 47.0.2526.111 and IE 11 (when Edge mode is used).

It only works fine with content="IE=EmulateIE8".

VS2015 SP1, no other HTML syntax errors.  Using AjaxManager.

<!DOCTYPE html>

Pavlina
Telerik team
 answered on 01 Feb 2016
5 answers
292 views
Hi,

I have grid that contains many different column. Also i have activate the scroll and set the frozencolumncount to 3.

The thing is that my last column is not showing completly. I have to create an empty column visible="false" and set a specific with to be able to see my last column completly. (see attachment)

Here is my grid html code :

<telerik:RadGrid ID="RadGridCadetStaffing" runat="server" AutoGenerateColumns="False"
    Style="margin-top: 5px;" AllowSorting="true" AllowFilteringByColumn="true" AllowMultiRowSelection="true"
    meta:resourcekey="RadGridCadetStaffing" OnItemCreated="OnItemCreated" OnNeedDataSource="OnNeedDataSource" AllowPaging="true" EnableViewState="true">
    <MasterTableView TableLayout="Fixed" CommandItemDisplay="TopAndBottom" AutoGenerateColumns="false">
        <CommandItemTemplate>
            <asp:Panel ID="GridFooter" CssClass="ListFooter" runat="server" HorizontalAlign="Right">
                <fortress:ButtonAddNew ID="ButtonAddNew" runat="server"></fortress:ButtonAddNew>
                <asp:ImageButton ID="ImageButtonSubmitCadetApplication" runat="server" OnClick="OnSubmitCadetApplication" style="margin-right:10px"
                 ImageUrl="~/App_Themes/Fv2Default/StandardButtons/SubmitCommit20x20.png" meta:resourcekey="ImageButtonSubmitCadetApplication" />
                <asp:ImageButton ID="ImageButtonDeleteCadetApplication" runat="server" OnClick="OnDeleteSelected"
                    ImageUrl="$/grid/Delete20x20.png" AlternateText="~Supprimer une application"
                    meta:resourcekey="ImageButtonDeleteCadetApplication" />
            </asp:Panel>
        </CommandItemTemplate>
        <Columns>
            <telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn"
                HeaderText="~Sélection" meta:resourcekey="GridClientSelectColumn">
                <HeaderStyle Width="20px"></HeaderStyle>
            </telerik:GridClientSelectColumn>
            <%--Insérez vos colonnes ici -- DÉBUT --%>
            <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" AllowFiltering="false">
                <ItemTemplate>
                    <fortress:ButtonEdit ID="ButtonEdit" runat="server">
                    </fortress:ButtonEdit>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn AllowFiltering="true" UniqueName="CadetId" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="true" UniqueName="StaffableActivityContingentId"
                Visible="false" HeaderText="~StaffableActivityContingentId">
            </telerik:GridBoundColumn>
            <fortress:RadGridDateColumn UniqueName="WaiverCount" Visible="false">
            </fortress:RadGridDateColumn>
            <telerik:GridTemplateColumn AllowFiltering="false" ItemStyle-HorizontalAlign="Center"
                UniqueName="WaiverCountImage" meta:resourcekey="GridTemplateColumnWaiverCount"
                SortExpression="ApplicationStatus">
                <HeaderStyle Width="25px" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Image ID="ImageRespectAllCriteria" runat="server" Visible='<%#EvalIsIncomplete(Eval(LocalizedCadetStaffingFieldsName.ApplicationStatusId))%>'
                        ImageUrl='~/App_Themes/Fv2Default/StandardButtons/Warning20x20.png' meta:resourcekey="ImageRespectAllCriteria" />
                         <asp:Image ID="ImageRejected" runat="server" Visible='<%#EvalIsRejected(Eval(LocalizedCadetStaffingFieldsName.ApplicationStatusId))%>'
                        ImageUrl='~/App_Themes/Fv2Default/StandardButtons/Error20x20.png' meta:resourcekey="ImageImageRejected" />
                    <asp:Label ID="LabelRespectAllCriteria" runat="server" Visible='<%# !EvalIsIncomplete(Eval(LocalizedCadetStaffingFieldsName.ApplicationStatusId)) && !EvalIsRejected(Eval(LocalizedCadetStaffingFieldsName.ApplicationStatusId)) %>'
                        Text=" "></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn AllowFiltering="true" UniqueName="ApplicationStatus" HeaderText="~ApplicationStatus"
                meta:resourcekey="GridBoundColumnApplicationStatus">
                <HeaderStyle Width="110px" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="ApplicationDerogationStatus" HeaderText="~Dérogation" AllowFiltering="false"
             meta:resourcekey="TemplateColumnApplicationDerogationStatus">
                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label ID="LabelEmptyDerogation" runat="server" Text=" "
                    Visible='<%# !EvalApplicationDerogationStatus(Eval(LocalizedCadetStaffingFieldsName.ApplicationStatusId), Eval(LocalizedCadetStaffingFieldsName.WaiverCount))%>'></asp:Label>
                    <asp:Image ID="ImageDerogation" runat="server" ImageUrl="~/App_Themes/Fv2Default/StandardButtons/CheckWaiver20x20.png"
                     Visible='<%# EvalApplicationDerogationStatus(Eval(LocalizedCadetStaffingFieldsName.ApplicationStatusId), Eval(LocalizedCadetStaffingFieldsName.WaiverCount))%>' meta:resourcekey="ImageDerogation" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridHyperLinkColumn AllowFiltering="true" UniqueName="ContingentSerialNumber" HeaderText="~ContingentSerialNumber"
                DataNavigateUrlFormatString="~/Content/StaffableActivities/Contingent/UnitStaffableActivityContingentView.aspx?ContingentId={0}"
                DataNavigateUrlFields="StaffableActivityContingentId" meta:resourcekey="GridBoundColumnContingentSerialNumber">
                <HeaderStyle Width="70px" />
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn AllowFiltering="true" UniqueName="Name" HeaderText="~name"
                meta:resourcekey="GridBoundColumnName">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <fortress:StaffableActivityTypeColumn UniqueName="StaffableActivityType">
            </fortress:StaffableActivityTypeColumn>
            <telerik:GridBoundColumn AllowFiltering="true" UniqueName="Nic" HeaderText="~Nic"
                meta:resourcekey="GridBoundColumnNic">
                <HeaderStyle Width="70px" />
            </telerik:GridBoundColumn>
            <telerik:GridHyperLinkColumn AllowFiltering="true" UniqueName="LastName" HeaderText="~LastName"
                DataNavigateUrlFormatString="~/Content/Cadet/CadetView.aspx?CadetId={0}"
                DataNavigateUrlFields="CadetId" meta:resourcekey="GridBoundColumnLastName">
                <HeaderStyle Width="100px" />
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn AllowFiltering="true" UniqueName="FirstName" HeaderText="~Prénom"
                meta:resourcekey="GridBoundColumnFirstName">
                <HeaderStyle Width="100px" />
            </telerik:GridBoundColumn>
            <%--Package de CadetRankColumn--%>
            <fortress:CadetRankColumn>
            </fortress:CadetRankColumn>
            <telerik:GridBoundColumn UniqueName="CadetRankSequence" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="CadetRankId" Visible="false">
            </telerik:GridBoundColumn>
            <%-- Fin package de CadetRankColumn--%>
            <telerik:GridBoundColumn UniqueName="SubmittedUnitShortName"  HeaderText="~Saisi par" meta:resourcekey="GridBoundColumnSubmittedUnitShortName">
            <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <Fortress:RadGridDateColumn UniqueName="SubmissionDate" DataFormatString="{0:yyyy-MM-dd}" meta:resourcekey="GridBoundColumnSubmissionDate">
                <HeaderStyle Width="80px" />
            </Fortress:RadGridDateColumn>
            <telerik:GridBoundColumn UniqueName="SubmissionStatus" meta:resourcekey="GridBoundColumnSubmissionStatus">
                <HeaderStyle Width="110px" />
            </telerik:GridBoundColumn>
            <telerik:GridHyperLinkColumn AllowFiltering="true" UniqueName="UnitShortName" HeaderText="~UnitShortName"
                DataNavigateUrlFormatString="~/Content/Unit/UnitView.aspx?UnitId={0}"
                DataNavigateUrlFields="CadetCorpsId" meta:resourcekey="GridBoundColumnUnitShortName">
                <HeaderStyle Width="70px" />
            </telerik:GridHyperLinkColumn>
            <fortress:RadGridDateColumn AllowFiltering="false" UniqueName="ContingentStartDate"
                HeaderText="~ContingentStartDate" DataFormatString="{0:d}" meta:resourcekey="GridBoundColumnContingentStartDate">
                <HeaderStyle Width="80px" />
            </fortress:RadGridDateColumn>
            <fortress:RadGridDateColumn AllowFiltering="false" UniqueName="ContingentEndDate"
                HeaderText="~ContingentEndDate" DataFormatString="{0:d}" meta:resourcekey="GridBoundColumnContingentEndDate">
                <HeaderStyle Width="80px" />
            </fortress:RadGridDateColumn>
            <fortress:RadGridDateColumn AllowFiltering="true" UniqueName="StartApplicationDate"
                HeaderText="~StartApplicationDate" DataFormatString="{0:d}" meta:resourcekey="GridBoundColumnStartApplicationDate">
                <HeaderStyle Width="90px" />
            </fortress:RadGridDateColumn>
            <fortress:RadGridDateColumn AllowFiltering="true" UniqueName="EndApplicationDate"
                HeaderText="~EndApplicationDate" DataFormatString="{0:d}" meta:resourcekey="GridBoundColumnEndApplicationDate">
                <HeaderStyle Width="90px" />
            </fortress:RadGridDateColumn>
            <telerik:GridBoundColumn AllowFiltering="false" UniqueName="CommandingOfficerPriority"
                HeaderText="~Priorité du commandant" meta:resourcekey="GridBoundColumnCommandingOfficerPriority">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn AllowFiltering="false" UniqueName="CadetPreference" HeaderText="~Préférence du cadet"
                meta:resourcekey="GridBoundColumnCadetPreference">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>
            <%-- Cette colonne permet de régler le problème de scroll horizontal --%>
            <fortress:RadGridDateColumn AllowFiltering="false" UniqueName="EmptyColumn">
                <HeaderStyle Width="217px" />
            </fortress:RadGridDateColumn>
            <%--Insérez vos colonnes ici -- FIN --%>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="360px" FrozenColumnsCount="3" />
    </ClientSettings>
</telerik:RadGrid>

The <fortress.... > are home made gridboundcolumn.

Is there a way to remove the last column that only serve to resize correctly my grid?

Thx for your help,
have a nice day,
Guillaume
Pavlina
Telerik team
 answered on 01 Feb 2016
7 answers
2.2K+ views

Hi.

 

I’ve been looking at your sample for validating a Raddatepicker:-

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/validation/defaultcs.aspx

 

This is my scenario:

I have a raddatepicker and the mandate=”01/01/2009” this works great of course if I want to prompt the user that the date is incorrect, however I can still submit the form.

 

I then put a compare validator on the page and set that to Greater than or equal to “01/01/2009”, for some reason it won’t work.

 

Basically I want to prevent the user from submitting the form if the date is less than “01/01/2009” am I missing something?

 

Thanks

Karl

Eyup
Telerik team
 answered on 01 Feb 2016
2 answers
165 views

I am using RedCaptcha on registration page and it works ok, but if i open this page from mobile device (or emulating it in browser) the redcaptcha image doesn't appear. If i open link from captcha src="" attribute in new tab i see the image.

You can see this issue by this url: 
https://demo.provantportalstaging.com/_layouts/15/Provant.CustomerPortal.Authentication/Participant%20Pages/Registration.aspx

Maybe you have faced such issue earlier. 
Any help will be appreciated

Igor
Top achievements
Rank 1
 answered on 01 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?