This is a migrated thread and some comments may be shown as answers.
RadGridView not respond when LoadLayout from XML file
1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 18 Feb 2020, 03:23 AM

Hello,

Please help me figure out the error in below xml file. When I use function LoadLayout of RadGridView, the grid layout not load and the application is not repond

Thank you very much

<RadGridView BeginEditMode="BeginEditOnKeystroke" ShowNoDataText="False" AutoSizeRows="True" GroupExpandAnimationType="Slide" BackColor="239, 239, 239" ForeColor="Black" EnableCustomGrouping="True" Font="Microsoft Sans Serif, 11.25pt" Cursor="Default" RightToLeft="No" TabIndex="0" ImeMode="NoControl">
  <MasterTemplate MultiSelect="True" AllowColumnHeaderContextMenu="False" AllowCellContextMenu="False" AllowDeleteRow="False" AllowAddNewRow="False" AllowSearchRow="True" EnableCustomGrouping="True" EnableFiltering="True" AutoGenerateColumns="False" AutoExpandGroups="True" ShowFilteringRow="False">
    <Columns>
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="41" FieldName="FlightId" Name="FlightId" EnableExpressionEditor="False" IsVisible="False" IsPinned="True" PinPosition="Left" ReadOnly="True" HeaderText="FLT ID" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="29" Name="No" EnableExpressionEditor="False" IsVisible="True" IsPinned="True" PinPosition="Left" AllowSort="False" AllowGroup="False" HeaderText="No" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="64" FieldName="FlightNo" Name="FlightNo" EnableExpressionEditor="False" IsVisible="True" IsPinned="True" PinPosition="Left" AllowSort="False" ReadOnly="True" HeaderText="Flight" />
      <Telerik.WinControls.UI.GridViewImageColumn Width="53" Name="Icon" EnableExpressionEditor="False" IsVisible="False" IsPinned="True" PinPosition="Left" AllowSort="False" HeaderText="Notice" />
      <Telerik.WinControls.UI.GridViewDateTimeColumn Format="Custom" FormatString="{0:dd}" Width="35" FieldName="FlightDate" Name="FlightDate" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" ReadOnly="True" HeaderText="Date" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewComboBoxColumn Width="98" FieldName="ACType" Name="ACType" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Aircraft" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="92" FieldName="ACRegNo" Name="ACRegNo" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Registration" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="74" FieldName="Config" Name="Config" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="Config" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="65" FieldName="Booking" Name="Booking" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="Booking" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="84" FieldName="Route" Name="Route" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Route" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="ScheduledTime" Name="ScheduledTime" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="STA" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="41" FieldName="DepTime" Name="DepTime" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="DEP" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="52" FieldName="MVA" Name="MVA" EnableExpressionEditor="False" IsVisible="True" HeaderText="SKED&#xA;CHG" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="EstimatedTime" Name="EstimatedTime" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="ETA" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="52" FieldName="CTOT" Name="CTOT" EnableExpressionEditor="False" IsVisible="False" HeaderText="CTOT" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="InOutBoundTime" Name="InOutBoundTime" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="IBT" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="57" FieldName="ACDoorClose" Name="ACDoorClose" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="AC DR&#xA;CLS" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="PushBackTime" Name="PushBackTime" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="PBT" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="ActualTime" Name="ActualTime" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="ATA" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="48" FieldName="ChockTime" Name="ChockTime" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="C.ON" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="32" FieldName="ArrTime" Name="ArrTime" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="ARR" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="44" FieldName="CheckinOpenTime" Name="CheckinOpenTime" IsVisible="False" HeaderText="CKI&#xA;OPN" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="CheckinClosedTime" Name="CheckinClosedTime" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="CKI&#xA;CLS" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="52" FieldName="GateClosedTime" Name="GateClosedTime" EnableExpressionEditor="False" IsVisible="False" HeaderText="GATE&#xA;CLS" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="44" FieldName="BoardingTime" Name="BoardingTime" EnableExpressionEditor="False" IsVisible="False" HeaderText="BDG&#xA;Call" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="44" FieldName="BoardingStart" Name="BoardingStart" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="BDG&#xA;Start" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="51" FieldName="BoardingFinish" Name="BoardingFinish" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="BDG&#xA;Finish" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="44" FieldName="FirstBag" Name="FirstBag" EnableExpressionEditor="False" IsVisible="True" HeaderText="1ST&#xA;BAG" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="44" FieldName="LastBag" Name="LastBag" EnableExpressionEditor="False" IsVisible="True" HeaderText="LST&#xA;BAG" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="37" FieldName="ParkingBay" Name="ParkingBay" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Bay" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn Width="43" FieldName="Gate" Name="Gate" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Bus&#xA;Gate" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="53" FieldName="CkiRow" Name="CkiRow" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="CKI Row" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="60" FieldName="TotalPax" Name="TotalPax" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="TTL PAX" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="30" FieldName="ADL" Name="ADL" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="ADL" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="30" FieldName="CHD" Name="CHD" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="CHD" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="30" FieldName="INF" Name="INF" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="INF" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="20" FieldName="F" Name="F" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="F" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Int32" FieldName="C" Name="C" EnableExpressionEditor="False" IsVisible="False" HeaderText="C" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" FieldName="ADL2" Name="ADL2" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="Ts&#xA;ADL" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" FieldName="CHD2" Name="CHD2" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="Ts&#xA;CHD" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" FieldName="INF2" Name="INF2" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="Ts&#xA;INF" />
      <Telerik.WinControls.UI.GridViewComboBoxColumn Width="53" FieldName="Status" Name="Status" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Status" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewCommandColumn Width="42" FieldName="FlightDelayReasons" Name="FlightDelayReasons" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="DLY&#xA;RSN" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewComboBoxColumn Width="61" FieldName="FlightType" Name="FlightType" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Nature&#xA;of Load" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewComboBoxColumn Width="56" FieldName="NatureOfFlight" Name="NatureOfFlight" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Nature&#xA;of Flt" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="70" FieldName="Terminal" Name="Terminal" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Terminal" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="52" FieldName="Lobby" Name="Lobby" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Lobby" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="36" FieldName="Belt" Name="Belt" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" HeaderText="Belt" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="40" FieldName="BagPcs" Name="BagPcs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="BAG&#xA;(Pcs)" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Decimal" Width="70" FieldName="BagKgs" Name="BagKgs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="BAG&#xA;(Kgs)" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Int32" Width="40" FieldName="CgoPcs" Name="CgoPcs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="CGO&#xA;(Pcs)" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Decimal" Width="70" FieldName="CgoKgs" Name="CgoKgs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="CGO&#xA;(Kgs)" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Int32" FieldName="BookingCargo" Name="BookingCargo" EnableExpressionEditor="False" IsVisible="False" ReadOnly="True" HeaderText="Booking&#xA;CGO" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Int32" FieldName="BookingOffload" Name="BookingOffload" IsVisible="False" HeaderText="Booking&#xA;OFLD" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Int32" FieldName="LIRCargo" Name="LIRCargo" EnableExpressionEditor="False" IsVisible="False" ReadOnly="True" HeaderText="LIR&#xA;CGO" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Decimal" Width="40" FieldName="Mailkgs" Name="Mailkgs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="Mail&#xA;(Kgs)" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" DataType="System.Decimal" Width="60" FieldName="TransferKgs" Name="TransferKgs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="TS.&#xA;(Dom.)" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Decimal" FieldName="Transfer2Kgs" Name="Transfer2Kgs" EnableExpressionEditor="False" IsVisible="False" HeaderText="TS.&#xA;(Int.)" TextAlignment="MiddleCenter" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn DataType="System.Int32" FieldName="DiffKgs" Name="DiffKgs" EnableExpressionEditor="False" IsVisible="False" AllowGroup="False" HeaderText="Diff.&#xA;Cgo" TextAlignment="MiddleRight" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" FieldName="OutputRemarks" Name="OutputRemarks" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" AllowGroup="False" HeaderText="Loading Remarks" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" Width="122" FieldName="SSR" Name="SSR" EnableExpressionEditor="False" IsVisible="True" AllowSort="False" AllowGroup="False" HeaderText="SSR" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="80" FieldName="Grnd_Cor" Name="Grnd_Cor" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="GRND&#xA;OPS COR" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="80" FieldName="Pbb_Agent" Name="Pbb_Agent" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="FPL" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="80" FieldName="Grnd_Ld" Name="Grnd_Ld" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="GRND&#xA;OPS LD" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="100" FieldName="Grnd_Ls" Name="Grnd_Ls" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="GRND&#xA;OPS LS" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="100" FieldName="PAX_SUPR" Name="Pax_Supr" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="ARR STAFF" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="80" FieldName="Pax_Csr" Name="Pax_Csr" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="BAG&#xA;HLD" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="80" FieldName="Ramp_Supr" Name="Ramp_Supr" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="RAMP&#xA;HLD SUP" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" FieldName="Vip_Svc" Name="Vip_Svc" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="VIP/CIP" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowSearching="False" Width="80" FieldName="CABIN_CLEAN" Name="CABIN_CLEAN" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="Cabin&#xA;Cleaning" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" AllowSearching="False" DataType="System.Int32" FieldName="Locked" Name="Locked" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="Locked" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" AllowSearching="False" DataType="System.Int32" FieldName="IsSAGS" Name="IsSAGS" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="IsSAGS" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn AllowFiltering="False" AllowSearching="False" DataType="System.Int32" FieldName="ClickedInOutBoundTime" Name="ClickedInOutBoundTime" EnableExpressionEditor="False" IsVisible="False" AllowSort="False" HeaderText="ClickedInOutBoundTime" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="RouteType" Name="RouteType" EnableExpressionEditor="False" IsVisible="False" HeaderText="RouteType" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="Indicator" Name="Indicator" EnableExpressionEditor="False" IsVisible="False" HeaderText="Indicator" />
      <Telerik.WinControls.UI.GridViewTextBoxColumn FieldName="COBT" Name="COBT" EnableExpressionEditor="False" IsVisible="False" HeaderText="COBT" TextAlignment="MiddleCenter" />
    </Columns>
    <ViewDefinition xsi:type="Telerik.WinControls.UI.TableViewDefinition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
  </MasterTemplate>
</RadGridView>

1 Answer, 1 is accepted

Sort by
0
Nadya
Telerik team
answered on 20 Feb 2020, 01:54 PM

Hello Andy,

I created a sample project in order to test the provided XML code and it seems that it works fine on my end. Please refer to the attached gif file that demonstrates the result after loading the provided XML. I attached my project to this thread. Could you please refer to it and see how it works.

I hope this helps. Let me know if you have further questions.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Asked by
Andy
Top achievements
Rank 1
Answers by
Nadya
Telerik team
Share this question
or