$(
"input[Validators]"
).each(
function
() {
var
validators = $(
this
).attr(
"Validators"
);
if
(validators) {
var
isValid =
true
;
$(validators).each(
function
() {
if
(
this
.isvalid !==
true
) isValid =
false
;
});
//This works:
var
strColor=isValid?
"#fff"
:
"#cc0000"
;
$(
this
).css(
"color"
, strColor);
//This does not:
if
(isValid) $(
this
).removeClass(
"ValidationError"
);
else
$(
this
).addClass(
"ValidationError"
);
}
});
Visual Studio Version : 2008.
Editor Version : 2009.02.0826.35
Issue Description : Content inside RAD Editor does not get affected by selecting ZOOM level from the toolbar in Mozilla Firefox which works well in IE 7 & 8. For that please find attachment [zoom.png] in which you can clearly rectify the problem.
Kindly guide asap for the same.
Thanks.
<
telerik:RadComboBox
ID
=
"ddlLineNum"
runat
=
"server"
DataValueField
=
"all_line_id"
DataTextField
=
"line_number"
Width
=
"250px"
Skin
=
"Windows7"
HighlightTemplatedItems
=
"True"
DropDownWidth
=
"290px"
AutoPostBack
=
"True"
>
<
ItemTemplate
>
<
table
border
=
"0"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
style
=
"width: 75px;"
>
<%#DataBinder.Eval(Container.DataItem, "line_number")%>
</
td
>
<
td
style
=
"width: 200px; padding-left: 5px;"
>
<%#DataBinder.Eval(Container.DataItem, "line_description")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
I'm creating my first Visual Web Part project with Visual Studio 2010 (C#). The purpose of this simple project is to become better aquainted with the RadGrid control. There are basically two parts to it:
1. Add RadGrid control and bind to datasource using C#. The RadGrid has an edit and delete column.
2. Add a RadTextBox control to display the captured content of a specific cell when I click on the update option when editing the record.
Part 1 is pretty straightforward and seems to work fine. Here is the code that I run upon page load:
private
void
bindGrid(RadGrid grid)
{
string
qry =
"SELECT Recipient, Email FROM Table1"
;
SqlConnection conn =
new
SqlConnection(connection
string
);
SqlCommand cmd =
new
SqlCommand(qry, conn);
SqlDataAdapter adapter =
new
SqlDataAdapter(cmd);
DataTable recipients =
new
DataTable();
try
{
conn.Open();
adapter.Fill(recipients);
}
catch
(Exception ex)
{
}
finally
{
grid.DataSource = recipients;
grid.DataBind();
conn.Close();
}
}
protected
void
Update_Command(
object
sender, GridCommandEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem dataItem = e.Item
as
GridDataItem;
RadTextBox1.Text = dataItem[
"recipient"
].Text.ToString();
}
else
if
(e.Item
is
GridEditFormItem)
{
}
}
Instead of getting the persons name displayed in the cell, all I get is " "; I've tried this several different ways, even using
the NeedDataSource method. The result is always the same.
Out of curiousity I counted the columns in the RadGrid immediately after binding with RadGrid1.columns.count and get 0. So the RadGrid displays the data from the datasource properly on page load, but I can't seem to access any of that data.
I can't figure this out and any guidance would be greatly appreciated.