Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
178 views
Hello,

I need help on Drag and Drop feature for RadGrid, Please is the my requirement.

 

We have 140 columns in a table, we need to show them in RadGrid based on the user choice by dragging from RadListBox.

 

We need to have a accessibility to drag columns from RadListBox to RadGrid to show selected columns and also drag column from RadGrid to RadListBox to hide columns from Grid.

 

I have achieved to show selected column from RadListBox but I donot have idea to hide columns based on dragging from RadGrid to RadListBox, Please help me on this.

 

Thanks,

Kiran

Pavlina
Telerik team
 answered on 30 Oct 2012
4 answers
60 views
I have an annoying problem that I would like to see if it can be reproduced. For every Radcombobox I add to a page, IE8 will add a click sound. So 5 rcbs, 5 click sounds on pageload/postback. The number of clicks is not easy to count until I turn on my debug bar which slows down the script firing process. I have a modal search window with 10 radcomboboxes, so every postback I can clearly hear 10 clicks. I would post code, but I can easily create the problem by just creating a page and start adding comboboxes to it. I have seen this behavior talked about in relation to iFrames in IE. I do not get this behavior when viewing demos on the Telerik site, although I am not sure what type of skullduggery is in the code on those pages.

I am using Telerik.Web.UI, v.2012.3.1016.35. This is for an external site so syaing "just use Chrome" will not help.

Please Help. Thanks.
Mark
Top achievements
Rank 1
 answered on 30 Oct 2012
4 answers
175 views
I had a problem with the script and style managers. My web site uses a separate box to handle SSL, so when requests get to my servers, they are always http. So the managers use http to access the CDN, However, if the requested page is actually secure, this cause mixed content warnings and failed pages.
However, this is not ideal. I would rather not have to hard-code your cdn urls in my app. It would be nice to have a property so I could tell the managers that they need to access the secure urls, even when the web server is handling an insecure request.

I resolved this by setting the BaseUrl property to the secure address

    CdnSettings-BaseUrl="https://d35islomi5rx1v.cloudfront.net"

However, this is not ideal. I would rather not have to hard-code your cdn urls in my app. It would be nice to have a property so I could tell the managers that they need to access the secure urls, even when the web server is handling an insecure request.
Gary Davis
Top achievements
Rank 2
 answered on 30 Oct 2012
1 answer
62 views
I am new to ListView and looking for some initial guidance on technical approach for the following:

I hav a list of items displayed from a SQL datasource. The user has only one editing need, namely select yes or no via checkox.

I would like to present this list so that all list items are editable (the checkbox) without any action on the part of the user. I understand I need to build a list of "editindexes" after the dataset is filled. (I have an example picked up here, but it is in C and I only understand VB)

If I get those checkboxes to be editable, what is my next step in being able to respond to the user's selections?

Since the controls are databound, I am thinking that there would be an event on each checkbox selection that might be appropriate, or that all the boxes would be processed if I added a Save button and did something to commit the changes back to the database.

As you can see, this is my first venture into editable datasets and databinding, and just need to pointers on where & how to proceed.
Eyup
Telerik team
 answered on 30 Oct 2012
4 answers
225 views
I'm having an issue retrieving the type of a control if it is a Combobox.  All other control types work fine but the combobox always gets reported back to me as type "text".  Here is some trimmed down, generic code that will illustrate what I am trying to do.  This javascript is placed in a shared JS file that is executed on every page and will be invoked any time a person presses down or enter on their keyboard.
 
document.onkeydown = function (e) {
     e = e || window.event;
     if (typeof e != 'undefined') {
         var tgt = e.target || e.srcElement;
 
        // If the keypress was ENTER (13) or DOWN (40)
         if (e.keyCode == 13 || e.keyCode == 40) {
             // Determine which element we're currently on
             currentField = e.target;
              alert(currentField.type);
         }
   }
}

Thanks in advance.
Kalina
Telerik team
 answered on 30 Oct 2012
2 answers
208 views
We previously used the following in a ToolsFile.xml to allow users to change the current paragraph to a blockquote.

