Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
179 views
I have followed the Resizing example and it is working when the splitter is the only content in the window.  But I am struggling with trying to have a banner displayed above the main content.  When it is there then the bottom of the splitter extends beyond the bottom of the browser window (due to overflow:hidden) and I can't figure out how to fix it.  Any suggestions?

Thanks,

Anne

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head id="Head1" runat="server">

<link rel="stylesheet" type="text/css" href="Styles.css" />

<style type="text/css">

html, body, form

{

height: 100%;

margin: 0px;

padding: 0px;

overflow: hidden;

}

</style>

</

head>

<

body scroll="no" style="height:100%;margin:0">

<form runat="server" id="mainForm" method="post">

<asp:ScriptManager ID="ScriptManager" runat="server" />

<div style="width:100%;height:100%">

    <telerik:RadSplitter runat="server" Width="100%" ID="MainSplitter" 
        Skin="Office2007"Height="100%" ResizeMode="EndPane">
    .......
   </telerik:RadSplitter>

</

div>

</form>

</

body>

</

html>

Svetlina Anati
Telerik team
 answered on 08 Jul 2008
2 answers
136 views
I'm using a Template inside the Panelbar control and the content goes off the page to the right without automatically wrapping to the width of the browser.

I've looked at all the examples and I can't see how to set the width.  Can you tell me what I'm doing wrong?

I've included my code:
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Telerik" Width="1000px">  
        <CollapseAnimation Type="None" Duration="100"></CollapseAnimation> 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Order Details Description (Click here)" 
                Expanded="false">  
                <Items> 
                    <telerik:RadPanelItem> 
                        <ItemTemplate> 
                            <div style="width: 1000px; float: left;">  
                                <p> 
                                    The Tabs are in order of importance, from left to right.</p> 
                                <p> 
                                    This is a brief explanation of how the order process flows. It only takes the four  
                                    (4) steps below to start, process and complete an order.  
                                </p> 
                                <ol> 
                                    <li><b>Order Tab</b> - View the information and status of the order. You do NOT need  
                                        to manually change the Order Status, this is done automatically as long as the process  
                                        follows these steps. If there is any change in the order process, you have the ability  
                                        to override this and change the status manually.</li> 
                                    <li><b>Files Tab</b> - Download the files for production. Click the file name to download  
                                        the file.</li> 
                                    <li><b>Vendor Jobs Tab</b> - Set a Vendor to handle an item or items.  
                                        <ul> 
                                            <li>Select a Vendor from the drop down list. <b>(Required)</b></li>  
                                            <li>enter a PO, if applicable.</li> 
                                            <li>enter the Date the item is dropped off to the Vendor. <b>(Required)</b></li>  
                                            <li>enter a description if needed.</li> 
                                            <li>select at least one item from the list on the right of items assigned to this Vendor.</li> 
                                            <li>set the job status.</li> 
                                            <li>Click the Save button. This will save the Vendor job for the selected item(s).</li> 
                                        </ul> 
                                        Note: You won't be able to add a Shipping Tracking Number (on the Shipping Tab)  
                                        until at least one item receives a Pick Up/Delivery Date and the Job Status is "Ok  
                                        to Ship"! (To set the Vendor Job Order Status, click the &quot;Vendor Job Status&quot;  
                                        link in the left hand navigation, then edit the statuses until they are how you  
                                        want them.)  
                                        <br /> 
                                        <b>To Set a Pick Up / Delivery Date:</b> 
                                        <ol> 
                                            <li>When a job from a Vendor is completed and received, click the &quot;Edit&quot; link  
                                                in the Job History table. The information for this job will appear in the fields.  
                                                Select the Pick Up date and click the Save button. This will update the record for  
                                                this job.</li> 
                                        </ol> 
                                    </li> 
                                    <li><b>Shipping Tab</b> - this is the final step to completed an order. After a job  
                                        has a Pick Up / Delivery Date, those items that are completed can be shipped. This  
                                        section allows you to ship a partial order or the complete order, in case not all  
                                        items are back from Vendors.  
                                        <p> 
                                            <b>To Ship an item(s):</b></p>  
                                        <ol> 
                                            <li>You must first get the shipping process started in order to get a Tracking number.</li> 
                                            <li>Once you receive the Tracking number, enter it into the Shipping Tracking Number  
                                                field and select the item(s) that will be shipped for this tracking number.</li> 
                                            <li>Click the Set Tracking Number button. This will update the database with the tracking  
                                                information for the selected item(s) which will be shown in the table below, it  
                                                will update the Order Status and send an email to the customer that a full or partial  
                                                order has shipped. It will automatically update the Order Status based on the number  
                                                of items shipped. If only some of the items are shipped, it will set the Order Status  
                                                to: &quot;Shipping Order&quot;. If all the items are shipped, then the Order Status  
                                                is set to: &quot;Shipped To Customer&quot;.</li> 
                                        </ol> 
                                    </li> 
                                </ol> 
                                <p> 
                                    The rest of this information is not part of the order completion process.</p> 
                                <ul> 
                                    <li><b>Billing Tab</b> - The billing area shows the order billing information and it  
                                        gives you the ability to Refund the order. NOTE: Refunds can only be made by Administrators  
                                        and an alert will be displayed when the order is &quot;In Production&quot; or any  
                                        status past this. This is just to let you know that it's up to you if you want to  
                                        refund the order after it's in production.</li> 
                                    <li><b>Customer Tab</b> - The customer area allows you to update customer information  
                                        and view the order history for a customer.</li> 
                                    <li><b>Notes Tab</b> - This section allows you to add any notes for this order. Some  
                                        notes are automatically entered by the application during the customer checkout  
                                        process. You do not have the ability to edit or delete notes.</li> 
                                    <li><b>Receipt Tab</b> - This is a copy of the receipt that the customer received after  
                                        their order was completed.</li> 
                                    <li><b>Audit Tab</b> - This just displays a trace record of events that occurred during  
                                        the order checkout process. If there was an error during checkout, it would display  
                                        here also.</li> 
                                </ul> 
                            </div> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
        <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> 
    </telerik:RadPanelBar> 
 

