How to select a row programatically
How to select a row programatically
robinkrajan
Posts: 1Questions: 0Answers: 0
I am new to MVC, Can any body suggest a solution for this requirement.
I have a "User list" data table loaded when my view loads, i want the program to select a particular row in the grid by default .
I was able to get the node id of that row by using the below code
var SelectDefaultRow = function findRowIndexUsingString(UsrId) {
var rowIndex = null;
$.each(oActiveUsersTable.fnGetData(), function (i, dtRow) {
if (dtRow.UserID == UsrId) {
rowIndex = i;
}
By i don't know who to select the row using this node id.
Thanks for guiding me
I have a "User list" data table loaded when my view loads, i want the program to select a particular row in the grid by default .
I was able to get the node id of that row by using the below code
var SelectDefaultRow = function findRowIndexUsingString(UsrId) {
var rowIndex = null;
$.each(oActiveUsersTable.fnGetData(), function (i, dtRow) {
if (dtRow.UserID == UsrId) {
rowIndex = i;
}
By i don't know who to select the row using this node id.
Thanks for guiding me
This discussion has been closed.