Highlight Selected Row in Xpage ViewPanel - dojo

I am trying to highlight a row of a selected link from an XPage viewPanel. I found this thread >>> http://www-10.lotus.com/ldd/xpagesforum.nsf/xpTopicThread.xsp?documentId=A7133FB0A1AFE05185257A8300429810
I tried it but its failing on the dojo.byId(nodeval). I tried to check the value on that but always returns to null.
Any help/direction would is greatly appreciated.
Thanks very much.
Chay

Dojo.byId() is used to find nodes by id, not nodeval.
I don't think every row has an unique id.
Try using dojo/query.
http://dojotoolkit.org/reference-guide/1.9/dojo/query.html
Can you post your failing code?

Related

Can we hide VB.NET first selection column?

I hope I state my problem correctly. Kindly please look at the screenclip below :'
I prefer that the first column shown above is not displayed. Is there any design/programmatic way of achieving this?
Thank you!
Edited :
Using this link http://www.andreavb.com/forum/viewtopic_7951.html, I am able to remove the triangle from the selection column
This is using a DataGridView I assume? Just use the visible property for the row headers.
dgv.RowHeadersVisible = false;
Alternatively, you can set it to false using the Properties window.

Hide row if it is not on the first page

I want to hide a row of a table if it is not rendered on the first page of a report. The table (tablix) is in the header nor in the footer area.
I have tried to set an expression for the RowVisibility-property, something like:
(hidden) =Globals!PageNumber<>1
however, this leads to an exception saying that the PageNumber can only be used from within the header or the footer area.
Is there a possibility to check (in an expression) if an element is located on the first page of a report?
Not a precise answer to my question, but maybe it helps someone with a similar issue:
For the tablix activate the repeat row header option
In the advance row group options, activate the option RepeatOnNewPage
For the rows that should not be shown on the next page, disable the option KeepWithGroup
I don't understand why I can not set RepeatOnNewPage only for some but not for all rows, but with the KeepWithGroup option, it seems to work like I desired.
If someone has a more precise answer to my original question, please post it. I will the change the accept to your answer!
Set this in the visibility property and the row will rendered or not depeding of the YourDatasetField value.
=IIF(True = Fields!YourDatasetField.Value, False, True)

Capturing onclick events on a dynamically populated (using ItemReadStore) dojox.mobil.EdgeToEdgeDataList

I am a dojo newbie so please forgive my ignorance. I have a dojox.mobile.EdgeToEdgeDataList which is dyanmically populated using ItemFileReadStore
var jobStore = new dojo.data.ItemFileReadStore({url: "items", clearOnClose: true});;
...
<ul dojoType="dojox.mobile.EdgeToEdgeDataList" id="execlist" store="jobStore" query=" {state: 'active'}"></ul>
On clicking any of these dynamically generated rows I want to display detailed information about the item referenced in the row. In order to do that I need to know which row was clicked and extract the label from that row
I tried the following:
dojo.query("#execList li").connect("onclick", function(){...});
but that works only for the case where the rows already exist at the dojo.ready time.
Any idea how I could do this?
Thanks in advance!
NJ
I was able to get solve my problem by updating the contents returned by ItemFileReadStore to include a onclick(mymethod(rowid)) element in each row. This inserted the onclick event on each list item within the EdgeToEdgeDataList allowing me to identify which row was clicked.
Thanks
NJ

DataGridView and Combobox Column?

when DataGridView has a combobox column, how can I get the text it displays as oppose to the value it represents? When I do DGV.Item("cbo",i).Value I get the value but it won't take DGV.Item("cbo",i).Text. I trying Ctype(DGV.Item("cbo",i),ComboBox).Text and this does not work either.
Try
DGV.item("cbo",i).DisplayMember
Umm are you talking about Win Forms?
If so, Value is the property you want, and is what is to be displayed on the screen and held behind the scenes.
If you want something different not shown to the user, I've often used the property Tag for that.
I found this, and the answers didn't work for me. In case someone else finds this, here is what I did.
dgv.rows(i).Cells(cboname.index).EditedFormattedValue
Hope if someone finds this through Google it will help them.
Dim dgvcmbcell As DataGridViewComboBoxCell = DgvItemsUnits.Item("UNIT_SER", 0)
Dim SelectedText As String = dgvcmbcell.EditedFormattedValue.ToString()

Multi Band Infragistics UltraGrid Row Select problem

I am bringing in data from SQL that is to be displayed in a multi band ultragrid. This works great. It does what it is supposed to in this regard; however, if I try to select a row other than the first one, in any band of the bands, it freezes the program.
When the grid is loaded, the first row seems to be active (text is bold), so I tried doing an update on the active row. This got rid of the active row, but didn't fix the problem.
Thank you in advance for any help!
Are you using BindingList<> as your data source? Try converting to List<>.If you have to use BindingList<> then set the SyncWithCurrencyManager property on ultragrid to false. This tells the grid not to synchronize the current row with the current position of the CurrencyManager