King Wilder
Top achievements
Rank 2
 answered on 08 Jul 2008
2 answers
731 views
hello,

on my ASPX page I have two controls: a DropDownList, and a RadGrid. when the DropDownList posts back, I want to update the data in the RadGrid based on the list's current selected value.

sounds easy enough, but the problem -- my RadGrid seems to be caching its DataSource. it always shows its initiate data and never updates, even tho when i step thru the code-behind i can see the new data

ASPX

<!-- SELECT ROLE TO MANAGE --> 
Role to manage: <asp:DropDownList ID="ddlRoles" DataValueField="Name" DataTextField="Name" AutoPostBack="true" OnSelectedIndexChanged="ddlRoles_SelectedIndexChanged" runat="server" /> 
 
<div id="divEditUsersForm" style="margin-bottom:40px;" visible="true" runat="server"> 
     
    <p>Users in Role:</p> 
 
    <Telerik:RadGrid ID="gridRoleUsers"  
        Skin="Office2007" 
        GridLines="None" 
        AllowPaging="true" 
        PageSize="50"  
        PagerStyle-Mode="NextPrevAndNumeric"         
        AllowSorting="true"                  
        AutoGenerateColumns="False" 
        AllowMultiRowSelection="true"  
        AllowMultiRowEdit="true"  
        OnDeleteCommand="gridRoleUsers_DeleteCommand" 
        OnNeedDataSource="gridRoleUsers_NeedDataSource" 
        OnPreRender="grid_PreRender"  
        runat="server"> 
     
        <ClientSettings  
            EnableRowHoverStyle="true" 
            AllowDragToGroup="false"  
            AllowColumnsReorder="false"  
            AllowKeyboardNavigation="true" 
            ReorderColumnsOnClient="false" > 
            <Resizing AllowColumnResize="false" AllowRowResize="false" /> 
            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
        </ClientSettings> 
         
        <MasterTableView  
            CommandItemDisplay="Top"  
            DataKeyNames="Username"  
            EditMode="InPlace" 
            NoMasterRecordsText="No users to display."  
            CommandItemStyle-Font-Bold="true"  
            HeaderStyle-ForeColor="#191970"  
            ItemStyle-ForeColor="black"  
            AlternatingItemStyle-ForeColor="black"> 
             
            <%-- use for support for multi edit/deletes > --%> 
            <CommandItemTemplate> 
                <div style="padding:3px 0px;"> 
                    <asp:LinkButton ID="btnDelete" CommandName="DeleteSelected" OnClientClick="javascript:return confirm('Remove all selected Users?')" CausesValidation="false" Visible='<%# !gridRoleUsers.MasterTableView.IsItemInserted && gridRoleUsers.EditIndexes.Count == 0 %>' CssClass="commandItem" runat="server"><img src="/images/delete.gif" width="16" height="16" border="0"/> Remove Selected Users</asp:LinkButton> 
                </div> 
            </CommandItemTemplate> 
             
            <Columns> 
                <Telerik:GridClientSelectColumn HeaderStyle-Width="24" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center" /> 
                <Telerik:GridButtonColumn CommandName="Delete" ButtonType="LinkButton" Text="Remove" UniqueName="deleteColumn" ConfirmText="Remove user from Role?" ConfirmTitle="Delete" HeaderStyle-Width="40" ItemStyle-ForeColor="#333333" ItemStyle-Font-Bold="True" /> 
                <Telerik:GridBoundColumn HeaderText="Username" UniqueName="Username" DataField="Username" HeaderStyle-Wrap="false" ReadOnly="true" /> 
                <Telerik:GridBoundColumn HeaderText="Role Name" UniqueName="RoleName" DataField="RoleName" HeaderStyle-Wrap="false" ReadOnly="true" /> 
            </Columns> 
 
        </MasterTableView>               
    </Telerik:RadGrid>   