<paragraphs>
    <paragraph name="<blockquote>Block Quote (Full)</blockquote>" value="<blockquote>" />
    <paragraph name="<blockquote class='floatright'>Block Quote (Float Right)</blockquote>" value="<blockquote class='floatright'>" />
    <paragraph name="<blockquote class='floatright'>Block Quote (Float Left)</blockquote>" value="<blockquote class='floatleft'>" />
</paragraphs>

We're moving everything over to format sets in a new ToolsFile.xml. I thought the following would work, but the blockquote options do not appear in the format sets drop-down when a paragraph is selected.

<formatSets>
    <formatSet tag="blockquote" title="<blockquote>Block Quote (Full)</blockquote>" />
    <formatSet tag="blockquote" title="<blockquote>Block Quote (Float Right)</blockquote>">
        <attributes>
            <item name="class" value="floatright" />
        </attributes>
    </formatSet>
    <formatSet tag="blockquote" title="<blockquote>Block Quote (Float Left)</blockquote>">
        <attributes>
            <item name="class" value="floatleft" />
        </attributes>
    </formatSet>
</formatSets>

Is there a way to allow users to change a paragraph to a blockquote using RadEditor?
Rob
Top achievements
Rank 1
 answered on 30 Oct 2012
3 answers
87 views
Hi everyone
I have a question related to copy and paste cell values in a RadGrid.
Is it possible to implement the functionality of Excel?, where user can select cell and drag mouse down to desired row, and value of the first row is copied to all selected rows (drag and repeat values down).

Thanks.
Kostadin
Telerik team
 answered on 30 Oct 2012
3 answers
393 views
Hi ,
             
I'm using Rad Grid and i assigned data table as data source for RadGrid on my project. i need to freeze the Rad Grid first 2 rows excluding Headers. I need solution for this urgent.... help me out on this...

    DataTable dT = HtmlTableParser.ParseTable(pvt);
    MainGrid2.DataSource = dT;
            MainGrid2.DataBind();

Column 0

Column 1

Column 2

Column 3

Column 4

 

2007

2008

2009

2010

Header Value

Capital Exp

Capital Exp

Capital Exp

Capital Exp

Akron

16205.00

2661.00

2215.00

0.00

Allen

0

0

1342.00

1672.00

Alpharetta I

0.00

0.00

0.00

0.00



i need to freeze these Red colored data in this RadGrid.

Column 0

Column 1

Column 2

Column 3

Column 4

this is Header for this Grid. others are data which i get from Data Table. i need to Freeze only the first two rows of the above data table.

I need the solution as soon as possible.

thanks in advance,
Alexis.
Kostadin
Telerik team
 answered on 30 Oct 2012
2 answers
309 views
I have been using a 2012 Q2 release for a good while and have been using the Org Chart. With the Q3 update, I noticed it was now possible to get the node or item ID from client side javascript code (the Edit Employees demo). I've updated my Telerik version to the latest stable Q3 (2012.3.1016) and am getting javascript errors on page load. The error is as follows:

Uncaught TypeError: Cannot read property 'groupItems' of undefined                      ScriptResource.axd:774

I have copied the client side code exactly from the demo for showing/hiding the context menu. The following lines fail with an error (most likely due to the initial error):
var item = org._extractGroupItemFromDomElement(target);
var node = org._extractNodeFromDomElement(target);

The error for these two lines is:
Uncaught TypeError: Cannot read property 'nodes' of undefined                        ScriptResource.axd:788

Here is my definition of the Org Chart in the ASPX file:
<telerik:RadOrgChart ID="RadOrgChart1" runat="server" EnableDragAndDrop="True" OnGroupItemDrop="RadOrgChart1OnGroupItemDrop"
    OnNodeDrop="RadOrgChart1OnNodeDrop" DisableDefaultImage="True" GroupColumnCount="2">
    <GroupEnabledBinding>
        <NodeBindingSettings DataFieldID="TeamID" DataFieldParentID="ReportsTo" DataSourceID="TeamDataSource"/>
        <GroupItemBindingSettings DataFieldID="StaffID" DataFieldNodeID="TeamID" DataTextField="Name" DataSourceID="StaffDataSource"/>
    </GroupEnabledBinding>
    <RenderedFields>
        <NodeFields>
            <telerik:OrgChartRenderedField DataField="TeamName"/>
        </NodeFields>
    </RenderedFields>
    <ItemTemplate>
        <span><%#DataBinder.Eval(Container.DataItem, "Name")%></span>
        <br />
        <span><%#DataBinder.Eval(Container.DataItem, "IsSupervisor").ToString() == "True" ? "Supervisor" : ""%></span>
    </ItemTemplate>
