or
When editing numbers in a TreeListNumericColumn, some fractions are rounded down if the SQL data type is real. E.g. 1.4 shows up in read mode, but in edit mode it is 1.39. This does not happen with the RadGrid box. See the picture attached. It's a tree list and a rad grid - both using the same SQL data source.
Source code:
<
telerik:RadTreeList
runat
=
"server"
DataSourceID
=
"sql"
ParentDataKeyNames
=
"parent_id"
DataKeyNames
=
"id"
Caption
=
"TreeList"
EditMode
=
"InPlace"
>
<
Columns
>
<
telerik:TreeListEditCommandColumn
ShowAddButton
=
"false"
/>
</
Columns
>
</
telerik:RadTreeList
>
<
br
/><
br
/>
<
telerik:RadGrid
runat
=
"server"
DataSourceID
=
"sql"
AllowAutomaticUpdates
=
"true"
MasterTableView-Caption
=
"Grid"
>
<
MasterTableView
EditMode
=
"InPlace"
>
<
Columns
>
<
telerik:GridEditCommandColumn
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:SqlDataSource
runat
=
"server"
ID
=
"sql"
ConnectionString="<%$ ConnectionStrings:SqlDB%>" CancelSelectOnNullParameter="false"
SelectCommand="select 0 id, convert(real, 1.4000) real_value, convert(decimal(10,4), 1.4) decimal_value, null parent_id " />
Hi,
How to i load all the jpg and png files from specific folder into RadImageGallery from server side?
Thank You
Hi there,
I want to align the items to the left (see attachment).
Any idea?
Regards,
Marcel
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
/>
<
div
>
<
telerik:RadScriptBlock
>
<
script
type
=
"text/javascript"
>
function testButtonClicking(sender, args) {
var confirmed = confirm("Are you sure you want to postback?");
if (confirmed)
sender.click(); // I wouldn't think this would be neccesary?
else
args.set_cancel(true);
}
</
script
>
</
telerik:RadScriptBlock
>
<
telerik:RadButton
runat
=
"server"
ID
=
"TestButton"
Text
=
"Test Confirm"
ButtonType
=
"StandardButton"
OnClientClicking
=
"testButtonClicking"
OnClick
=
"TestButton_Click"
AutoPostBack
=
"true"
/>
</
div
>
</
form
>
protected
void
TestButton_Click(
object
sender, EventArgs e)
{
Page.Response.Write(
"posted back"
);
}