</div> 
 
 
 
<Telerik:RadAjaxManager ID="radAjaxManager" runat="server"> 
    <AjaxSettings> 
        <%-- grid updates itself --%> 
        <Telerik:AjaxSetting AjaxControlID="gridRoleUsers"> 
            <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="gridRoleUsers" LoadingPanelID="ajaxLoadingPanel" /> 
                <Telerik:AjaxUpdatedControl ControlID="lblMessage" /> 
            </UpdatedControls> 
        </Telerik:AjaxSetting> 
    </AjaxSettings> 
</Telerik:RadAjaxManager> 
 
<Telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" Width="75px" Height="75px" Transparency="10" runat="server"> 
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
</Telerik:RadAjaxLoadingPanel> 


C#

protected void Page_Load(object sender, EventArgs e) 
{ 
    //set header's help URL 
    AutomaticVehicleLocator.controls.nav.Header ucHeader = (AutomaticVehicleLocator.controls.nav.Header)this.Master.FindControl("ucHeader"); 
    ucHeader.HelpUrl = "~/helpUserManager.aspx"; 
 
    if (!IsPostBack) 
    { 
        ddlRoles.DataSource = GetRolesTable(); 
        ddlRoles.DataBind(); 
    } 
 
    _role = ddlRoles.SelectedValue; 
     
} 
 
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
 
 
protected void ddlRoles_SelectedIndexChanged(object sender, EventArgs e) 
{ 
    //_role = ddlRoles.SelectedValue; 
 
    SetRoleUsersGridDataSource(); 
 
    divEditUsersForm.Visible = true; 
    //litRoleName.Text = _role; 
} 
 
/// <summary> 
/// Fired when grid needs a datasource. eg, after editing or deleting. 
/// </summary> 
protected void gridRoleUsers_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
{ 
    SetRoleUsersGridDataSource(); 
} 
 
private void SetRoleUsersGridDataSource() 
{ 
    gridRoleUsers.DataSource = null; 
 
    if (Strings.Exists(_role)) 
    { 
        // This event fails if a databind is specified - it has to do its own databind. 
        gridRoleUsers.DataSource = GetUsersForRole(_role); 
    } 
} 


any idea whats going on here?


thanks!
matt
matt
Top achievements
Rank 1
 answered on 08 Jul 2008
3 answers
259 views
I attempted to create a custom skin and apply it via a theme. Everything works fine except the expand collapse button images. The sort images work fine and I believe they work in the same manner as the expand images so I don't understand why one works and not the other. Below are the relevant code snippets, please let me know if you need anything else.

Custom skin file entry:
<telerik:RadGrid runat="server" Skin="CustomSkin" ImagesPath="~/App_Themes/CustomSkin/Grid"></telerik:RadGrid>

