<
telerik:RadScriptManager ID="RadScriptManager1" runat="server" AjaxFrameworkMode="Enabled" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="myGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="myGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
<
telerik:RadGrid ID="myGrid" runat="server" AutoGenerateColumns="False"
AllowSorting="True" AllowPaging="True" AllowCustomPaging="True" PageSize="5"
AllowFilteringByColumn="True" OnDataBinding="myGrid_DataBinding" OnPageIndexChanged="myGrid_PageIndexChanged"
OnSortCommand="myGrid_SortCommand" CellSpacing="0"
GridLines="None" EnableAjaxSkinRendering="False"
onneeddatasource="myGrid_NeedDataSource">
Hi Everyone,
I am trying to implement item level security in my application and i
have run into an issue wherein i wish to hide a few of the controls in
my grid view. Below are the complete details of my scenario,
I have list named as States which contains the following data
According the SharePoint object model when i try to fetch all the
records, i get the data as per my requirement i.e. Adam is only able to
view Washington and Charles is only able to view New York.
Now this data is shown in the gridview which has view,edit buttons against it.
i wish to trim these buttons according to the permissions of the user on the list items. Kindly let me know if there is a way to do it.
I was curious to know whether anyone has knowledge of what does SPSecurityTrimmedControl.PermissionContext
property do? Does it apply security triming based on the current list
item permission, if so how does it do it. please provide a sample
Regards,
Abhijit Narvekar
I have a RadDatePicker and a regular button to generate a postback on my page.
My RadDatePicker is configured so that the DisplayDateFormat of the DateInput is "MMMM, yyyy" which shows month and year when the control does not have focus - which is key to the problem described below.
First, I select a date via the picker, say "23/01/2009"... the box properly displays "January, 2009"...
Next I click the button which performs a postback.
Now with our 2010.1.519.35 version of the Telerik.Web.UI.dll nothing special happens: the date stays '23/01/2009'.
However, with our 2011.1.315.40 version the date changes to "05/01/2009". It appears that the display text is being parsed upon postback (so 'January, 2009' becomes 05/01/2009 because it uses 05 from the current date 05/03/2012).
Also, when the RadDatePicker is set to AutoPostBack='true' (or when pressing return inside the date field) this does not affect the date like the button does.
I cannot believe this is intended, is it?
<telerik:RadGrid ID="RadGrid2" runat="server" AllowMultiRowSelection="true" Width="300px" OnNeedDataSource="RadGrid2_NeedDataSource" OnInsertCommand="RadGrid2_InsertCommand" OnItemCreated="RadGrid2_ItemCreated"> <MasterTableView AutoGenerateColumns="False" DataKeyNames="codigo" CommandItemDisplay="Top" EditMode="InPlace"> <Columns> <telerik:GridTemplateColumn> <ItemTemplate> <asp:CheckBox runat="server" ID="CheckBox1" /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn HeaderText="Código" DataField="codigo" UniqueName="codigo" ReadOnly="true" Display="true" ColumnEditorID="GridTextBoxColumnEditor1" /> <telerik:GridBoundColumn HeaderText="Descrição" DataField="descricao" UniqueName="descricao" ColumnEditorID="GridTextBoxColumnEditor1" /> </Columns> </MasterTableView> <ClientSettings> <ClientEvents OnRowDblClick="RowDblClick" /> </ClientSettings></telerik:RadGrid><telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="180px" />protected void btnEditar_Click(object sender, EventArgs e){ // what should i do here? ...}protected void RadGrid2_ItemCreated(object sender, GridItemEventArgs e){ if (e.Item is GridCommandItem) { e.Item.FindControl("RefreshButton").Visible = false; e.Item.FindControl("RebindGridButton").Visible = false; }}protected void RadGrid2_NeedDataSource(object sender, GridNeedDataSourceEventArgs e){ // Atribui dados a grid. RadGrid2.DataSource = this.GridSource; this.GridSource.PrimaryKey = new DataColumn[] { this.GridSource.Columns["codigo"] };}public class ImageManager : HtmlGenericControl { public RadContextMenu ContextMenu { get; set; }...}var menuObjX = document.getElementById("xxxxxxxxxxxx");