Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
171 views
Here is the code I am trying.How to access datepicker in server validate?
<EditItemTemplate>
                            <telerik:RadDatePicker ID="StartDate" runat="server">
                            </telerik:RadDatePicker> 
<asp:CustomValidator ControlToValidate="StartDate" ID="CustomValidator2" runat="server"
ErrorMessage="Please select" OnServerValidate="CustomValidator2_ServerValidate"> </asp:CustomValidator>
<EditItemTemplate>
Princy
Top achievements
Rank 2
 answered on 20 Apr 2012
1 answer
100 views
Hello Community


So, in my hosting, when the page is open, many controls for example:


- RadComboBox
- RadMaskedTextField


not working, i need click the action button to working


But the problem not occurs in my  machine , just in the hosting...


I have to make any setting in my host?
Kate
Telerik team
 answered on 20 Apr 2012
3 answers
116 views
Hey,
We've run up against a problem with the LinkedIn button in the newest version of the RadControls that doesn't seem to have been present in previous versions. When viewing our page in IE8 using either Compatibility mode or IE7 mode, clicking the LinkedIn button throws the following error:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; BRI/2; InfoPath.2; .NET CLR 1.1.4322; .NET4.0E; MALC)
Timestamp: Mon, 16 Apr 2012 17:03:09 UTC
 
Message: Object doesn't support this property or method
Line: 1765
Char: 1
Code: 0

When viewing in IE8 mode, however, the button works as expected. It also works under FF 11 and Chrome 18; Opera 11 opens the pop-up but appears blank. Anyone have any ideas as to what might be going on? I've checked the LinkedIn developer site and haven't found the exact same problem echoed so far.
Marin Bratanov
Telerik team
 answered on 20 Apr 2012
4 answers
246 views
Hello,

For all of our RadComboBox controls, the properties are set as in the sample below (via a server control that derives from RadComboBox), and EmptyMessage is set to 'Select...'.  I noticed that whenever an item was bound to the RadComboBox that started with S that item was automatically selected when tabbing through it on the UI.  We are using Q2-2011 DLLs.

Here is a test page you can look at to recreate the problem.  There is nothing but a shell in the code behind file.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComboBoxProblem.aspx.cs"
    Inherits="TestBed.ComboBoxProblem" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="rsmMain" runat="server">
        <Scripts>
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadScriptBlock ID="rsbMain" runat="server">
    </telerik:RadScriptBlock>
    <div>
        <telerik:RadComboBox ID="rcbTest" runat="server" AllowCustomText="false" ChangeTextOnKeyBoardNavigation="false"
            EnableTextSelection="true" MarkFirstMatch="true" EmptyMessage="Select..." CloseDropDownOnBlur="true"
            CollapseAnimation-Type="None" ExpandAnimation-Type="None" MaxHeight="200px">
            <Items>
                <telerik:RadComboBoxItem Text="Apples" Value="1" />
                <telerik:RadComboBoxItem Text="Oranges" Value="2" />
                <telerik:RadComboBoxItem Text="Pears" Value="3" />
                <telerik:RadComboBoxItem Text="Strawberries" Value="4" />
                <telerik:RadComboBoxItem Text="Wild Cherries" Value="5" />
            </Items>
        </telerik:RadComboBox>
    </div>
    </form>
</body>
</html>

I tracked this down to the highlightMatches() function when called from _onKeyDown. 

The code basically does this:
 - Set Text value to  EmptyMessage  (Text = 'Select...')
 - Look for matches.  None found so
 - Set Text value to 'Select..', look for matches, none found...
 - Set Text value to 'Select.', look for matches, none found...
 - Set Text value to 'Select', look for matches, none found...
 - Set Text value to 'Selec', look for matches, none found...
 - Set Text value to 'Sele', look for matches, none found...
 - Set Text value to 'Sel', look for matches, none found...
 - Set Text value to 'Se', look for matches, none found...
 - Set Text value to 'S', look for matches, HEY!  I found a match, so highlight it!