</telerik:RadOrgChart>


Additionally, I should mention I am using the .NET 3.5 assemblies as this org chart is being hosted on a SharePoint 2010 Application Page. I am also using an AjaxManager to ajaxify the org chart based on various controls on the page. However, the same issue happens without the org chart being ajax enabled.


************EDIT: This is easily reproduced by having grouping enabled with two or more groups that do not have a parent set (so two groups that are not linked hierarchically, they are at the same level with no children or parents). Because of the initial error, dragging and dropping is broken and cannot be used to establish a hierarchical definition and thereby fixing the issue.
Kyle Smith
Top achievements
Rank 1
 answered on 30 Oct 2012
0 answers
186 views
Hi!.
I have the following scenario

- Master Page
- Content Page.

In Content Page I Have a Grid
This grid contains a ImageButton "Assume".. When the Admin click on "Assume"  (captura1.png)--> The app execute some actions an assume the user selected and redirect to main page. (captura1.png)

I need show loading panel while this actions and redirect are executing.

I try to use RequestStart and ResponseEnd but doesn't work...

Here is my code:


Content Page:

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="/UI/Style/Admin/Admin.css" rel="stylesheet" type="text/css" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
      
            function loadAssume(UserId) {
                document.getElementById("<%= hfUserId.ClientID %>").value = UserId;
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Asumme");
            }

           
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadCodeBlock runat="server">
    </telerik:RadCodeBlock>
    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadginPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnDelete">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadginPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="gbcbtnDelete">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadginPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
           
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <UC:header runat="server" ID="headerPage" />
    <div id="containerSubWHelp">
        <asp:HiddenField ID="hfUserId" runat="server" />
        <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="UserGrid_NeedDataSource"
            OnUpdateCommand="UserGrid_UpdateCommand" OnInsertCommand="UserGrid_InsertCommand"
            AutoGenerateColumns="False" OnItemCommand="UserGrid_ItemCommand" OnPreRender="UserGrid_PreRender"
            OnItemCreated="UserGrid_ItemCreated" OnDeleteCommand="UserGrid_DeleteCommand"
            OnItemDataBound="UserGrid_ItemDataBound">
            <MasterTableView DataKeyNames="Id,IsScanUploadUser">
                <Columns>
                    <telerik:GridClientSelectColumn CommandName="Select" UniqueName="Select" HeaderStyle-Width="28px"
                        Resizable="false" Reorderable="false">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridTemplateColumn UniqueName="IsActive" DataField="IsActive" Reorderable="false"
                        HeaderStyle-Width="55px" AllowFiltering="true" Resizable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="ActiveIcon" runat="server" CommandName="Active"></asp:ImageButton>
                            <asp:CheckBox ID="lblIsActive" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem,"IsActive") is DBNull ?false:Eval("IsActive")) %>'
                                Visible="false" />
                                <asp:CheckBox ID="IsScanUploadUser" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem,"IsScanUploadUser") is DBNull ?false:Eval("IsScanUploadUser")) %>'
                                Visible="false" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="AssumeColumn" HeaderStyle-Width="25px" Resizable="false"
                        AllowFiltering="false" Reorderable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="AssumeLink" runat="server" ImageUrl="/UI/Images/user_go.png">
                            </asp:ImageButton>

                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" HeaderStyle-Width="28px"
                        Reorderable="false" AllowFiltering="false" Resizable="false">
                        <ItemTemplate>
                            <asp:ImageButton ID="EditLink" runat="server" ImageUrl="/UI/Images/pencil.png"></asp:ImageButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn HeaderStyle-Width="28px" UniqueName="EditCommandColumn"
                        Reorderable="false" ButtonType="ImageButton" EditImageUrl="/UI/Images/grid_edit.png"
                        Resizable="false">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="btnDelete" ButtonType="ImageButton" Reorderable="false"
                        CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="300px" HeaderStyle-Width="28px"
                        Resizable="false" ImageUrl="/UI/Images/delete.png" />
                    <telerik:GridTemplateColumn DataField="Id" UniqueName="Id" Visible="false">
                        <InsertItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Bind("Id") %>' ReadOnly="true"
                                Enabled="false" />
                        </InsertItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Eval("Id") %>' ReadOnly="true" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="FirstName" DataField="FirstName">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtFirstName" Width="90%" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FirstName") %>'></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="rfFirstName" runat="server" ErrorMessage="*" ControlToValidate="txtFirstName"
                                CssClass="validator" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="reFirstName" ControlToValidate="txtFirstName"
                                runat="server" ValidationExpression="^[0-9a-zA-Z\s]{1,249}$" CssClass="validator"
                                Display="Dynamic" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblFirstName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FirstName") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="MiddleName" DataField="MiddleName">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtMiddleName" Width="90%" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MiddleName") %>'></asp:TextBox>
                            <br />
                              <asp:RegularExpressionValidator ID="reMiddleName" ControlToValidate="txtMiddleName"
                                runat="server" ValidationExpression="^[0-9a-zA-Z]{0,249}$" CssClass="validator"
                                Display="Dynamic" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblMiddleName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "MiddleName") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="LastName" DataField="LastName">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtLastName" runat="server" Width="80px" Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>'></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="rvfLastName" runat="server" ErrorMessage="*" ControlToValidate="txtLastName"
                                CssClass="validator" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="reLastName" ControlToValidate="txtLastName" runat="server"
                                ValidationExpression="^[0-9a-zA-Z\s]{1,249}$" CssClass="validator" Display="Dynamic" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblLastName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Email" DataField="Email">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtEmail" Width="90%" CausesValidation="true" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ErrorMessage="*" ControlToValidate="txtEmail"
                                CssClass="validator" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revEmail" ControlToValidate="txtEmail" ValidationExpression="^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$"
                                CssClass="validator" runat="server" Display="Dynamic"></asp:RegularExpressionValidator>
                            <asp:CustomValidator ValidationGroup="Information" ID="cvEmail" ControlToValidate="txtEmail"
                                CssClass="validator" runat="server" OnServerValidate="cvEmail_ServerValidate"
                                Display="Dynamic"></asp:CustomValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblEmail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="LoginId" DataField="LoginId">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtLoginId" CausesValidation="true" Width="90%" runat="server"
                                Text='<%# DataBinder.Eval(Container.DataItem, "LoginId") %>'></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="rfvLoginId" runat="server" ErrorMessage="*" ControlToValidate="txtLoginId"
                                CssClass="validator" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="cvLoginId" runat="server" ControlToValidate="txtLoginId"
                                CssClass="validator" ValidateEmptyText="True" Display="Dynamic" OnServerValidate="cvLoginId_ServerValidate" />
                            <asp:RegularExpressionValidator ID="reLogin" ControlToValidate="txtLoginId" runat="server"
                                ValidationExpression="^[0-9a-zA-Z\s]{1,249}$" CssClass="validator" Display="Dynamic" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblLoginId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LoginId") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Phone" DataField="Phone">
                        <EditItemTemplate>
                            <telerik:RadMaskedTextBox ID="txtPhone" runat="server" MaxLength="11" CssClass="textBoxPopUp"
                                Text='<%# DataBinder.Eval(Container.DataItem, "Phone") %>' Mask="(###) ###-####-####"
                                DisplayMask="(###) ###-####-####">
                            </telerik:RadMaskedTextBox>
                            <br />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblPhone" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Phone") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="LastLogin" SortExpression="LastLogin">
                        <ItemTemplate>
                            <asp:Label ID="lblLastLogin" runat="server" Style="font-size: 10px" Enabled="false"
                                Text='<%# DataBinder.Eval(Container.DataItem, "LastLogin") %>' />
                                <br />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="IsSuper" DataField="IsSuper">
                        <EditItemTemplate>
                            <asp:CheckBox ID="chkIsSuper" runat="server" Checked='<%# IsSuperUser(DataBinder.Eval(Container.DataItem, "Id").ToString()) %>' />
                            <br />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="lblIsSuper" runat="server" Enabled="false" Checked='<%#Convert.ToBoolean(Eval("IsSuper"))%>' />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <CommandItemTemplate>
                    <UC:AddButtons ID="AddButtons" runat="server" />
                </CommandItemTemplate>
            </MasterTableView><ClientSettings>
                <ClientEvents OnRowDblClick="rowDblClick" />
            </ClientSettings>
        </telerik:RadGrid>
    </div>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="UserFormDialog" runat="server" Height="600px" Width="800px"
                Skin="Vista" BackColor="Aquamarine" ReloadOnShow="true" ShowContentDuringLoad="false"
                Modal="true" VisibleStatusbar="false" Behaviors="Move, Close" Animation="FlyIn"
                IconUrl="/UI/Images/user.png" />


                
        </Windows>
    </telerik:RadWindowManager>
    <asp:HiddenField ID="HiddenName" runat="server" Visible="false" />
