This is a migrated thread and some comments may be shown as answers.

databinding inside an user control of insert mode in radgrid

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
saravanan k
Top achievements
Rank 1
saravanan k asked on 03 Apr 2010, 12:45 PM
Hi all,

        i am using a radgrid with two different usercontrols for insert and edit mode. 

    in my insert mode usercontrol i have 2 drop downs which i bind from the code behind using my business logic. i am doing this in the pageload method of the usecontrol.ascx.cs. due to this i am getting repetitive entries for each postback.

i tried giving the logic inside
if (!page.isPostback) loop.

but it is not at all hitting the loop. this is because the first load of the usercontrol page itself is a postback from the grids command item template.. i agree.. but how to avoid the repetition? where should i put my logic to bind the drop downs? or is there any other conditional check needs to be done before bunding..

i am new to telerik controls. please help..

Regards,
Saravanan K

1 Answer, 1 is accepted

Sort by
0
saravanan k
Top achievements
Rank 1
answered on 03 Apr 2010, 02:16 PM
i wrote the logic inside data_binding methods..
Tags
Grid
Asked by
saravanan k
Top achievements
Rank 1
Answers by
saravanan k
Top achievements
Rank 1
Share this question
or