Page code:
<telerik:RadGrid ID="RadGridDeposits" runat="server" DataSourceID="dsDepositCount" AllowSorting="True" EnableEmbeddedSkins="false"
                    AllowPaging="True" AutoGenerateColumns="False" Width="100%" OnDetailTableDataBind="RadGridDeposits_DetailTableDataBind"
                    OnItemDataBound="RadGrid1_ItemDataBound">
                    <ClientSettings></ClientSettings>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    <MasterTableView DataSourceID="dsDepositCount" DataKeyNames="tDate" CommandItemDisplay="Top">
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="Number,StartDate,Site ID" DataSourceID="dsProcessedDeposits" Width="100%" runat="server" CommandItemDisplay="Top">
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="ProcessingDate" MasterKeyField="tDate" />
                                </ParentTableRelation>
                                <CommandItemTemplate>
                                <span class="childgridtitle"> Processed Deposits </span>
                                </CommandItemTemplate>                               
                                <Columns>
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Number" HeaderText="Number"
                                        SortExpression="Number" UniqueName="column" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Site ID" HeaderText="Site ID"
                                        SortExpression="Site ID" UniqueName="column1" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="ProcessingDate" HeaderText="Processing Date"
                                        SortExpression="ProcessingDate" UniqueName="column2" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="StartDate" HeaderText="Start Date"
                                        SortExpression="StartDate" UniqueName="column3" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Account" HeaderText="Account"
                                        SortExpression="Account" UniqueName="column4" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Amount" HeaderText="Amount"
                                        SortExpression="Amount" UniqueName="column5" ReadOnly="True" DataFormatString="{0:C}" />
                                    <telerik:GridTemplateColumn HeaderText="Duplicates">
                                        <HeaderStyle Width="25px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# GetDuplicateCountByDeposit(Eval("Site ID").ToString(),Eval("StartDate").ToString(),Eval("Number").ToString()) %>'></asp:Label>                                           
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <ExpandCollapseColumn>
                                    <HeaderStyle Width="19px" />
                                </ExpandCollapseColumn>
                                <DetailTables>
                                   
                                    <telerik:GridTableView runat="server" DataKeyNames="Index" Width="100%" DataSourceID="dsDepositItems" SkinID="Diebold" CommandItemDisplay="Top">
                                        <ParentTableRelation>
                                            <telerik:GridRelationFields DetailKeyField="DepositIndex" MasterKeyField="Number" />
                                        </ParentTableRelation>
                                        <CommandItemTemplate>
                                        <span class="childgridtitle2"> Deposit Items </span>
                                        </CommandItemTemplate>
                                        <Columns>
                                            <telerik:GridTemplateColumn>
                                                <HeaderStyle Width="25px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                <ItemTemplate>
                                                    <asp:ImageButton runat="server" ID="ButtonViewDuplicateItem" AlternateText="View Possible Duplicate Item(s)" ImageUrl="~/Images/Warning.gif"
                                                        OnClientClick="<%# GetDisplayDupImageFuncName() %>" Visible="<%# DisplayDupImage() %>" />                                                  
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>                   
                                            <telerik:GridTemplateColumn>
                                                <HeaderStyle Width="25px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                <ItemTemplate>
                                                    <asp:ImageButton runat="server" ID="ButtonViewItem" AlternateText="View Item" ImageUrl="~/Images/ViewCheck.gif"
                                                        OnClientClick="<%# GetDisplayImageFuncName() %>" />
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Index" HeaderText="Index"
                                                SortExpression="Index" UniqueName="column" ReadOnly="True" Visible="false" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="DepositIndex" HeaderText="DepositIndex"
                                                SortExpression="DepositIndex" UniqueName="column1" ReadOnly="True" Visible="false" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Serial" HeaderText="Serial"
                                                SortExpression="Serial" UniqueName="column2" ReadOnly="True" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Aba" HeaderText="ABA"
                                                SortExpression="Aba" UniqueName="column3" ReadOnly="True" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Account" HeaderText="Account"
                                                SortExpression="Account" UniqueName="column4" ReadOnly="True" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Amount" HeaderText="Amount"
                                                SortExpression="Amount" UniqueName="column5" ReadOnly="True" DataFormatString="{0:C}" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Front Image File" HeaderText="Front Image File"
                                                SortExpression="Front Image File" UniqueName="column6" ReadOnly="True" Visible="false" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Rear Image File" HeaderText="Rear Image File"
                                                SortExpression="Rear Image File" UniqueName="column7" ReadOnly="True" Visible="false" />
                                        </Columns>
                                        <ExpandCollapseColumn Visible="False">
                                            <HeaderStyle Width="19px" />
                                        </ExpandCollapseColumn>
                                        <RowIndicatorColumn Visible="False">
                                            <HeaderStyle Width="20px" />
                                        </RowIndicatorColumn>
                                    </telerik:GridTableView>
                                   
                                </DetailTables>
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                            </telerik:GridTableView>
                            <telerik:GridTableView DataKeyNames="Number,StartDate,Site ID" DataSourceID="dsOpenDeposits" Width="100%" runat="server" SkinID="Diebold_Child1" CommandItemDisplay="Top">
                                <ParentTableRelation>
                                    <telerik:GridRelationFields DetailKeyField="ProcessingDate" MasterKeyField="tDate" />
                                </ParentTableRelation>
                                <CommandItemTemplate>
                                <span class="childgridtitle"> Open Deposits </span>
                                </CommandItemTemplate>
                                <Columns>
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Number" HeaderText="Number"
                                        SortExpression="Number" UniqueName="column" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Site ID" HeaderText="Site ID"
                                        SortExpression="Site ID" UniqueName="column1" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="ProcessingDate" HeaderText="Processing Date"
                                        SortExpression="ProcessingDate" UniqueName="column2" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="StartDate" HeaderText="Start Date"
                                        SortExpression="StartDate" UniqueName="column3" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Account" HeaderText="Account"
                                        SortExpression="Account" UniqueName="column4" ReadOnly="True" />
                                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Amount" HeaderText="Amount"
                                        SortExpression="Amount" UniqueName="column5" ReadOnly="True" DataFormatString="{0:C}" />
                                    <telerik:GridTemplateColumn HeaderText="Duplicates">
                                        <HeaderStyle Width="25px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# GetDuplicateCountByDeposit(Eval("Site ID").ToString(),Eval("StartDate").ToString(),Eval("Number").ToString()) %>'></asp:Label>                                           
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                                <ExpandCollapseColumn>
                                    <HeaderStyle Width="19px" />
                                </ExpandCollapseColumn>
                                <DetailTables>
                                   
                                    <telerik:GridTableView runat="server" DataKeyNames="Index" Width="100%" DataSourceID="dsDepositItems" SkinID="Diebold" CommandItemDisplay="Top">
                                        <ParentTableRelation>
                                            <telerik:GridRelationFields DetailKeyField="DepositIndex" MasterKeyField="Number StartDate" />
                                        </ParentTableRelation>
                                        <CommandItemTemplate>
                                        <span class="childgridtitle2"> Deposit Items </span>
                                        </CommandItemTemplate>
                                        <Columns>
                                            <telerik:GridTemplateColumn>
                                                <HeaderStyle Width="50px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                <ItemTemplate>
                                                    <asp:ImageButton runat="server" ID="DeleteButton" AlternateText="View Item" ImageUrl="~/Images/ViewCheck.gif" CommandName="Delete"
                                                        OnClientClick="<%# GetDisplayImageFuncName() %>" />
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Index" HeaderText="Index"
                                                SortExpression="Index" UniqueName="column" ReadOnly="True" Visible="false" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="DepositIndex" HeaderText="DepositIndex"
                                                SortExpression="DepositIndex" UniqueName="column1" ReadOnly="True" Visible="false" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Serial" HeaderText="Serial"
                                                SortExpression="Serial" UniqueName="column2" ReadOnly="True" />
                                            <%--<telerik:GridBoundColumn AllowFiltering="False" DataField="Aba" HeaderText="ABA"
                                                SortExpression="Aba" UniqueName="column3" ReadOnly="True" />--%>
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Account" HeaderText="Account"
                                                SortExpression="Account" UniqueName="column4" ReadOnly="True" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Amount" HeaderText="Amount"
                                                SortExpression="Amount" UniqueName="column5" ReadOnly="True" DataFormatString="{0:C}" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Front Image File" HeaderText="Front Image File"
                                                SortExpression="Front Image File" UniqueName="column6" ReadOnly="True" Visible="false" />
                                            <telerik:GridBoundColumn AllowFiltering="False" DataField="Rear Image File" HeaderText="Rear Image File"
                                                SortExpression="Rear Image File" UniqueName="column7" ReadOnly="True" Visible="false" />
                                        </Columns>
                                        <RowIndicatorColumn Visible="False">
                                            <HeaderStyle Width="20px" />
                                        </RowIndicatorColumn>
                                    </telerik:GridTableView>
                                   
                                </DetailTables>
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                            </telerik:GridTableView>
                        </DetailTables>
                        <CommandItemTemplate>
                        </CommandItemTemplate>
                        <Columns>
                            <telerik:GridBoundColumn AllowFiltering="False" DataField="companyID" HeaderText="Merchant ID"
                                SortExpression="companyID" UniqueName="column" ReadOnly="True" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="companyName" HeaderText="Merchant Name" SortExpression="companyName"
                                UniqueName="column1" Visible="false">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="tDate" HeaderText="Date" SortExpression="tDate"
                                UniqueName="column2">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="NotProcessedCount" HeaderText="Not Processed" SortExpression="NotProcessedCount"
                                UniqueName="column3">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ProcessedCount" HeaderText="Processed" SortExpression="ProcessedCount"
                                UniqueName="column4">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ProcessedAmount" HeaderText="Processed Amount" SortExpression="ProcessedAmount"
                                UniqueName="column5" DataFormatString="{0:C}">
                            </telerik:GridBoundColumn>                            
                        </Columns>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="19px" />
                        </ExpandCollapseColumn>
                        <RowIndicatorColumn Visible="False">
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                    </MasterTableView>
                </telerik:RadGrid>

