GridButtonColumn btncol = new GridButtonColumn();
this.RadGrid1.MasterTableView.Columns.Add(btncol);
btncol.ButtonType = GridButtonColumnType.ImageButton;
btncol.HeaderStyle.Width = 10;
btncol.CommandName = "Delete";
btncol.Text = "delete";
btncol.UniqueName = "DeleteColumn";
btncol.CommandArgument = "Child";
btncol.ConfirmDialogType = GridConfirmDialogType.RadWindow;
btncol.ConfirmText = "Are You Sure Want To Delete This Record?";
btncol.ConfirmTitle = "Delete Confirm";
<%@ Assembly Name="SIMS.UI.UserControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc6fb793b8a12a45" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MaintainUserPermissions.ascx.cs"
Inherits="SIMS.UI.UserControls.Security.MaintainUserPermissions" EnableViewState="true" %>
<%@ Register TagPrefix="sims" TagName="DisplayMessageControl" Src="~/_Layouts/SIMSControls/Common/UserControls/DisplayMessageControl.ascx" %>
<%@ Register TagPrefix="sims" TagName="MessagePrompt" Src="~/_Layouts/SIMSControls/Common/UserControls/MessagePromptControl.ascx" %>
<
asp:ScriptManagerProxy
ID
=
"maintainUserPermissionsScriptManagerProxy"
runat
=
"server"
/>
<
div
>
<
asp:Panel
ID
=
"pnlUserPermissionsContainer"
runat
=
"server"
>
<
asp:UpdatePanel
ID
=
"mainUpdatePanel"
runat
=
"server"
UpdateMode
=
"Conditional"
>
<
ContentTemplate
>
<
asp:HiddenField
ID
=
"hfSiteRoleUserData"
runat
=
"server"
/>
<
asp:HiddenField
ID
=
"hfSiteModuleData"
runat
=
"server"
/>
<
asp:HiddenField
ID
=
"hfModuleRoleData"
runat
=
"server"
/>
<
asp:Panel
ID
=
"pnlMessageControl"
runat
=
"server"
Visible
=
"false"
>
<
sims:DisplayMessageControl
ID
=
"dmcMessageControl"
runat
=
"server"
Visible
=
"false"
/>
</
asp:Panel
>
<
table
width
=
"100%"
>
<
tr
>
<
td
style
=
"width: 25%; vertical-align: top"
>
<
asp:Label
ID
=
"lblUsers"
CssClass
=
"label"
Text
=
"Users"
runat
=
"server"
/><
br
/>
<
div
class
=
"rlbDiv"
>
<
telerik:RadListBox
Width
=
"100%"
ID
=
"rlbUsers"
runat
=
"server"
CheckBoxes
=
"true"
Skin
=
""
OnClientSelectedIndexChanged
=
"SelectedUserChanged"
OnClientItemChecked
=
"UserChecked"
/>
</
div
>
</
td
>
<
td
style
=
"width: 25%; vertical-align: top"
>
<
asp:Label
ID
=
"lblAgencies"
CssClass
=
"label"
Text
=
"Agencies"
runat
=
"server"
/><
br
/>
<
div
class
=
"rlbDiv"
>
<
telerik:RadListBox
Width
=
"100%"
ID
=
"rlbAgencies"
runat
=
"server"
CheckBoxes
=
"true"
Skin
=
""
OnClientSelectedIndexChanged
=
"SelectedAgencyChanged"
OnClientItemChecked
=
"AgencyChecked"
/>
</
div
>
</
td
>
<
td
style
=
"width: 25%; vertical-align: top"
>
<
asp:Label
ID
=
"lblModules"
CssClass
=
"label"
Text
=
"Modules"
runat
=
"server"
/><
br
/>
<
div
class
=
"rlbDiv"
>
<
telerik:RadListBox
Width
=
"100%"
ID
=
"rlbModules"
runat
=
"server"
CheckBoxes
=
"true"
Skin
=
""
OnClientSelectedIndexChanged
=
"SelectedModuleChanged"
OnClientItemChecked
=
"ModuleChecked"
/>
</
div
>
</
td
>
<
td
style
=
"width: 25%; vertical-align: top"
>
<
asp:Label
ID
=
"lblRoles"
CssClass
=
"label"
Text
=
"Roles"
runat
=
"server"
/><
br
/>
<
div
class
=
"rlbDiv"
>
<
telerik:RadListBox
Width
=
"100%"
ID
=
"rlbRoles"
runat
=
"server"
CheckBoxes
=
"true"
Skin
=
""
OnClientItemChecked
=
"RoleChecked"
/>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
style
=
"width:25%; vertical-align: top"
>
<
table
style
=
"width:100%; vertical-align: top"
>
<
tr
>
<
td
>
<
asp:TextBox
ID
=
"txtUserFilter"
runat
=
"server"
Text
=
"Search..."
ForeColor
=
"Gray"
onblur
=
"WaterMark(this, event);"
onfocus
=
"WaterMark(this, event);"
CssClass
=
"rlbTextbox"
/>
</
td
>
<
td
style
=
"width:5%"
>
<
asp:ImageButton
ID
=
"btnUserSearch"
runat
=
"server"
AlternateText
=
"Search..."
CommandName
=
"UserSearch"
CssClass
=
"button"
/>
</
td
>
</
tr
>
</
table
>
</
td
>
<
td
style
=
"width:25%; vertical-align: top"
>
<
table
style
=
"width:100%; vertical-align: top"
>
<
tr
>
<
td
>
<
asp:TextBox
ID
=
"txtAgencyFilter"
runat
=
"server"
Text
=
"Search..."
ForeColor
=
"Gray"
onblur
=
"WaterMark(this, event);"
onfocus
=
"WaterMark(this, event);"
CssClass
=
"rlbTextbox"
/>
</
td
>
<
td
style
=
"width:5%"
>
<
asp:ImageButton
ID
=
"btnAgencySearch"
runat
=
"server"
AlternateText
=
"Search..."
CommandName
=
"AgencySearch"
CssClass
=
"button"
/>
</
td
>
</
tr
>
</
table
>
</
td
>
<
td
></
td
>
<
td
></
td
>
</
tr
>
</
table
>
<
table
width
=
"100%"
>
<
tr
>
<%-- <
td
style
=
"width:50%; vertical-align: top;"
>
<
div
align
=
"left"
>
<
asp:Button
ID
=
"btnUserDetails"
runat
=
"server"
Text
=
"User Details"
CommandName
=
"Details"
CssClass
=
"button"
/>
</
div
>
</
td
>--%>
<
td
style
=
"width: 100%; vertical-align: top"
>
<
div
align
=
"right"
>
<
asp:Button
ID
=
"btnSave"
runat
=
"server"
Text
=
"Save"
CommandName
=
"Save"
CssClass
=
"button"
/>
<
asp:Button
ID
=
"btnCancel"
runat
=
"server"
Text
=
"Cancel"
CommandName
=
"Cancel"
CssClass
=
"button"
/>
<
asp:Button
ID
=
"btnDummy"
runat
=
"server"
CssClass
=
"button"
Style
=
"display: none"
/>
</
div
>
</
td
>
</
tr
>
</
table
>
<
div
style
=
"position: fixed; top: 0px; left: 0px;"
>
<
ajax:ModalPopupExtender
ID
=
"mpeDeleteConfirmMessagePrompt"
runat
=
"server"
TargetControlID
=
"btnDummy"
PopupControlID
=
"pnlDeleteConfirmMessagePrompt"
BackgroundCssClass
=
"modalBackground"
BehaviorID
=
"mpeDeleteConfirmMessagePrompt"
/>
<
asp:Panel
ID
=
"pnlDeleteConfirmMessagePrompt"
CssClass
=
"modalPopup"
Style="display: none;
width: auto"
runat
=
"server"
>
<
asp:UpdatePanel
ID
=
"pnlDeleteMessagePrompt"
runat
=
"server"
RenderMode
=
"Inline"
>
<
ContentTemplate
>
<
sims:MessagePrompt
ID
=
"ucDeleteConfirmMessagePrompt"
MessageText
=
"Are you sure you wish to remove all roles for this user, agency and module?"
runat
=
"server"
PopupControlID
=
"mpeDeleteConfirmMessagePrompt"
ActionText
=
"Yes"
ActionCommandName
=
"Yes"
CancelText
=
"No"
CancelCommandName
=
"No"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
asp:Panel
>
<
ajax:ModalPopupExtender
ID
=
"mpeAgencyDeleteConfirmMessagePrompt"
runat
=
"server"
TargetControlID
=
"btnDummy"
PopupControlID
=
"pnlAgencyDeleteConfirmMessagePrompt"
BackgroundCssClass
=
"modalBackground"
BehaviorID
=
"mpeAgencyDeleteConfirmMessagePrompt"
/>
<
asp:Panel
ID
=
"pnlAgencyDeleteConfirmMessagePrompt"
CssClass
=
"modalPopup"
Style="display: none;
width: auto"
runat
=
"server"
>
<
asp:UpdatePanel
ID
=
"pnlAgencyDeleteMessagePrompt"
runat
=
"server"
RenderMode
=
"Inline"
>
<
ContentTemplate
>
<
sims:MessagePrompt
ID
=
"ucAgencyDeleteConfirmMessagePrompt"
MessageText
=
"Are you sure you wish to remove all permissions for this user and agency?"
runat
=
"server"
PopupControlID
=
"mpeAgencyDeleteConfirmMessagePrompt"
ActionText
=
"Yes"
ActionCommandName
=
"Yes"
CancelText
=
"No"
CancelCommandName
=
"No"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
asp:Panel
>
<
ajax:ModalPopupExtender
ID
=
"mpeUserDeleteConfirmMessagePrompt"
runat
=
"server"
TargetControlID
=
"btnDummy"
PopupControlID
=
"pnlUserDeleteConfirmMessagePrompt"
BackgroundCssClass
=
"modalBackground"
BehaviorID
=
"mpeUserDeleteConfirmMessagePrompt"
/>
<
asp:Panel
ID
=
"pnlUserDeleteConfirmMessagePrompt"
CssClass
=
"modalPopup"
Style="display: none;
width: auto"
runat
=
"server"
>
<
asp:UpdatePanel
ID
=
"pnlUserDeleteMessagePrompt"
runat
=
"server"
RenderMode
=
"Inline"
>
<
ContentTemplate
>
<
sims:MessagePrompt
ID
=
"ucUserDeleteConfirmMessagePrompt"
MessageText
=
"Are you sure you wish to remove all permissions for this user?"
runat
=
"server"
PopupControlID
=
"mpeUserDeleteConfirmMessagePrompt"
ActionText
=
"Yes"
ActionCommandName
=
"Yes"
CancelText
=
"No"
CancelCommandName
=
"No"
/>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
asp:Panel
>
</
div
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
asp:Panel
>
</
div
>
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem editedItem = e.Item
as
GridEditableItem;
GridHTMLEditorColumnEditor editor = (GridHTMLEditorColumnEditor)editedItem.EditManager.GetColumnEditor(
"resourceValue"
);
editor.Editor.Content =
"my custom text"
;
}
}
Hi Team,
We are using Telerik ASP.net Ajax with 2010.1.415.0 build.
While testing on Firefox 4 (build 4.0.1) we are facing a problem in editor when image in editor is selected and click on image map Editor Button. Image map Editor get open but it does not show image in ‘Preview’ section.
Could you please let us know any workaround to resolve the same?
<
tlk:RadPane
ID
=
"m_oTopPane"
runat
=
"server"
Scrolling
=
"Both"
PanesBorderSize
=
"0"
>
<
asp:Panel
ID
=
"ConfPanel"
runat
=
"server"
Style
=
"visibility: hidden;"
>
<
tlk:RadTabStrip
ID
=
"m_oRadStrip"
runat
=
"server"
MultiPageID
=
"RadMultiPage1"
Orientation
=
"HorizontalTop"
SelectedIndex
=
"0"
Width
=
"840"
Style
=
"margin-left: 10px;"
>
<
Tabs
>
<
tlk:RadTab
runat
=
"server"
>
</
tlk:RadTab
>
<
tlk:RadTab
runat
=
"server"
>
</
tlk:RadTab
>
<
tlk:RadTab
runat
=
"server"
>
</
tlk:RadTab
>
</
Tabs
>
</
tlk:RadTabStrip
>
<
tlk:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
SelectedIndex
=
"0"
>
<
tlk:RadPageView
...>
</
tlk:RadPageView
/>
<
tlk:RadPageView
...>
</
tlk:RadPageView
/>
<
tlk:RadPageView
...>
</
tlk:RadPageView
/>
</
tlk:RadMultiPage
>
</
tlk:RadTabStrip
>
<
asp:Panel
>
</
tlk:RadPane
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"rgAMASM"
DataSourceID
=
"odsAMASM"
AllowPaging
=
"True"
GridLines
=
"None"
Skin
=
"Office2007"
AllowSorting
=
"True"
Height
=
"347px"
OnPageSizeChanged
=
"rgAMASM_PageSizeChanged"
OnColumnCreated
=
"rgAMASM_ColumnCreated"
>
<
ClientSettings
>
<
Selecting
AllowRowSelect
=
"True"
/>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
DataSourceID
=
"odsAMASM"
CommandItemDisplay
=
"Bottom"
DataKeyNames
=
"Asset_ID"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
ShowAddNewRecordButton
=
"False"
ShowRefreshButton
=
"False"
>
</
CommandItemSettings
>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
<
asp:ObjectDataSource
ID
=
"odsAMASM"
runat
=
"server"
SelectMethod
=
"WT_BROWSEAMASM"
TypeName
=
"WorkTech.WTLIB+WTDAL+Functions"
OnSelecting
=
"odsAMASM_Selecting"
OnSelected
=
"odsAMASM_Selected"
>
<
SelectParameters
>
<
asp:Parameter
Name
=
"uid"
Type
=
"Int32"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
Hi Telerik Team,
Before posting this issue, I tried search for similar issue here and tried. But couldn't solve our issue.
About our issue - (Which works fine in Firefox, but not working in IE8/9)
We are using Telerik RadGrid - which is displaying properly if there is NO vertical scrollbar. (Attachment - IE - With No Scrollbar.JPG)
If a vertical scroll-bar appears, the alignment between header and item goes wrong. (Attachment - IE.JPG)
This is displaying fine in Firefox - (Attachment - Firefox.JPG)
We noticed that if we resize the column width using mouse manually, entire alignment issue vanishes!! (Attachment - IE - Resizing.JPG & IE - After Resize.JPG)
I believe this explanation & screen-shots make sense.
This issue really kills the appearance of Telerik RadGrid and we are not satisfied with it - We tried a lot to fix it.
Finally we found that we are using on javascript to resize Grid's height & width based on the browser's width & height. That was causing this issue. When we commented the javascript code to set the grid's width, I think this issue is solved.
After posting the question for help only, we found this solution!!
Let us test this issue and will be back, if we have any issues.
Thanks
Steve