Hello,
i created a grid with multi-line footer according to this example:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/totals-in-grid-footers
and added an excel export according to this tutorial:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/overview
but opening the extracted xls file file i see footer data messed up with values concatenated in a single cell.
How to get a proper xls extraction?
Regards.
I am using RadListView and trying to bind the ItemTapped to my MVVM.
I can't seem to get this to work. I can't find any examples online either.
Thanks in advance.
Will
Hi, we are consdiering purchasing your UI for ASP.net packages.
I reviewed your ASP.net AJAX demo and came across the image editor control which seems like a control we would like to use and customize.
I saw there is an option to draw circles/rectangles, is there an option to edit their coordinates after they are drawn? is there an option to draw programmatically?
Thanks,
Oren
Hi Team,
Telerik radAsyncUpload is not working in google chrome once application host in server. But if I run application in local its working.
using IE its working in both.
Hi ,
We are using radgrid menu and we don't want users to un-check all columns from columns menu of context menu.
Is there a way to hide or stop user unchecking some columns of columns menu item?
I tried this below code:
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
{
if (e.Item.Value.Contains("Reference#") && e.Item.Controls.Count > 0)
(e.Item.Controls[0] as CheckBox).Enabled = false;
}
It will make readonly for that column option on first load, but once i un-check another column, it will get enabled for check/uncheck.
Is there any other way to achieve this?
Thanks
<
telerik:RadGrid
ID
=
"gvMembers"
runat
=
"server"
AutoGenerateColumns
=
"false"
OnNeedDataSource
=
"gvMembers_NeedDataSource"
AllowSorting
=
"true"
AllowPaging
=
"true"
PageSize
=
"10"
AllowAutomaticUpdates
=
"true"
AllowAutomaticInserts
=
"true"
AllowAutomaticDeletes
=
"true"
OnItemCreated
=
"gvMembers_ItemCreated"
OnItemInserted
=
"gvMembers_ItemInserted"
OnPreRender
=
"gvMembers_PreRender"
OnInsertCommand
=
"gvMembers_InsertCommand"
OnItemDataBound
=
"gvMembers_ItemDataBound"
OnUpdateCommand
=
"gvMembers_UpdateCommand"
OnDeleteCommand
=
"gvMembers_DeleteCommand"
>
<
HeaderStyle
CssClass
=
"GridHeader"
/>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
/>
<
MasterTableView
AutoGenerateColumns
=
"false"
DataKeyNames
=
"UserID"
CommandItemDisplay
=
"Top"
InsertItemPageIndexAction
=
"ShowItemOnCurrentPage"
>
<
Columns
>
<
telerik:GridEditCommandColumn
></
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"UserID"
HeaderText
=
"UserID"
ReadOnly
=
"true"
UniqueName
=
"UserID"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FirstName"
HeaderText
=
"First Name"
SortExpression
=
"FirstName"
UniqueName
=
"firstname"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FirstName"
HeaderText
=
"Last Name"
SortExpression
=
"LastName"
UniqueName
=
"lastname"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"UserName"
HeaderText
=
"User Name"
SortExpression
=
"UserName"
UniqueName
=
"username"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EmailAddress"
HeaderText
=
"Email"
SortExpression
=
"EmailAddress"
UniqueName
=
"email"
></
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumn"
HeaderText
=
"Role"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text='<%# DataBinder.Eval(Container.DataItem, "Role") %>'>
</
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:DropDownList
ID
=
"ddlRole"
runat
=
"server"
DataTextField
=
"Role1"
DataValueField
=
"RoleID"
></
asp:DropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete this Member?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"PushButton"
Text
=
"Delete"
CommandName
=
"Delete"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
I am using a stored procedure to to my updates and have this C# code:
protected void gvMembers_UpdateCommand(object sender, GridCommandEventArgs e)
{
var editableItem = ((GridEditableItem)e.Item);
var memberId = (int)editableItem.GetDataKeyValue("UserID");
int Role = 1;
CheckBox active = (CheckBox)editableItem["valid"].Controls[0];
Boolean bactive = Convert.ToBoolean(active);
string str = active.Text;
string strFirstName = (editableItem["firstname"].Controls[0] as TextBox).Text;
string strLastName = (editableItem["lastname"].Controls[0] as TextBox).Text;
string strUserName = (editableItem["username"].Controls[0] as TextBox).Text;
string strEmail = (editableItem["firstname"].Controls[0] as TextBox).Text;
try
{
//save chanages to Db
DbContext.AAHomicideLogMembersUpdate(memberId, Role, strFirstName, strLastName, strUserName, strEmail, active);
}
catch (System.Exception)
{
string srtt="Dosomething";
}
}
I get an error message when attempting to convert the checkbox value to a boolean value.
How can I accomplish this?