AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 31.10.2012, 22:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,617 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Microsoft Dynamics AX 2012: How to set up Grid column width on fixed value
Источник: http://blogs.msdn.com/b/axsupport/ar...xed-value.aspx
==============

In Microsoft Dynamics AX 2012 the width property set up on column is ignored when is lower than length of label.

The issue in this case is the length of the label. You cannot set a default column width that is smaller than the label. This is because labels are different lengths in different languages, and we want each language to have a clean initial presentation, without having labels truncated.

If the user would like a shorter or wider column width, she can manually change the column size interactively without resorting to personalization or customization. She simply resizes the column in the UI and the size of the column is “remembered” by the grid and will always open to that size.

In addition, the user can choose to personalize the form and change the default width of the column. When this is done, it is considered an “end user override” and just as in the interactive approach and “the user wins” and the column should be sized according to the override value.

User settings may be cleared and ALL user preferences may be reset to their shipping defaults by choosing tools>>options>>Usage data and click on “Reset” (note, this clears all user preferences)

If you really want the Width property to be taken into account and you don’t mind that label will be truncated you can also achieve it by adding to form in init method following code:

public void init()

{

super();

Grid.autoSizeColumns(false);

}


If above code does not work, make sure that you have reset personalization.








Источник: http://blogs.msdn.com/b/axsupport/ar...xed-value.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Content news: May Blog bot DAX Blogs 0 01.06.2012 01:11
emeadaxsupport: 4. Solving Fill Utility errors on Microsoft Dynamics AX 2012 - Error executing code: Wrong argument types for comparison (another scenario) Blog bot DAX Blogs 2 08.02.2012 09:21
dynamics-ax: Microsoft Dynamics AX 2012 Excel Add-in Blog bot DAX Blogs 0 08.06.2011 08:12
DynamicsAxSCM: Service products in Microsoft Dynamics AX 2012 Blog bot DAX Blogs 2 02.06.2011 13:36
DynamicsAxSCM: Operational Sites in Microsoft Dynamics AX 2012 Blog bot DAX Blogs 0 25.05.2011 19:11

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:52.