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

Button within a grid

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
fer
Top achievements
Rank 1
fer asked on 23 Mar 2010, 06:20 PM
Hi
,i have two problem.

first ;

i put a button within a grid's line like this
<MasterTableView TableLayout="Fixed" ClientDataKeyNames="Myid">

<ItemTemplate>

<asp:button ID="mybut" runat="server" Text="Mytext" OnClientClick="Myfunc()" />

</ItemTemplate>

</MasterTableView>
...


and put a javascript named Myfunc in my asp code.

all they ok.
but i want to retrieve the myid value of the record that belongs to the row that user clicked the button within Myfunc() script with client javascript

the second problem is

i open a Window with radopen in my script named Myfunc like this

radopen ("MySecondPage.Aspx", "Mywin")

on firefox it opens the window when user clicked the button wihin the row
and after closing the modal window it stays on the record which user clicked.

but on ie it goes to the top of the page.

i searched the forum all the answers are make the grid scrollable but i  dont want to do it scrollable.
isn't there another way ?.. and is there a bug or problem in telerik rad components ?..

best regards






1 Answer, 1 is accepted

Sort by
0
fer
Top achievements
Rank 1
answered on 24 Mar 2010, 03:51 PM
i solvd the first problem.

but scrolling problem still continues.
with firefox my code works as i want


after closing the radwindow the record which user clicked is visible on page
but with internet explorer after closing radwindow it goes to top of page and the record which user clicked is visible on somewhere bottom of page. the user must scroll to there again to see it
Tags
Grid
Asked by
fer
Top achievements
Rank 1
Answers by
fer
Top achievements
Rank 1
Share this question
or