Here is your code for those functions:
_onKeyDown: function (k) {
    var j = k.keyCode || k.which;
    if (j == a.Keys.Escape) {
        k.preventDefault();
    } if ($telerik.isIE && j != a.Keys.Down && j != a.Keys.Up) {
        this._updateFilterText = true;
    } if (!this._fireEvents || this._ajaxRequest) {
        return;
    } if ($telerik.isIE9 && (j == 8 || j == 127)) {
        this._compensateValuePropertyChangeEvent = true;
    } if (!k) {
        k = event;
    } this.raise_onClientKeyPressing(k);
    this._lastKeyCode = j;
    if (j == a.Keys.Escape && this.get_dropDownVisible()) {
        this._hideDropDown(k);
        return;
    } else {
        if (j === a.Keys.Enter) {
            if (this.get_dropDownVisible()) {
                this._hideDropDown(k);
            } var g = this.findItemByText(this.get_text());
            if (this.get_allowCustomText() && !this.get_markFirstMatch() && !g) {
                if (this.raise_selectedIndexChanging(null, k) == false) {
                    var f = this.get_selectedItem();
                    var m = this.get_highlightedItem();
                    if (f) {
                        f.set_selected(false);
                    } if (m) {
                        m.unHighlight();
                    } this.set_selectedItem(null);
                    this.set_selectedIndex(null);
                    this.set_highlightedItem(null);
                    this.raise_selectedIndexChanged(null, k);
                    var l = { Command: "Select", Index: -1 };
                    this.postback(l);
                }
            } else {
                this._performSelect(this.get_highlightedItem(), k);
            } if (this.get_markFirstMatch()) {
                var h = this.get_text().length;
                this.selectText(h, h);
            } k.returnValue = false;
            if (k.preventDefault) {
                k.preventDefault();
            } return;
        } else {
            if (j === a.Keys.Down) {
                k.returnValue = false;
                if (k.altKey) {
                    this._toggleDropDown(k);
                    return;
                } this.highlightNextItem(null);
                if (k.preventDefault) {
                    k.preventDefault();
                } return;
            } else {
                if (j === a.Keys.Up) {
                    k.returnValue = false;
                    if (k.altKey) {
                        this._toggleDropDown(k);
                        return;
                    } this.highlightPreviousItem();
                    if (k.preventDefault) {
                        k.preventDefault();
                    } return;
                } else {
                    if (j === a.Keys.Tab) {
                        if (this.get_dropDownVisible()) {
                            this._hideDropDown(k);
                        } this._raiseClientBlur(k);
                        this._selectItemOnBlur(k);  // This causes the last item of RadComboBoxOne to be selected when I click on RadComboBoxTwo
                        this._applyEmptyMessage();
                        this._focused = false;
                        return;
                    }
                }
            }
        }
    } if (j == a.Keys.Left || j == a.Keys.Right) {
        return;
    } if (j >= a.Keys.Numpad0 && j <= a.Keys.Numpad9) {
        j -= (a.Keys.Numpad0 - a.Keys.Zero);
    } var d = String.fromCharCode(j);
    if (d && (!k.altKey) && !(this.get_enableLoadOnDemand() || !this.get_readOnly())) {
        this.highlightNextItem(d);
        return;
    }
}
  
  
function () { // This is highlightMatches() which is called from _selectItemOnBlur()
    if (!this.get_markFirstMatch()) {
        return;
    } var k = this.get_text();
    var f = this.getLastWord(k, this._getTrimStartingSpaces());
    if (this._getLastSeparator(k) == k.charAt(k.length - 1)) {
        return;
    } var d = this.findFirstMatch(f);
    if (this.get_highlightedItem()) {
        this.get_highlightedItem().unHighlight();
    } if (!d) {
        if (k && !this.get_allowCustomText() && !this.get_enableLoadOnDemand()) {
            var g = this._getLastSeparatorIndex(k);
            if (g < k.length - 1) {
                var l = k.substring(0, k.length - 1);
                if (l == "" && $telerik.isSafari) {
                    var h = this;
                    window.setTimeout(function () {
                        h.set_text(l);
                    }, 0);
                } else {
                    this.set_text(l);
                    this.highlightMatches();
                }
            }
        } return;
    }
    d.highlight();
    d.scrollOnTop();
    this.set_value(d.get_value());
    var m;
    var j;
    var g = this._getLastSeparatorIndex(k);
    var e = k.substring(0, g + 1) + d.get_text();
    if (k != e) {
        this.set_text(e);
        m = g + f.length + 1;
        j = e.length - m;
    } else {
        if (this._callbackText.length > 0) {
            m = g + this._callbackText.length + 1;
            j = k.length - m;
        }
    } if (m && j) {
        this.selectText(m, j);
    }
}

