Tree table checkBox issue UI5 - sapui5

Got a bug in tree table on scroll selected check box position changed
Before scroll
After Scroll Down

In Tree table, once the HTML is render it will not changed. If you have observe, after table scroll also the generated HTML ID's by UI5 will be same.
So you need to use two way data binding model with a property bind to the checkbox, which will tell the checkbox status ie checked/unchecked.
Means backend data should have a property which is bind to the checkbox selected property, so that when ever you select the checkbox the corresponding property will be changed (true/false) and on scrolling also the it will maintain the selected property.

Related

change and set visible field of smarttable using javascript in ui5

i want to change the initially visible fields of smartTable to other fields which are not initially visible or (make other invisible fields visible in table column) using javascript so that we don't need to set it using ui.
i have tried calling setInitiallyVisibleFields but it gives error saying ,it can't be changed once table is initialized
Just use setVisible method from sap.ui.core.Control class.
Give your SmartTable an ID
Capture it inside your controller using this.byId
call setVisible(true/false)

Infopath: Buttons moving when calculated field is hidden

I have made an InfoPath form with several views. A user can only go to the next view when all needed fields are filled. Therefore, the next button is disabled. To inform the user, there is a calculated field dispalying "please fill out all needed fields to go to next view". When all fields on the view are filled, the calculated field is hidden and the button is enabled. When the field disappears the button is moving one Level higher to the direction where the label was. Is there a way to lock the button on the view?
If you look carefully you can see that the button (and the Label "1/6" is moving up)
Best regards,
Julian
Here is a trick: try changing the font color to the same color as background. It is like hiding the message by changing the font color so it won't be visible.
You might want to put the different objects inside a layout table, and then set specific heights for the layout table rows. Then when something is hidden, like the calculated field, the other objects stay where you'd like them to be.

How to make grid on list page to be editable?

I am trying to allow editing on form with list page template. I would like to make grid to be editable on default (I know it is against check style).
The table field property is set to allow edit yes
The user I am log in with have the right to edit
The datasource allow edit property is set to yes
The grid allow edit property is set to yes
Every column in grid has allow edit yes
I do not change allow edit in code and I am still not able to edit any column.
How I can change this behavior?
If you make a list page as a copy of SysBPStyle_ListPage you do not change the behavior.
List pages are read only by definition.
You may use a simple list or another form template.
Forms started by double clicking on a list page item can be set to edit mode by default.
To do so use the form option dialog:

SmartGWT : ListGrid Dragging customizing

I need to put an HTML code on dragging event. Like there is some HTML text that gets dragged with Cursor.
By default first column of ListGrid goes with Cursor. But I want to generate separate Text for it.
So, is it possible to do that?
Or Is there any other option to do that?
Please help me in this.
Thanks.
Whats displayed (by default) during a drag event in ListGrid is defined by ListGrid.dragTrackerMode and ListGrid.titleField.
ListGrid will default to first field to obtain the description to be shown during a drag, based on titleField.
If you already have another field in the grid from which you can obtain the text, use listGrid.setTitleField("other-field-name");
A custom title can be defined by overriding ListGrid.getDragTrackerTitle
If multiple records are selected, and dragged, drag tracker/title/etc. will be based on first selected record.
Check other ListGrid methods that allow drag tracker customizations as well.

devexpress aspxgridview - setting label with page number

I am using devexpress aspxgridview in asp.net 3.5 web application.
on pageload, I have a label control on top of the page whose text for example is "abc".
I am trying to set the value of the label with the page number selected by the user from the grid using onpageindexchanged event.
But the label values is not changing. it is still showing the old value "abc". what may be the problem?
To change other controls during the PageIndexChanged event, you might need to disable callbacks (see the ASPxGridView.EnableCallBacks property) and place both the text box and grid control onto the UpdatePanel.
Alternatively, you can do it on the client-side with javascript if you want to keep callbacks enabled. There's a sample project attached here:
http://www.devexpress.com/Support/Center/p/Q201214.aspx