Skip to Content
author's profile photo Former Member
Former Member

Search Cell Values in iGrid and retrieving row values

Hi,

i want to retrieve particular row value in iGrid by making search for particular cell value. for example

name no

==== ==

S1 1

S2 2

i want to retrieve all cell values for S2. but i dont know S2 row number and its also not selected row. without any selection i want pass S2 name into iGrid and want to retrieve no 2. how to do it?

-senthil

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 01:20 PM

    hi,

    Try following thing

    var gObj = document.GridName.getGridObject();
    var count = gObj.getRowCount();
    var result;
    for(i=1; i<=count; i++)
    {
    	var check = gObj.getCellValue(i,1);
    	if (check == "S2")
    	{
    		result= gOBJ.getCellValue(i,2);
    	}
    	
    }

    Here, "result" will store the value 2.

    Hope this helps.

    Regards,

    Musarrat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.