Has anyone else ran into this?  Any suggestions on how to fix this (other than to override Telerik's code, which could get ugly really fast)?  Is this expected behavior?

Note: I have opened a support ticket (449526) for this problem and will update this post with any answer given me by Telerik.

Thanks!
Thad
Dimitar Terziev
Telerik team
 answered on 20 Apr 2012
3 answers
138 views


   Hi,

                    I have a panelbar in my page with four panel items. In each panelitem click  an usercontrol (.ascx) will be loaded in that panelitem dynamically (asyn postback---ajax). After the pageload i clicked the second panel item. Now a javascript error occurs that is

Error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type

This error occurs only if it contains telerik controls. I this controls contains  asp.net controls then no error will occur

Please give a solution for this problem..

Thanks
Velkumar.
Kate
Telerik team
 answered on 20 Apr 2012
1 answer
244 views
Hello,
I have one Datafield from type boolean as checkbox in my grid:
<telerik:GridCheckBoxColumn DataField="TypeDefault" DataType="System.Boolean"
    FilterControlAltText="Filter TypeDefault column" HeaderText="Default"
    UniqueName="TypeDefault">
</telerik:GridCheckBoxColumn>

It may only one checkbox be selected in my grid. How can i  solve this?

Best regards

reiner
Shinu
Top achievements
Rank 2
 answered on 20 Apr 2012
4 answers
110 views
On the scheduler the timeslot I click on says 9:00. When I use get_time() to return the time it returns 17:00. Any idea why this is happening would be appreciated. Also the date format is non-standard.  
Peter
Telerik team
 answered on 20 Apr 2012
3 answers
249 views
I have a classic master/content page structure.  I wanted a RadGrid refresh in the content page from the client-side javascript.  As usual, I have a AjaxManagerProxy in the content page and a AjaxManager in the master page.

As I read from other thread, if I want a client-side triggered rebind/refresh of the RadGrid, I need to use ajaxRequest of the AjaxManager, smiliar to the following:

find$("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Rebind")

My question: do I set up the server-side AjaxRequest event in the MasterPage.  If yes, then I have to set up many cases, such as "rebind1", "rebind2", if I have many different content pages?

Am I looking it in the wrong way?

Thanks
Pavlina
Telerik team
 answered on 20 Apr 2012
1 answer
142 views
I am trying to sort a calculated column in an telerik grid, following this example in the demos.

<telerik:GridCalculatedColumn UniqueName="Name" SortExpression="LastName" HeaderText="Calculated Column"
   DataFields
="FirstName, LastName" Expression='{0} + "&nbsp;" + {1}' FooterText="CalculatedColumn footer">
</
telerik:GridCalculatedColumn>

Even though the sort expression says last name, the column is being sorted on the first name. 



How can i actually sort on last name?
Maria Ilieva
Telerik team
 answered on 20 Apr 2012
1 answer
114 views
I have a Hierarchical (pretty complex) RadGrid. Previously when expanding out rows of the grid the main grid would automatically re-size it's height. However, after enabling horizontal and vertical scrolling within the grid automatic height resizing no longer works. The demo's currently up by Telerik show each functionality separately. Is there a trick to getting Hierarchical grids with Scrolling to work correctly in regards to automatic resizing of the Grid.Height parameter? Could I see a simple implementation of this to see if I'm missing something.


<!-- Page Content -->
        <div id="content" class="content" >
            <div id="availableTaxyearsDiv" class="available-taxyears">
                <table><tr><td><asp:label ID="taxYearLabel" Text="Select Tax Year:" runat="server" Width="120"></asp:label></td><td><asp:DropDownList  Width="150" OnSelectedIndexChanged="TaxYearDropDown_SelectedIndexChanged"  ID="taxYearDropDown" runat="server"></asp:DropDownList></td></tr></table>
            </div>
            <telerik:RadTabStrip Skin="Vista" runat="server" ID="TabStrip1" MultiPageID="taskAlertMultiPage" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Tasks" PageViewID="taskPageView" />
                    <telerik:RadTab runat="server" Text="Alerts" PageViewID="alertsPageView" />
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage runat="server" ID="taskAlertMultiPage" SelectedIndex="0" RenderSelectedPageOnly="false">
                <telerik:RadPageView runat="server" ID="taskPageView">
                <div id="TaskGrid" runat="server">
                    <telerik:RadGrid ID="tasksRadGrid" Width="1000"
                        OnNeedDataSource="TasksRadGrid_NeedDataSource" runat="server"
                        AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="15"
                        GridLines="Both" OnItemDataBound="TasksRadGrid_ItemDataBound" OnItemEvent="TasksRadGrid_ItemEvent"
                        OnItemCommand="TasksRadGrid_ItemCommand" AutoGenerateColumns="false" Skin="Vista" 
                        AllowFilteringByColumn="true" >
                        <PagerStyle Mode="NumericPages"></PagerStyle>
                        <MasterTableView EnableViewState="true" DataKeyNames="ClientID,EntityID,ExtDocID,ID,DocumentName,TaskName,EntityCode,EntityCodeDesc,ExplorerViewName,UserRole,UserType,PeriodLocked"
                            AllowMultiColumnSorting="True" HierarchyLoadMode="ServerOnDemand">
                            <NestedViewTemplate>
                                <asp:Panel runat="server" ID="InnerContainer" CssClass="detailTable">
                                <telerik:RadTabStrip Skin="Vista" runat="server" ID="taskActionTabStrip" MultiPageID="taskActionMultiPage" SelectedIndex="0">
                                    <Tabs>
                                        <telerik:RadTab runat="server" Text="Delegation" PageViewID="DelegationPageView" />
                                        <telerik:RadTab runat="server" Text="Unlock" PageViewID="UnlockPageView" />
                                        <telerik:RadTab runat="server" Text="Request More Information" PageViewID="RequestInfoPageView" />
                                    </Tabs>
                                </telerik:RadTabStrip>
                                <telerik:RadMultiPage runat="server" ID="taskActionMultiPage" SelectedIndex="0" RenderSelectedPageOnly="false">
                                    <telerik:RadPageView runat="server" ID="DelegationPageView" BackColor="#EFEFF7">
                                        <asp:Panel ID="Panel1" runat="server" >
                                            <table id="DelegationTable">
                                                <tr>
                                                    <td>
                                                        <table>
                                                            <tr>
                                                                <td colspan="2" width="130">
                                                                    <asp:Label ID="lblDelegation" runat="server">Delegate Task To:</asp:Label>
                                                                </td>
                                                                <td align="left">
                                                                    <asp:DropDownList Width="150" OnSelectedIndexChanged="DelegateDropDown_SelectedIndexChanged"
                                                                        ID="delegateDropDown" runat="server">
                                                                        <asp:ListItem Text="" Value="" />
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td align="left">
                                                                    <asp:Button Width="60" ID="delegation" runat="server" Text="Save" OnClick="DelegationButton_Click" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="4">
                                                                    <asp:Label ID="delegateStatus" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr><td></td></tr>
                                                            <tr>
                                                                <td></td>
                                                                <td colspan="3">
                                                                    <asp:LinkButton CssClass="linkButton" ID="cancelDelegation" runat="server" Text=""
                                                                        OnClick="CancelDelegation_Click"></asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                                <td colspan="3">
                                                                    <asp:LinkButton CssClass="linkButton" ID="rejectDelegation" runat="server" Text=""
                                                                        OnClick="RejectDelegation_Click"></asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView runat="server" ID="UnlockPageView">
                                        <table id="UnlockTable">
                                            <tr><td></td></tr>
                                            <tr>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td colspan="3">
                                                                <asp:Label ID="lockStatus" runat="server" Text="" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table>
                                                        <tr><td></td></tr>
                                                        <tr>
                                                            <td><asp:Label ID="unlockDocument" runat="server" Text="" /></td>
                                                            <td>
                                                                <asp:Button CssClass="button" ID="btnUnlock" runat="server" Text="Yes"
                                                                    OnClick="UnlockButton_Click" Visible="true"></asp:Button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </telerik:RadPageView>
                                    <telerik:RadPageView runat="server" ID="RequestInfoPageView">
                                        <asp:Panel ID="MoreInfoPanel" runat="server">
                                            <table id="RequestMoreInfoTable">
                                                <tr>
                                                    <td></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <table>
                                                            <tr>
                                                                <td class="indent">
                                                                </td>
                                                                <td align="left">
                                                                    Select Alert Recipient(s):
                                                                </td>
                                                                <td align="left">
                                                                    <asp:DropDownList Width="200" ID="alertRecipients" runat="server">
                                                                        <asp:ListItem Text="" Value="" />
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="indent">
                                                                </td>
                                                                <td align="left">
                                                                    Enter Alert Subject:
                                                                </td>
                                                                <td align="left">
                                                                    <asp:TextBox Width="300px" ID="alertSubject" runat="server"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="indent">
                                                                </td>
                                                                <td colspan="2" align="left" valign="top">
                                                                    Enter Alert Text Below:
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="indent">
                                                                </td>
                                                                <td colspan="2" align="right">
                                                                    <telerik:RadEditor ID="radEditAlertText" Height="200px" Width="500px" ToolsFile="RadControls/Editor/BasicTools.xml"
                                                                        ShowSubmitCancelButtons="false" ShowHtmlMode="false" ShowPreviewMode="false"
                                                                        Skin="Default" SkinsPath="~/App_Themes/Vertex/Editor" runat="server">
                                                                        <Content></Content>
                                                                    </telerik:RadEditor>
                                                                </td>
                                                            </tr>
                                                            <tr align="right">
                                                                <td>
                                                                </td>
                                                                <td colspan="2">
                                                                    <asp:Button ID="btnSendAlert" Text="Send Alert" CommandName="RequestMoreInfo" runat="server"
                                                                        OnClick="SendAlertButton_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </telerik:RadPageView>
                                </telerik:RadMultiPage>
                                </asp:Panel>
                                 
                            </NestedViewTemplate>
                            <Columns>
                                <telerik:GridBoundColumn HeaderText="" DataField="DocumentUserID" UniqueName="DocumentUserID" Visible="false"/>                       
                                <telerik:GridBoundColumn HeaderText="" DataField="ExplorerViewID" UniqueName="ExplorerViewID" Visible="false"/>
                                <telerik:GridBoundColumn HeaderText="" DataField="ExtDocID" UniqueName="ExtDocID" Visible="false"/>
                                <telerik:GridBoundColumn HeaderText="" DataField="LockedUserName" UniqueName="LockedUserName" Visible="false"/>
                                <telerik:GridBoundColumn HeaderText="" DataField="UserID" UniqueName="UserID" Visible="false"/>
                                <telerik:GridBoundColumn HeaderText="" DataField="DelegateUserID" UniqueName="DelegateUserID" Visible="false"/>
                                <telerik:GridBoundColumn HeaderText="" DataField="ID" UniqueName="ID" Visible="false"/>
                                <telerik:GridBoundColumn SortExpression="EntityObligationID" UniqueName="EntityObligationID" DataField="EntityObligationID" Visible="false"/>
                                <telerik:GridBoundColumn SortExpression="ObligationType" UniqueName="ObligationType" DataField="ObligationType" Visible="false"/>
                                <telerik:GridButtonColumn CommandName="Download" ButtonType="ImageButton" ImageUrl="Images/download.gif" Text="Download Document"
                                    UniqueName="Download" HeaderStyle-Width="35px" Visible="false"/>
                                <telerik:GridBoundColumn FooterStyle-Wrap="false" SortExpression="ClientName" ItemStyle-Wrap="false" HeaderText="Client"
                                    HeaderButtonType="TextButton" DataField="ClientName" UniqueName="ClientName" HeaderStyle-Width="140px" Visible="true"/>
                                <telerik:GridBoundColumn SortExpression="EntityCode" ItemStyle-Wrap="false" HeaderText="Entity"
                                    HeaderButtonType="TextButton" DataField="EntityCode" UniqueName="EntityCode" HeaderStyle-Width="140px" Visible="false"/>
                                <telerik:GridBoundColumn SortExpression="EntityCodeDesc" ItemStyle-Wrap="false" HeaderText="Entity"
                                    HeaderButtonType="TextButton" DataField="EntityCodeDesc" UniqueName="EntityCodeDesc" HeaderStyle-Width="140px" Visible="false"/>
                                <telerik:GridBoundColumn SortExpression="ExplorerViewName" FooterStyle-Wrap="false" ItemStyle-Wrap="false"
                                    HeaderText="Template Name" HeaderButtonType="TextButton"
                                    DataField="ExplorerViewName" UniqueName="ExplorerViewName" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn DataField="DocumentName" UniqueName="DocumentName" HeaderText="Document / Task Name" HeaderStyle-Width="240px" Visible="false">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="DocumentNameLinkButton" OnClick="DownloadDocument_Click" runat="server" Text='<%# Bind("DocumentName") %>' />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn DataField="TaskName"  UniqueName="TaskName" HeaderText="Document / Task Name">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="TaskNameLinkButton" OnClick="DownloadDocument_Click" runat="server" Text='<%# Bind("TaskName") %>' />
                                        <telerik:RadToolTip id="TaskNameToolTip" TargetControlID="TaskNameLinkButton" Position="BottomCenter" Text="Hello" runat="server"/>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn SortExpression="UserRole" FooterStyle-Wrap="false"
                                    ItemStyle-Wrap="false" HeaderText="User Role" HeaderButtonType="TextButton"
                                    DataField="UserRole" UniqueName="UserRole" HeaderStyle-Width="120px" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="UserType" FooterStyle-Wrap="false"
                                    ItemStyle-Wrap="false" HeaderButtonType="TextButton"
                                    DataField="UserType" UniqueName="UserType" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="ObligationName" ItemStyle-Wrap="false" HeaderText="Obligation"
                                    HeaderButtonType="TextButton" DataField="ObligationName" UniqueName="ObligationName" HeaderStyle-Width="120px" Visible="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="PeriodName" ItemStyle-Wrap="false" HeaderText="Period"
                                    HeaderButtonType="TextButton" DataField="PeriodName" UniqueName="PeriodName" HeaderStyle-Width="120px" Visible="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="PeriodLocked" ItemStyle-Wrap="false" HeaderText="Period Locked"
                                    HeaderButtonType="TextButton" DataField="PeriodLocked" UniqueName="PeriodLocked" HeaderStyle-Width="120px" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataFormatString="{0:M/d/yyyy}" SortExpression="DueDate"
                                    ItemStyle-Wrap="false" HeaderText="Due Date" HeaderButtonType="TextButton" DataField="DueDate"
                                    UniqueName="DueDate" HeaderStyle-Width="126px" Visible="true">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn SortExpression="CurrentStatus" ItemStyle-Wrap="false" HeaderText="Status"
                                    HeaderButtonType="TextButton" DataField="CurrentStatus" UniqueName="CurrentStatus"
                                    AllowFiltering="false" HeaderStyle-Width="80px" Visible="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Status" ItemStyle-Wrap="false" HeaderText="Status"
                                    HeaderButtonType="TextButton" DataField="Status" UniqueName="Status"
                                    AllowFiltering="false" HeaderStyle-Width="80px" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="AssignedUserID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="AssignedUserID" UniqueName="AssignedUserID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="ApproverUserID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="ApproverUserID" UniqueName="ApproverUserID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="FirstReviewerUserID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="FirstReviewerUserID" UniqueName="FirstReviewerUserID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="SecondReviewerUserID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="SecondReviewerUserID" UniqueName="SecondReviewerUserID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="AssignedDelegateID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="AssignedDelegateID" UniqueName="AssignedDelegateID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="ApproverDelegateID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="ApproverDelegateID" UniqueName="ApproverDelegateID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="FirstReviewerDelegateID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="FirstReviewerDelegateID" UniqueName="FirstReviewerDelegateID" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="SecondReviewerDelegateID" ItemStyle-Wrap="false"
                                    HeaderButtonType="TextButton" DataField="SecondReviewerDelegateID" UniqueName="SecondReviewerDelegateID" Visible="false">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                            <Resizing AllowColumnResize="true" AllowRowResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" />
                            <Scrolling AllowScroll="true" FrozenColumnsCount="0" EnableVirtualScrollPaging="false" UseStaticHeaders="true" SaveScrollPosition="true" />
                        </ClientSettings>
                    </telerik:RadGrid>
                    <div id="refresh">
                    <asp:panel id="RefreshPanel"  runat="server">
                            <table>
                                <tr>
                                    <td> </td>
                                </tr>
                                <tr>
                                    <td width="440"> </td>
                                    <td align="right">
                                        <asp:Button EnableTheming="true"  ID="RefreshTasksGrid" runat="server" Text="Refresh Tasks" OnClick="RefreshTasksGrid_Click" />
                                    </td>
                                </tr>
                            </table>
                    </asp:panel>
                    </div>
                </div>
                </telerik:RadPageView>
                <telerik:RadPageView runat="server" ID="alertsPageView">
                    <telerik:RadGrid ID="AlertsGrid" Width="1000" runat="server" OnNeedDataSource="AlertsGrid_NeedDataSource"
                        ShowGroupPanel="false" OnItemCommand="AlertsGrid_ItemCommand" AllowSorting="True"
                        AllowMultiRowSelection="False" AllowPaging="True" PageSize="20" GridLines="Both"
                        AutoGenerateColumns="false" Skin="Vista" AllowFilteringByColumn="true">
                        <PagerStyle Mode="NumericPages"></PagerStyle>
                        <MasterTableView EnableViewState="true" DataKeyNames="AlertID,ClientID,EntityID,ClientName"
                            AllowMultiColumnSorting="True" HierarchyLoadMode="ServerOnDemand">
                            <NestedViewTemplate>
                                <table class="detailTable" cellpadding="0px">
                                    <tr>
                                        <td class="headerText">
                                            Alert Contents
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label Width="600" ID="bodyText" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel runat="server" ID="delegationResponsePanel" Visible="false">
                                    <table class="detailTable">
                                        <tr>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="headerText">
                                                Delegation Response
                                            </td>
                                        </tr>
                                        <tr id="delegateResponse">
                                            <td>
                                                Would you like to  <asp:LinkButton CssClass="linkButton" ID="acceptDelegation"
                                                    Text="accept" runat="server" OnClick="AcceptDelegation_Click" /> this
                                                delegation.
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel runat="server" ID="helpResponsePanel" Visible="false">
                                    <table class="detailTable">
                                        <tr>
                                            <td class="spacer">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:LinkButton ID="btnHelpResponse" CssClass="linkButton" Text="Click here to respond to this request for more information."
                                                    OnClick="HelpResponseButton_Click" runat="server"></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel runat="server" ID="createResponseAlertPanel" Visible="false">
                                    <table class="detailTable">
                                        <tr>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td class="indent">
                                                        </td>
                                                        <td align="left">
                                                            Select Alert Recipient(s):
                                                        </td>
                                                        <td align="left">
                                                            <asp:DropDownList Width="200" ID="alertRecipients" runat="server">
                                                                <asp:ListItem Text="" Value="" />
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="indent">
                                                        </td>
                                                        <td align="left">
                                                            Enter Alert Subject:
                                                        </td>
                                                        <td align="left">
                                                            <asp:TextBox Width="300px" ID="alertSubject" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="indent">
                                                        </td>
                                                        <td colspan="2" align="left" valign="top">
                                                            Enter Alert Text Below:
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="indent">
                                                        </td>
                                                        <td colspan="2" align="right">
                                                            <telerik:RadEditor ID="radEditAlertText" Height="200px" Width="500px" ToolsFile="RadControls/Editor/BasicTools.xml"
                                                                ShowSubmitCancelButtons="false" ShowHtmlMode="false" ShowPreviewMode="false"
                                                                Skin="Default" SkinsPath="~/App_Themes/Vertex/Editor" runat="server">
                                                                <Content></Content>
                                                            </telerik:RadEditor>
                                                        </td>
                                                    </tr>
                                                    <tr align="right">
                                                        <td>
                                                        </td>
                                                        <td colspan="2">
                                                            <asp:Button ID="btnSendAlert" Text="Send Alert" CommandName="ResponseToRequest" runat="server"
                                                                OnClick="SendAlertButton_Click" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <table class="detailTable" cellpadding="0px">
                                    <tr>
                                        <td></td>
                                        <td>
                                           <asp:button ID="DeleteAlert" Text="Delete Alert" CommandName="DeleteAlert" runat="server" OnClick="DeleteAlert_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </NestedViewTemplate>
                            <Columns>
                                <telerik:GridBoundColumn SortExpression="EventName" HeaderText="Alert Event" HeaderButtonType="TextButton"
                                    DataField="EventName" UniqueName="EventName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="ClientName" HeaderText="Client Name" HeaderButtonType="TextButton"
                                    DataField="ClientName" UniqueName="ClientName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="EntityCode" HeaderText="Entity" HeaderButtonType="TextButton"
                                    DataField="EntityCode" UniqueName="EntityCode" Visible="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Obligation" HeaderText="Obligation" HeaderButtonType="TextButton"
                                    DataField="Obligation" UniqueName="Obligation">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Period" HeaderText="Period" HeaderButtonType="TextButton"
                                    DataField="Period" UniqueName="Period">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="SubjectText" HeaderText="Alert Subject"
                                    HeaderButtonType="TextButton" DataField="SubjectText" UniqueName="SubjectText">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="CreateDateTime" HeaderText="Creation Date"
                                    HeaderButtonType="TextButton" DataField="CreateDateTime" UniqueName="CreateDateTime">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="CreateUserName" HeaderText="User" HeaderButtonType="TextButton"
                                    DataField="CreateUserName" UniqueName="CreateUserName" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="BodyText" HeaderText="" HeaderButtonType="TextButton"
                                    DataField="BodyText" UniqueName="BodyText" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="" DataField="EventTypeID" UniqueName="EventTypeID"
                                    Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="" DataField="CreateUserID" UniqueName="CreateUserID"
                                    Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="" DataField="ID" UniqueName="ID"
                                    Visible="false">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                            <Resizing AllowColumnResize="true" AllowRowResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" />
                        </ClientSettings>
                    </telerik:RadGrid>
                    <div id="Div1">
                    <asp:panel id="Panel2"  runat="server">
                            <table>
                                <tr>
                                    <td> </td>
                                </tr>
                                <tr>
                                    <td width="440"> </td>
                                    <td align="right">
                                        <asp:Button EnableTheming="true"  ID="RefreshAlertsGrid" runat="server" Text="Refresh Alerts" OnClick="RefreshAlertsGrid_Click" />
                                    </td>
                                </tr>
                            </table>
                    </asp:panel>
                    </div>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </div>


thanks,

Julian
Pavlina
Telerik team
 answered on 20 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?