Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
bg #1
How to add client row click funciton on datagrid
is there anyone help me,
i want to add rowclick javascrip function on asp.net datagrid
what can i do this.
bgun
bg Guest
-
Datagrid double click
Hi I have 2 datagrids and I am trying to do the following: When the user click on a row in the first grid, it will call the web service to... -
DataGrid EditItemCommand : must click twice to make DataGrid Editable
Hey- I am having trouble with a simple datagrid example, and need some advice if anyone is knowledgable. It's really driving me batty! I've... -
whole Row in datagrid is sensitive on click
Hi, (C#, ASP.NET) I need to invoke server procedure when user click anywhere on data row in datagrid (datagrid has 6 columns). I need also know... -
running client side script after an <asp:ButtonColumn> click event
"z. f." wrote Get a reference to the delete button in the ItemCreated event of your datagrid, then use: btnDelete.Attributes.Add("onclick",... -
mail funciton
hope i am sending my problem to the right place recently installed PHP with Apache , on Windows 2000 paltform,,all is well, but cnat seem to get the... -
bg #2
Re: How to add client row click funciton on datagrid
Can you give me code snippet with doing by ItemDataBound
Thanks
"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:O3HM384sFHA.460@TK2MSFTNGP15.phx.gbl...> You need to add "onclick" Attribute to the grid items. You can do it in
> either ItemDataBound or PreRender event.
>
> Eliyahu
>
> "bg" <bg@bg.com> wrote in message
> news:enzpOu4sFHA.2540@TK2MSFTNGP09.phx.gbl...>>> is there anyone help me,
>> i want to add rowclick javascrip function on asp.net datagrid
>>
>> what can i do this.
>>
>> bgun
>>
>>
>
bg Guest
-
Eliyahu Goldin #3
Re: How to add client row click funciton on datagrid
You need to add "onclick" Attribute to the grid items. You can do it in
either ItemDataBound or PreRender event.
Eliyahu
"bg" <bg@bg.com> wrote in message
news:enzpOu4sFHA.2540@TK2MSFTNGP09.phx.gbl...> is there anyone help me,
> i want to add rowclick javascrip function on asp.net datagrid
>
> what can i do this.
>
> bgun
>
>
Eliyahu Goldin Guest
-
Eliyahu Goldin #4
Re: How to add client row click funciton on datagrid
private void dgSelection_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
// provide client-side selection a datagrid row upon clicking any place on
the row.
ListItemType itemType = e.Item.ItemType;
if ((itemType == ListItemType.Pager) ||
(itemType == ListItemType.Header) ||
(itemType == ListItemType.Footer))
{
return;
}
e.Item.Attributes["onclick"] = "onAlertsRowClick(this)";
}
Eliyahu
"bg" <bg@bg.com> wrote in message
news:OfXp0$4sFHA.3640@tk2msftngp13.phx.gbl...> Can you give me code snippet with doing by ItemDataBound
>
> Thanks
>
> "Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
> news:O3HM384sFHA.460@TK2MSFTNGP15.phx.gbl...>> > You need to add "onclick" Attribute to the grid items. You can do it in
> > either ItemDataBound or PreRender event.
> >
> > Eliyahu
> >
> > "bg" <bg@bg.com> wrote in message
> > news:enzpOu4sFHA.2540@TK2MSFTNGP09.phx.gbl...> >> >> is there anyone help me,
> >> i want to add rowclick javascrip function on asp.net datagrid
> >>
> >> what can i do this.
> >>
> >> bgun
> >>
> >>
> >
>
Eliyahu Goldin Guest
-
bg #5
Re: How to add client row click funciton on datagrid
Thanks a lot.
-----------------------
"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:%23kWNTL5sFHA.1448@TK2MSFTNGP10.phx.gbl...> private void dgSelection_ItemDataBound(object sender,
> System.Web.UI.WebControls.DataGridItemEventArgs e)
>
> {
>
> // provide client-side selection a datagrid row upon clicking any place on
> the row.
>
> ListItemType itemType = e.Item.ItemType;
>
> if ((itemType == ListItemType.Pager) ||
>
> (itemType == ListItemType.Header) ||
>
> (itemType == ListItemType.Footer))
>
> {
>
> return;
>
> }
>
> e.Item.Attributes["onclick"] = "onAlertsRowClick(this)";
>
> }
>
>
> Eliyahu
>
> "bg" <bg@bg.com> wrote in message
> news:OfXp0$4sFHA.3640@tk2msftngp13.phx.gbl...>>> Can you give me code snippet with doing by ItemDataBound
>>
>> Thanks
>>
>> "Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
>> news:O3HM384sFHA.460@TK2MSFTNGP15.phx.gbl...>>>> > You need to add "onclick" Attribute to the grid items. You can do it in
>> > either ItemDataBound or PreRender event.
>> >
>> > Eliyahu
>> >
>> > "bg" <bg@bg.com> wrote in message
>> > news:enzpOu4sFHA.2540@TK2MSFTNGP09.phx.gbl...
>> >> is there anyone help me,
>> >> i want to add rowclick javascrip function on asp.net datagrid
>> >>
>> >> what can i do this.
>> >>
>> >> bgun
>> >>
>> >>
>> >
>> >
>>
>
bg Guest
-
Ken Webster #6
Re: How to add client row click funciton on datagrid
A code example would be helpful. That's exactly what I've been trying to do
all afternoon!
"Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
news:O3HM384sFHA.460@TK2MSFTNGP15.phx.gbl...> You need to add "onclick" Attribute to the grid items. You can do it in
> either ItemDataBound or PreRender event.
>
> Eliyahu
>
> "bg" <bg@bg.com> wrote in message
> news:enzpOu4sFHA.2540@TK2MSFTNGP09.phx.gbl...>>> is there anyone help me,
>> i want to add rowclick javascrip function on asp.net datagrid
>>
>> what can i do this.
>>
>> bgun
>>
>>
>
Ken Webster Guest



Reply With Quote

