2017-04-21 1 views
0

私はとカレンダーを示しDateEdit持っている:デベロッパーズ編集の設定をjavascriptで変更できますか?私のプロジェクトで

pickerGroup.Items.Add(item => Model.Start, itemSettings => 
{ 
    itemSettings.NestedExtensionType = FormLayoutNestedExtensionItemType.DateEdit; 
    var dateEditSettings = (DateEditSettings)itemSettings.NestedExtensionSettings; 

    dateEditSettings.Properties.CalendarProperties.Columns = 2; 
    dateEditSettings.Properties.CalendarProperties.Rows = 1; 
}); 

をウィンドウ幅が私のようにjavascript関数で考えていた< XX

であれば私の目標は、これら2つのプロパティを変更することです

function Responsive() { 
    var width = screen.width; 
    if (width < 1000) { 
     settings.Properties.CalendarProperties.Columns = 1; 
     settings.Properties.CalendarProperties.Rows = 2; 
    } 
    else { 

    } 
} 

可能でしょうか?どんな助けも大いに評価されるだろう。

答えて

0

私は自分の質問に答えるために、DevExpress社の開発効率向上のチームと連絡し、可能性があり、いいえ、それは不可能ですありがとうございました。

彼らの答え:

DateEdit does not provide the capability to change the Columns property on the client side. As a workaround I suggest you use @media CSS rules. For example: 

@@media screen and (max-width: 1000px) { 
    .dxeCalendar_DevEx td { 
     display: block; 
    } 
     .dxeCalendar_DevEx td td { 
      display: table-cell; 
     } 
} 


Note that it is necessary to set the current theme name instead of the "_DevEx" postfix. Should you have any further questions, feel free to contact us. 
関連する問題