</asp:Content>

.cs

this method is called from UserGrid_ItemCreated
  public static void AssumeUserSettings(GridDataItem item)
        {
            ResourceManager resources = WebSearch.Components.GeneralFunctions.Resources.GetAdminResources("Grids");
            string culture = WebSearch.Components.GeneralFunctions.Variables.CurrentCulture();


            var assumeLink = (ImageButton)item.FindControl("AssumeLink");
            assumeLink.ToolTip = resources.GetString(assumeLink.ID, new CultureInfo(culture));
            assumeLink.AlternateText = resources.GetString(assumeLink.ID, new CultureInfo(culture));
            assumeLink.Attributes["onclick"] = String.Format("return loadAssume('{0}');",
                                                             item.OwnerTableView.DataKeyValues[item.ItemIndex]["Id"]);

        }


 protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
          


            switch (e.Argument)
            {
                case "Asumme":
  // I need start show loading 
                    AssumeUser();
  // I need end show loading  

                    break;

}}


 private void AssumeUser()
        {
            (Page.Master.FindControl("lblAssume") as Label).Visible = true;
            (Page.Master.FindControl("lnkCloseAssume") as LinkButton).Visible = true;
            (Page.Master.FindControl("lblogOff") as LinkButton).Visible = false;
            Session["LastUrl"] = "~" + Request.Url.AbsolutePath;
            new WSOrganization().SavePreferences();
            WebSearch.Components.Init.PreferencesUsers.LoadUserSettings(Convert.ToInt32(hfUserId.Value), true);
            Session["flag"] = true;
        }