Dimo
Telerik team
 answered on 08 Jul 2008
1 answer
214 views
I have a drop down list inside of an ItemTemplate. However, I'm unable to access the drop down list from the server side code. I wanted to catch the postback of the item and handle it server side as well. Is there something special I need to do to access this, or will I need to go through and find the control and add a handler to it.

Here is my ItemTemplate:

                <telerik:RadToolBarButton> 
                    <ItemTemplate> 
                        <asp:DropDownList ID="ddlCulture" runat="server"> 
                        </asp:DropDownList> 
                    </ItemTemplate> 
                </telerik:RadToolBarButton> 

Veselin Vasilev
Telerik team
 answered on 08 Jul 2008
2 answers
155 views
I need to have a tooltip for the text in the GridTemplateColumn but it is nto there

Therefore I must create my own HeaderTemplate. The problem is once I create that then I lose the default sort functionality I was using. So is there anyway to fix this?

The only way I can figure is make the headertemplate a linkbutton and OnClick have that button activate that sort functionality. But how would I do that?
matt
Top achievements
Rank 1
 answered on 08 Jul 2008
3 answers
122 views
Hi

I have a page with a RadSplitter and 2 radPanes. In the left pane i have a simple RadTreeview and on the right side i have a RadUpload. The problem occur when i add multiple upload files. If i use the scroll bar in the RadPane the select items in the RadUpload become floating and if i dont use the scroll bar (wich i've tried to achive) im loosing the "ADD" button in the RadUpload, it becomes hidden under the Pane surface. My goal is only to be able to add multiple fileUpload and that the Pane resizes his height like a simple div or panel.

If you need more informations on my case , please let me know.

Thx in advance for your help.
Svetlina Anati
Telerik team
 answered on 08 Jul 2008
4 answers
133 views
I have a need in a couple of cases to have plain text in the toolbar. For example, our application shows the logged in user's name in the toolbar because that is the best place for it to reside in our application.

I can obviously include the text content as a button, but I cannot figure out how to prevent the standard button UI modifications from occurring. For example, it doesn't make any sense for the mouse to turn into a hand pointer over this text area and there is no point in highlighting the text area with the hover class.

I have tried numerous approaches with no luck so far. It seems that a "label" or "non-button" placeholder could be a useful addition to the list of Items.
Peter
Telerik team
 answered on 08 Jul 2008
2 answers
195 views
I am using a RADMenu that is inside of a RADWindow. What I want is to have a print menu option that would print the contents of the RADWindow. What is happening though is that the Menu gets included on the printout because it isnt closing when I click the print menu item. I tried using the close method of the menu but that isnt working. What do I need to do to accomplish this?

Thanks!

========== Parent Page ======================
<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<html><body><form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="TestPrintMenu_SubPage.aspx" VisibleOnPageLoad=true></telerik:RadWindow>
</form></body></html>


=========== Sub Page with Menu ================

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html>
<script type="text/javascript">
    function printWindow(){
        var menu = $find("mainMenu");
        menu.close();
        window.print();}
</script>
<body><form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    <telerik:RadMenu ID="mainMenu" runat="server" Skin="Vista" ClickToOpen="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                <Items>
                    <telerik:RadMenuItem runat="server" Text="File">
                        <Items>
                            <telerik:RadMenuItem runat="server" NavigateUrl="javascript: printWindow();" Text="Print"></telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" IsSeparator="True" Text="-"></telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Close"></telerik:RadMenuItem>
                        </Items>
                    </telerik:RadMenuItem>
                </Items>
    </telerik:RadMenu>
</form></body></html>

Robert Bross
Top achievements
Rank 1
 answered on 08 Jul 2008
1 answer
86 views
How do you add extra fields into the appointment advanced edit menu.  Here's an example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/Templates/DefaultCS.aspx

I've tried to mimic the code, but I haven't had any success so far.
Peter
Telerik team
 answered on 08 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?