Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views

I dynamically bind radgrid delete ,
Binding like that ,
confirmation message all the things come
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";

Error Come Like when i click ok button confirm Dialog

 Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Replay soon Very Urgent
Waiting For Ur replay

Thanks,
Mohamed.
Iana Tsolova
Telerik team
 answered on 15 Jun 2011
1 answer
115 views
Hi,

I get the problem shown in the attached image with Window XP and IE7. It works fine otherwise. Can anyone identify the cause? I have put the html of the user control containing the list box below.

Thanks.

<%@ 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>
Genady Sergeev
Telerik team
 answered on 15 Jun 2011
2 answers
104 views
I'd like to customize the text displayed by the GridHTMLEditorColumnEditor ; I tried that but the content remains empty (the resourceValue column is bound only in the ItemDataBound event):

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";             
            }
        }

jc mag
Top achievements
Rank 1
 answered on 15 Jun 2011
1 answer
66 views

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?


Thank you in advance.
Rumen
Telerik team
 answered on 15 Jun 2011
2 answers
113 views

Hello,

when i load my page, all the pageviews are displayed. I need to click on each tab to obtain the normal display (only the selected pageview).
I precise that it works great on FF but not on IE8

Have you an idea ?
Aurore


Here's the schema of my architecture :
<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>

I set this on web.config
        <add key="Telerik.Skin" value="Sphinx"/>
        <add key="Telerik.EnableEmbeddedSkins" value="false"/>

I use the 2010.3.1317.35 dll version
Dimitar Terziev
Telerik team
 answered on 15 Jun 2011
5 answers
68 views
Hello,

my trees are very dynamic an so it takes a lot of time to generate them node by node,
level by level.

So my Question is, if it is possible to return a complete part of a tree with all its subnotes in one step.
I think I've to return a Treenode-object not a TreenodeData-object. Have'nt I?

Best regards.
Nikolay Tsenkov
Telerik team
 answered on 15 Jun 2011
1 answer
107 views
When I group a RadGrid from the context menu, the headers all become slightly smaller than the data portion of the columns they are associated with.  The result of this is that a white rectangle appears on the right hand side of the Header Bar.  I have included the html for the grid below and included an attached file containing the image of the event happening.  

I imagine this is something I can rectify by overriding the style for headers when the grouping is applied (Add a pixel or 2 to the RadGrid grouped header border style) but I would like to know if there is something that I should be doing that is more natural to the control itself

<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>

Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
237 views

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


Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
35 views
hi,
i have column without fieldName with itemtemplate that display text by another field, and i want to enable sorting this column by the display text. is it imposible?
thanks.
Pavel
Telerik team
 answered on 15 Jun 2011
4 answers
174 views
Hi all,

I need some help. We need to apply the selected SharePoint 2010 skin to each RadControl used in our Silverlight application and also used in our webparts.

Is there any way to handle this?

Best regards,
Ralf
Ralf
Top achievements
Rank 1
 answered on 15 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?