469,917 Members | 1,709 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

datagrid checkbox events

hiya,

I have got a checkbox in one of my cells in the ediit
item template. Now i need to enable/disable a
textbox in another boundcolumn.

the problem i am facing is the checkchanged event is not
raised or for some reason, the control does not enter the
function. I have made the function as protected and
specified the function name in the html for the checkbox
but i still do not get an event.

is this possible, what is wrong here

fred
Nov 18 '05 #1
5 6549
Checkchanged event doesn't cause postback, it is raised if the checkbox
value changed between postbacks.

Eliyahu

"fred" <an*******@discussions.microsoft.com> wrote in message
news:25*****************************@phx.gbl...
hiya,

I have got a checkbox in one of my cells in the ediit
item template. Now i need to enable/disable a
textbox in another boundcolumn.

the problem i am facing is the checkchanged event is not
raised or for some reason, the control does not enter the
function. I have made the function as protected and
specified the function name in the html for the checkbox
but i still do not get an event.

is this possible, what is wrong here

fred

Nov 18 '05 #2

eliyahu,

How can i enable/disable the textbox in my boundcolumn
from a control in another column

thanks for your help

-----Original Message-----
Checkchanged event doesn't cause postback, it is raised if the checkboxvalue changed between postbacks.

Eliyahu

"fred" <an*******@discussions.microsoft.com> wrote in messagenews:25*****************************@phx.gbl...
hiya,

I have got a checkbox in one of my cells in the ediit
item template. Now i need to enable/disable a
textbox in another boundcolumn.

the problem i am facing is the checkchanged event is not raised or for some reason, the control does not enter the function. I have made the function as protected and
specified the function name in the html for the checkbox but i still do not get an event.

is this possible, what is wrong here

fred

.

Nov 18 '05 #3
Do you mean you have a checkbox in one column and want to enable/disable a
textbox in another? If it's the case, I recommend doing it on client side
with a javascript function. Add a client-side onclick event to the checkbox.
In the event handler function find and enable/disable the textbox. This is
the fastest solution, no round trips involved. There is a number of things
you have to know though. To add a client-side event handler use Attributes
properties of the checkbox. Do it for every data row in the grid's
ItemDataBound event handler. Good luck.

Eliyahu

"fred" <an*******@discussions.microsoft.com> wrote in message
news:25*****************************@phx.gbl...

eliyahu,

How can i enable/disable the textbox in my boundcolumn
from a control in another column

thanks for your help

-----Original Message-----
Checkchanged event doesn't cause postback, it is raised

if the checkbox
value changed between postbacks.

Eliyahu

"fred" <an*******@discussions.microsoft.com> wrote in

message
news:25*****************************@phx.gbl...
hiya,

I have got a checkbox in one of my cells in the ediit
item template. Now i need to enable/disable a
textbox in another boundcolumn.

the problem i am facing is the checkchanged event is not raised or for some reason, the control does not enter the function. I have made the function as protected and
specified the function name in the html for the checkbox but i still do not get an event.

is this possible, what is wrong here

fred

.

Nov 18 '05 #4

Eliyahu,

I seem to abe able to get an event on the checkbox when
I set AutoPostBack to true and I can have the logic for
enable/disable in the event.
Fred
-----Original Message-----
Do you mean you have a checkbox in one column and want to enable/disable atextbox in another? If it's the case, I recommend doing it on client sidewith a javascript function. Add a client-side onclick event to the checkbox.In the event handler function find and enable/disable the textbox. This isthe fastest solution, no round trips involved. There is a number of thingsyou have to know though. To add a client-side event handler use Attributesproperties of the checkbox. Do it for every data row in the grid'sItemDataBound event handler. Good luck.

Eliyahu

"fred" <an*******@discussions.microsoft.com> wrote in messagenews:25*****************************@phx.gbl...

eliyahu,

How can i enable/disable the textbox in my boundcolumn
from a control in another column

thanks for your help

>-----Original Message-----
>Checkchanged event doesn't cause postback, it is raised
if the checkbox
>value changed between postbacks.
>
>Eliyahu
>
>"fred" <an*******@discussions.microsoft.com> wrote in

message
>news:25*****************************@phx.gbl...
>> hiya,
>>
>> I have got a checkbox in one of my cells in the
ediit >> item template. Now i need to enable/disable a
>> textbox in another boundcolumn.
>>
>> the problem i am facing is the checkchanged event

is not
>> raised or for some reason, the control does not
enter the
>> function. I have made the function as protected and
>> specified the function name in the html for the

checkbox
>> but i still do not get an event.
>>
>> is this possible, what is wrong here
>>
>> fred
>
>
>.
>

.

Nov 18 '05 #5
Fred,

That is fine for the quick start. My experience with ASP.NET also started
from 99% of code on the server side. Now the percentage is much less because
of dramatic performance improve that you gain by eliminating unnecessary
round trips.

Eliyahu

"Fred" <an*******@discussions.microsoft.com> wrote in message
news:26*****************************@phx.gbl...

Eliyahu,

I seem to abe able to get an event on the checkbox when
I set AutoPostBack to true and I can have the logic for
enable/disable in the event.
Fred
-----Original Message-----
Do you mean you have a checkbox in one column and want

to enable/disable a
textbox in another? If it's the case, I recommend doing

it on client side
with a javascript function. Add a client-side onclick

event to the checkbox.
In the event handler function find and enable/disable

the textbox. This is
the fastest solution, no round trips involved. There is

a number of things
you have to know though. To add a client-side event

handler use Attributes
properties of the checkbox. Do it for every data row in

the grid's
ItemDataBound event handler. Good luck.

Eliyahu

"fred" <an*******@discussions.microsoft.com> wrote in

message
news:25*****************************@phx.gbl...

eliyahu,

How can i enable/disable the textbox in my boundcolumn
from a control in another column

thanks for your help


>-----Original Message-----
>Checkchanged event doesn't cause postback, it is raised if the checkbox
>value changed between postbacks.
>
>Eliyahu
>
>"fred" <an*******@discussions.microsoft.com> wrote in
message
>news:25*****************************@phx.gbl...
>> hiya,
>>
>> I have got a checkbox in one of my cells in the ediit >> item template. Now i need to enable/disable a
>> textbox in another boundcolumn.
>>
>> the problem i am facing is the checkchanged event is not
>> raised or for some reason, the control does not enter the
>> function. I have made the function as protected and
>> specified the function name in the html for the
checkbox
>> but i still do not get an event.
>>
>> is this possible, what is wrong here
>>
>> fred
>
>
>.
>

.

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Stephen | last post: by
4 posts views Thread by Jim Heavey | last post: by
7 posts views Thread by Lars Netzel | last post: by
2 posts views Thread by Luis Esteban Valencia | last post: by
2 posts views Thread by Luis Esteban Valencia Muñoz | last post: by
17 posts views Thread by Mike Fellows | last post: by
3 posts views Thread by Fao, Sean | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.