Hello friends,
i have an issue here. as we know, checkbox's inside radgrid dont work properly(we have to put checkbox cell on edit mode, otherwise we cant update checkbox value unless we select the row first), so i made a simple js script + add an atribute to the checkbox to put it in edit mode with onmouseenter:
vb:
js:
aspx:
the issue is: this works wonderfull on chrome and firefox, but on internet explorer, this keeps bugging the state of the checkbox, after i changed it. its like, loosing the state on mouseout/disable celleditmode(??)
onmouseover also dont work on ie. can you guys help?
thanks in advance,
Mike
i have an issue here. as we know, checkbox's inside radgrid dont work properly(we have to put checkbox cell on edit mode, otherwise we cant update checkbox value unless we select the row first), so i made a simple js script + add an atribute to the checkbox to put it in edit mode with onmouseenter:
vb:
Dim
chk
As
CheckBox =
DirectCast
(item(
"BlockCheck"
).Controls(0), CheckBox)
chk.Enabled =
True
chk.Attributes.Add(
"onmouseenter"
,
"changeEditor(this)"
)
js:
function
changeEditor(sender) {
var
grid = $find(
"<%=RadGrid1.ClientID%>"
);
var
cell = Telerik.Web.UI.Grid.GetFirstParentByTagName(sender,
"td"
);
var
batchManager = grid.get_batchEditingManager();
grid.get_batchEditingManager().openCellForEdit(cell);
}aspx:
<
telerik:GridCheckBoxColumn
DataField
=
"BlockCheck"
UniqueName
=
"BlockCheck"
AutoPostBackOnFilter
=
"true"
>
<
HeaderStyle
ForeColor
=
"Black"
Width
=
"20%"
></
HeaderStyle
>
</
telerik:GridCheckBoxColumn
>
<
telerik:GridTemplateColumn
DataField
=
"BlockCheck"
Visible
=
"false"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"Cb1"
Checked='<%# Eval("BlockCheck")%>' runat="server"/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:CheckBox
ID
=
"Cb2"
Checked='<%# Bind("BlockCheck")%>' runat="server" />
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
the issue is: this works wonderfull on chrome and firefox, but on internet explorer, this keeps bugging the state of the checkbox, after i changed it. its like, loosing the state on mouseout/disable celleditmode(??)
onmouseover also dont work on ie. can you guys help?
thanks in advance,
Mike
11 Answers, 1 is accepted
0

MikeS
Top achievements
Rank 1
answered on 07 May 2014, 08:19 AM
anyone?
0

MikeS
Top achievements
Rank 1
answered on 08 May 2014, 08:13 AM
this issue is hard to explain... can anyone reproduce it with my snippets?
i think the code is fine, it is just a ie animations.
i think the code is fine, it is just a ie animations.
0

MikeS
Top achievements
Rank 1
answered on 08 May 2014, 08:46 AM
one more thing,
when i change one checkbox state, and mouseover over other checkbox and enable editing, the last checkbox changed "sets" his value and show that little red triangle, its when ie messes everything. :(
when i change one checkbox state, and mouseover over other checkbox and enable editing, the last checkbox changed "sets" his value and show that little red triangle, its when ie messes everything. :(
0
Accepted
Hello Mike,
Using the code and following the scenario I have assembled a sample website but was unable to replicate the problem. Could you please examine the attachment and tell us what differs in your case? Additionally please test it on your end and let us know of the results.
Regards,
Angel Petrov
Telerik
Using the code and following the scenario I have assembled a sample website but was unable to replicate the problem. Could you please examine the attachment and tell us what differs in your case? Additionally please test it on your end and let us know of the results.
Regards,
Angel Petrov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

MikeS
Top achievements
Rank 1
answered on 09 May 2014, 09:19 AM
Hello Angel Petrov
i took a look at your code and tried change my code in order to check if the problem disappears, but it does not.
still making those animations.
here some points:
i forgot to say that my page is ascx.
im testing on IE7
the only diference in codebehind is that i put the atribute on the RadGrid1_ItemCreated Sub.
Thanks in advance
i took a look at your code and tried change my code in order to check if the problem disappears, but it does not.
still making those animations.
here some points:
i forgot to say that my page is ascx.
im testing on IE7
the only diference in codebehind is that i put the atribute on the RadGrid1_ItemCreated Sub.
Thanks in advance
0

MikeS
Top achievements
Rank 1
answered on 09 May 2014, 11:10 AM
*IE11
0

MikeS
Top achievements
Rank 1
answered on 12 May 2014, 08:14 AM
anyone knows how to fix this?
0

MikeS
Top achievements
Rank 1
answered on 12 May 2014, 09:03 AM
i cant understand this behaviour.
it happens when cell enters edit mode, by
or selected row.
like, i select row 1 and CHECK the checkbox. then i select the next cell for edit, the previous looses "visually" its state of CHECKED to UNCHECKED, but it is only visually, because its value is TRUE... looks like it is unchecked but it is checked. and when i save changes, it works like it should.
as you can see this is not a good interface for the user. it only happens on IE11...
it happens when cell enters edit mode, by
grid.get_batchEditingManager().openCellForEdit(cell);
like, i select row 1 and CHECK the checkbox. then i select the next cell for edit, the previous looses "visually" its state of CHECKED to UNCHECKED, but it is only visually, because its value is TRUE... looks like it is unchecked but it is checked. and when i save changes, it works like it should.
as you can see this is not a good interface for the user. it only happens on IE11...
0

MikeS
Top achievements
Rank 1
answered on 13 May 2014, 10:46 AM
i got the problem, its because im editing in batchmode on grid. EditMode="Batch". if i dont set this property, IE dont make those strange animations. but in this case i want to use batch edit mode. anyone knows how to fix this?
thanks in advance
thanks in advance
0
Accepted
Hello Mike,
Follow the scenario I have modified the previously provided sample but was unable to observe any abnormalities. The functionality seems to be working correctly in all IE versions. Could you please let us know what are the differences between the test sample and the real application. Can you please share with us the entire page contents(markup and code-behind) so we could further investigate the matter?
Regards,
Angel Petrov
Telerik
Follow the scenario I have modified the previously provided sample but was unable to observe any abnormalities. The functionality seems to be working correctly in all IE versions. Could you please let us know what are the differences between the test sample and the real application. Can you please share with us the entire page contents(markup and code-behind) so we could further investigate the matter?
Regards,
Angel Petrov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

MikeS
Top achievements
Rank 1
answered on 14 May 2014, 08:38 AM
Hello Angel Petrov
I found the problem today, it was because of the IE emulation. somehow someone changed the document mode and that was the factor.
anyways, thanks for the help from you guys.
I found the problem today, it was because of the IE emulation. somehow someone changed the document mode and that was the factor.
anyways, thanks for the help from you guys.