Master Page.asp

 <telerik:RadAjaxPanel ID="pnlPanelApp" runat="server" Height="100%" Width="100%">
   
        <div id="UserOnline" runat="server">
            <asp:Label ID="lblAssume" runat="server" CssClass="UserOnlineText" />
            <asp:LinkButton ID="lblUserOnline" runat="server" CssClass="UserOnlineText" OnClick="lblUserOnline_Click"></asp:LinkButton>
            <asp:LinkButton ID="lblogOff" runat="server" CssClass="UserOnlineText" OnClick="lblogOff_Click"></asp:LinkButton>
            <asp:LinkButton ID="lnkCloseAssume" runat="server" CssClass="UserOnlineText" OnClick="lnkCloseAssume_Click"></asp:LinkButton>
        </div>
        
            <div id="header" runat="server" />
           
            <div id="centerBody" runat="server">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
            </div>
            
            <div id="footer" runat="server" />
        
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="Dialog" runat="server" Height="200px" Width="300px" Skin="Vista"
                    Left="15%" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false"
                    Behaviors="Close" />
                <telerik:RadWindow ID="InformationDialog" runat="server" Height="100px" Width="300px"
                    Skin="Vista" Left="15%" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"
                    VisibleStatusbar="false" Behaviors="Close" />
                <telerik:RadWindow ID="UserAssumeDialog" runat="server" Height="80px" Width="250px"
                    Skin="Vista" Left="15%" ReloadOnShow="true" ShowContentDuringLoad="true" Modal="true"
                    VisibleStatusbar="false" Behaviors="Close" />
            </Windows>
        </telerik:RadWindowManager>
        <UC:Notification ID="Notification" runat="server" />
          <UC:RadWindowsManager ID="WindowManagerTopMenu" runat="server"></UC:RadWindowsManager>
          
    </telerik:RadAjaxPanel>

July
Top achievements
Rank 2
 asked on 30 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?