Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir/Madam,

RadTreeList SelectedIndexChanged Event producing the previous value as Output

consider, In treeList, i have dataitems A-->977,B--->978, C--->979

If i select B-->978 means that will produce the o/p as A-->977
C#
protected void RadTreeList1_SelectedIndexChanged(object sender,EventArgs e)
        {
            
            foreach (TreeListDataItem grddt in RadTreeList1.SelectedItems)
            {
                int product_id = Convert.ToInt32(grddt.GetDataKeyValue("product_id"));

            }
            
        }

if i select the B means, it produce the result A.
I need to display if we A means A, B means B

How to do
Please Help me

Thanks in Advance
Posted
Updated 10-Feb-15 0:46am
v3
Comments
Tushar sangani 10-Feb-15 7:45am    
You select C value given 977 or 978 ?

1 solution

Hi Tusharsangani,
Try to get the index from event handler e. That is
VB
e.SelectedIndex
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900