Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
80 views

I have a master/detail heirachary. The first expand of the master row to the respective details works fine. But then I can neither collapse that master row nor expand another row?

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if ((string)e.CommandName == "ExpandCollapse")
        {
            string keyValues = ((GridEditableItem)e.Item).KeyValues;

            if (e.Item.OwnerTableView.Name == "MasterTable")
            {
                GridDataItem item = (GridDataItem)e.Item;
                Session["Headerkey"] = item["Headerkey"].Text; // set the primary key of the details table before the bind of the expand
            }
        }
    }

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" PageSize="20" ShowFooter="True" CellSpacing="-1" GridLines="Both"
    CssClass="MyGridView"
    OnItemCommand="RadGrid1_ItemCommand"
    AllowCustomPaging="True">
    <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>

    <ClientSettings EnableRowHoverStyle="True" AllowDragToGroup="True">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView AutoGenerateColumns="False" ShowGroupFooter="true" CommandItemDisplay="Top" DataKeyNames="Headerkey" Name="MasterTable">

        <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToCsvButton="True" ShowExportToExcelButton="True" ShowPrintButton="true" />
        <Columns>
            <telerik:GridBoundColumn DataField="Headerkey" DataType="System.Int32" Display="true" FilterControlAltText="Filter Headerkey column" HeaderText="Headerkey" ReadOnly="True" SortExpression="Headerkey" UniqueName="Headerkey">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Groupkey" DataType="System.Int32" Display="False" FilterControlAltText="Filter Groupkey column" HeaderText="Groupkey" SortExpression="Groupkey" UniqueName="Groupkey">
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="xh.DTM02_ProductionDate" FilterControlAltText="Filter xh.DTM02_ProductionDate column" HeaderText=" Production Date" ReadOnly="True" SortExpression="xh.DTM02_ProductionDate" UniqueName="xh.DTM02_ProductionDate">
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="xh.BPR16_CheckIssueEFT_EffectiveDate" FilterControlAltText="Filter xh.BPR16_CheckIssueEFT_EffectiveDate column" HeaderText=" Check Issue Effective Date" ReadOnly="True" SortExpression="xh.BPR16_CheckIssueEFT_EffectiveDate" UniqueName="xh.BPR16_CheckIssueEFT_EffectiveDate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BPR02_TotlActlProvdrPaymntAmnt" DataFormatString="{0:c}" FilterControlAltText="Filter BPR02_TotlActlProvdrPaymntAmnt column" HeaderText="Payment Amnt" SortExpression="BPR02_TotlActlProvdrPaymntAmnt" UniqueName="BPR02_TotlActlProvdrPaymntAmnt" Aggregate="Sum" FooterText="Total: $">
                <ItemStyle HorizontalAlign="Right" />
                <FooterStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BPR13_ReceiverorProviderBankIDNo" FilterControlAltText="Filter BPR13_ReceiverorProviderBankIDNo column" HeaderText="BPR13_ReceiverorProviderBankIDNo" SortExpression="BPR13_ReceiverorProviderBankIDNo" UniqueName="BPR13_ReceiverorProviderBankIDNo" Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BPR15_ReceiverorProviderAccntNo" FilterControlAltText="Filter BPR15_ReceiverorProviderAccntNo column" HeaderText="BPR15_ReceiverorProviderAccntNo" SortExpression="BPR15_ReceiverorProviderAccntNo" UniqueName="BPR15_ReceiverorProviderAccntNo" Display="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TRN02_CheckEFT_TraceNumber" FilterControlAltText="Filter TRN02_CheckEFT_TraceNumber column" HeaderText="Trace Number" ReadOnly="True" SortExpression="TRN02_CheckEFT_TraceNumber" UniqueName="TRN02_CheckEFT_TraceNumber" Display="false">
            </telerik:GridBoundColumn>
        </Columns>
        <DetailTables>
            <telerik:GridTableView runat="server" DataKeyNames="HeaderKey" DataSourceID="SqlDataSource2" Name="DetailTable"  NoDetailRecordsText="No era details to display." NoMasterRecordsText="No era to display." CommandItemDisplay="Top" CommandItemSettings-ShowAddNewRecordButton="false" AutoGenerateColumns="false" AllowNaturalSort="False">

                <ColumnGroups>
                    <telerik:GridColumnGroup HeaderText="Patient" Name="Patient" HeaderStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridColumnGroup>

                    <telerik:GridColumnGroup HeaderText="Service" Name="Service" HeaderStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridColumnGroup>

                    <telerik:GridColumnGroup HeaderText="Provider" Name="Provider" HeaderStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridColumnGroup>

                    <telerik:GridColumnGroup HeaderText="Payer" Name="Payer" HeaderStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridColumnGroup>
                </ColumnGroups>

                <CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False"></CommandItemSettings>
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="HeaderKey" MasterKeyField="HeaderKey"></telerik:GridRelationFields>
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn DataField="PatientName" FilterControlAltText="Filter PatientName column" HeaderText="Patient Name" SortExpression="Name" UniqueName="PatientName" Display="true" ColumnGroupName="Patient">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="InsuredID" FilterControlAltText="Filter InsuredID column" HeaderText="Insured ID" SortExpression="InsuredID" UniqueName="InsuredID" Display="true" ColumnGroupName="Patient">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="GroupNumber" HeaderText="Group Number" SortExpression="GroupNumber" UniqueName="GroupNumber" Display="true" ColumnGroupName="Patient">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="PatientID" FilterControlAltText="Filter PatientID column" HeaderText="PatientID" SortExpression="PatientID" UniqueName="PatientID" Display="false" ColumnGroupName="Patient">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="ServiceDate" FilterControlAltText="Filter ServiceDate column" HeaderText="Service Date" SortExpression="ServiceDate" UniqueName="ServiceDate" Display="true" ColumnGroupName="Service">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="ServiceAmount" FilterControlAltText="Filter ServiceAmount column" HeaderText="Service Fee " SortExpression="ServiceAmount" UniqueName="ServiceAmount" Display="true" ColumnGroupName="Service" DataFormatString="{0:c}">
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="CoPay/CoIns" FilterControlAltText="Filter CoPay/CoIns column" HeaderText="Patient / Responsible" SortExpression="CoPay/CoIns" UniqueName="CoPay/CoIns" Display="true" ColumnGroupName="Service" DataFormatString="{0:c}">
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="ClaimAmtPaid" FilterControlAltText="Filter ClaimAmtPaid column" HeaderText="Amount Paid" SortExpression="ClaimAmtPaid" UniqueName="ClaimAmtPaid" Display="true" ColumnGroupName="Service" DataFormatString="${0:#,###.##}">
                        <ItemStyle HorizontalAlign="Right" />
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="PayerName" FilterControlAltText="Filter PayerName column" HeaderText="Payer Name" SortExpression="PayerName" UniqueName="PayerName" Display="false">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="PayeeName" FilterControlAltText="Filter PayeeName column" HeaderText="Payee Name" SortExpression="PayeeName" UniqueName="PayeeName" Display="true" ColumnGroupName="Provider">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="RenderingProvider" FilterControlAltText="Filter RenderingProvider column" HeaderText="Rendering Provider" SortExpression="RenderingProvider" UniqueName="RenderingProvider" Display="true" ColumnGroupName="Provider">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="NPI" FilterControlAltText="Filter NPI column" HeaderText="NPI" SortExpression="NPI" UniqueName="NPI" Display="true" ColumnGroupName="Provider">
                    </telerik:GridBoundColumn>

                    <telerik:GridBoundColumn DataField="CLP07_PayerClaimControlNumber" HeaderText="Payer Control No" SortExpression="CLP07_PayerClaimControlNumber" UniqueName="CLP07_PayerClaimControlNumber" Display="true" ColumnGroupName="Payer">
                    </telerik:GridBoundColumn>
                </Columns>
                <PagerStyle Position="TopAndBottom" />
            </telerik:GridTableView>
        </DetailTables>
        <PagerStyle Position="TopAndBottom" />
    </MasterTableView>
    <PagerStyle Mode="NextPrev" PageSizes="10;20;50" Position="TopAndBottom" />
</telerik:RadGrid>

david
Top achievements
Rank 1
 answered on 28 Jun 2016
5 answers
136 views
I was attempting to replicate the PdfProcessing demo at http://demos.telerik.com/aspnet-ajax/pdfprocessing/overview/defaultcs.aspx, and I am continually getting an error about  the "Size" property for "RadFixedPage.Size". It says "The type 'System.Window.Size' is defined in an assembly that is not referenced."

I am also experiencing a similar problem with the property "Point"
Ken
Top achievements
Rank 1
 answered on 28 Jun 2016
1 answer
69 views

Hi

I have a  radgrid with a custom form/edit template. When you hit the button to update ie it has a command name "update" it doesn't. It does cause the page to reload but if you debug it isPostBack is false! It's very frustrating as the same code is working in production but not in my local,test or uat environments.

 

 

Maria Ilieva
Telerik team
 answered on 28 Jun 2016
4 answers
173 views

Hello. Hoping to reach developers with a lot of experience using advanced edit form. I had reviewed a lot of demos and examples, unfortunately can't make any downloaded demos to work. Therefore hard to understand the implementation.

I'm still new to ASP.NET, while I'm very familiar with windows app development. Data is stored in SQL, data connection is done using Linq To SQL.
- in the Edit form I need to implement cascading drop down lists, filtering events by location, add viewing of PDF file that would be attached to each event, need recurrent functionality, need ability to assign to the hidden field the session value.
What would be the best approach? Do I try to use the AdvancedForm.ascx? How do I add it to my web app properly and reference it? I get lots of errors when I try to include it in the project (missing context, fields errors). Can someone provide step by step implementation? Even if it's at a very top level... One of the documentations articles said that if we use the advanced templates, we would lose recurring functionality... Is it still the case or is the documentation old?

Or should I look into advanced edit or insert form in RadDock? Will it allow to use the recurring functionality and cascading drop-downs? Which way is easier?

I appreciate your help!

Peter Milchev
Telerik team
 answered on 28 Jun 2016
6 answers
940 views
I created a .NET page using the demo ComboBox-CheckBoxes (http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx) as a guide. All worked great.
 
Then I added an asp:SqlDataSource to my page with ID="sdsEmailAddresses". I went to the telerik:RadComboBox and set DataSourceID="sdsEmailAddresses" (along with other data source settings). The combobox displayed the desired data and when you selected items in the list and click a button, the click event has the following, which successfully detects the number of items that where selected:

if (this.cmbTO.CheckedItems.Count != 0) {

//do something

}

But I need to use a complex Select Command that needs to be filtered on-the-fly. So instead of using the asp:SqlDataSource, I have a method that sets the radcombobox like the following:
 

this.cmbTO.DataTextField = "UserName";

this.cmbTO.DataValueField = "UserEmail";

this.cmbTO.DataSource = dtTbl;

this.cmbTO.DataBind();

This code properly populates radcombobox, but after making combo selections, and clicking the button, the Count always returns zero.
 
What's up with that?
Nencho
Telerik team
 answered on 28 Jun 2016
4 answers
586 views

Good morning,

I started a new ASPX web site application, and chose to use the responsive theme.

What I am trying to do, is only show the nav menu once I am logged in (with session variable, or other suggestion).

I tried using some <% if session[varisset] %> code within the master page, but I get "code blocks are not supported in this content.

I am also trying to code the masterpage.master to have an on load() that would redirect to login.aspx if not authenticated as well, but obviously not to continually redirect there if the web page is already at login.aspx.

could anyone help me out with this? or point me in the right direction?

Let me know if you require more info.

Nencho
Telerik team
 answered on 28 Jun 2016
5 answers
234 views

Good Afternoon,

I have a problem when i register in ajax manager a radgrid  with radcombobox edit template. The grid is inside to radwindow.

When i register the grid, the radcombobox stop works, not expand, but if i remove the ajax register in radajaxmanager all works fine but obviously the page made postback.

I appreciate the help in this issue. 

<telerik:RadGrid RenderMode="Lightweight" ID="GridProfesiones" CssClass="gridTable"  GridLines="None" AutoGenerateColumns="false" AllowSorting="false" runat="server" ShowStatusBar="true" OnNeedDataSource="GridProfesiones_NeedDataSource"
                               OnInsertCommand="GridProfesiones_InsertCommand" OnDeleteCommand="GridProfesiones_DeleteCommand">
                               <HeaderStyle CssClass="gridHead" />                               
                               <MasterTableView DataKeyNames="Cod" CommandItemDisplay="Bottom" NoMasterRecordsText="No registra profesiones" EditMode="InPlace"
                                   ItemStyle-CssClass="gridRow" AlternatingItemStyle-CssClass="gridRow">
                                   <Columns>
                                       <telerik:GridTemplateColumn UniqueName="DescripcionProfesion" HeaderText="Descripción" HeaderStyle-Font-Size="12px">
                                           <ItemTemplate>
                                               <%# Eval("Descripcion") %>
                                           </ItemTemplate>
                                           <EditItemTemplate>
                                               <telerik:RadComboBox runat="server" EmptyMessage="Debe seleccionar un nivel educativo" ID="cmbDescripcion"  Width="100%" OnDataBinding="cmbDescripcion_DataBinding" Filter="Contains"/>                                               
                                               <asp:RequiredFieldValidator ID="fvProfesion" runat="server" ControlToValidate="cmbDescripcion" Display="Dynamic" ForeColor="Red"
                                                   ErrorMessage="El campo es requerido" ValidationGroup="validationProf"></asp:RequiredFieldValidator>                                           
                                           </EditItemTemplate>
                                       </telerik:GridTemplateColumn>
                                       <telerik:GridEditCommandColumn UniqueName="Command" HeaderText="" HeaderStyle-Width="80px" UpdateText="Confirmar" CancelText="Cancelar" EditText="Modificar" HeaderStyle-Font-Size="12px">
                                       </telerik:GridEditCommandColumn>
                                       <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Eliminar" UniqueName="EliminarC" ConfirmDialogType="RadWindow"
                                           Resizable="false" ConfirmText="¿Eliminar Profesión?" HeaderText="Eliminar" HeaderStyle-Width="30px" HeaderStyle-Font-Size="12px">
                                       </telerik:GridButtonColumn>
                                   </Columns>
                                   <CommandItemTemplate>
                                       <div class="CommandLeft">
                                           <telerik:RadButton ID="btnAdd" Text="Agregar" CommandName="InitInsert" runat="server" Icon-PrimaryIconCssClass="rbAdd" />
                                       </div>
                                   </CommandItemTemplate>
                               </MasterTableView>
                           <ValidationSettings CommandsToValidate="PerformInsert,Update" EnableValidation="true" ValidationGroup="validationProf"/>
                           </telerik:RadGrid>

Maria Ilieva
Telerik team
 answered on 28 Jun 2016
1 answer
142 views

I have a master page in my project that has NO ajax associated with it at all.  I want to display a loading panel on a content page but can't seem to get this to work correctly.  the below code is what I'm trying to use.  I got this example online.  it works with a blank web page when I drop a script manager on it. I think the issue is that the script manager is on the master page not the content page.

 

any help would be appreciated

 

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="WebForm1.aspx.vb" Inherits="MySite.WebForm1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<style type="text/css">

.MyAjaxLoadingPanel
{
background:#fff url(images/InProcessWithText.gif) center center no-repeat;
}

</style>

<telerik:RadAjaxLoadingPanel
ID="RadAjaxLoadingPanel1"
runat="server"
CssClass="MyAjaxLoadingPanel"
Transparency="10" Skin="Default" />

    <telerik:RadAjaxManager
ID="RadAjaxManager1"
runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Panel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

<h1>Center Image in a RadAjaxLoadingPanel Using Background</h1>

<p>This is the recommended and easier way to center an image inside a RadAjaxLoadingPanel.</p>

<p>
<asp:Button
ID="Button1"
runat="server"
Text="Make an Ajax request"
OnClick="Button1_Click" />
</p>

<asp:Panel
ID="Panel1"
runat="server"
Width="700px"
Height="400px"
BorderColor="#666"
BorderWidth="1px">
    <br />
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</asp:Panel>
    </asp:Content>

Eyup
Telerik team
 answered on 28 Jun 2016
1 answer
94 views

Sometimes, when click on image icon on editor, it does not open perfectly.

It shows some green and white weird lines on page.

Also same for the table wizard.

On click of table properties option, it opens a table wizard pop up which shows green and white combinations of lines.

Both the pop up opening perfectly with other browser (Chrome,Firefox). Even working with Internet Explorer 10.

This problem is faced for Internet Explorer 11 only.

Need to fix this problem with Internet Explorer 11 also as our project is configured with Internet Explorer only.

Kindly help me ASAP.

Marin Bratanov
Telerik team
 answered on 28 Jun 2016
2 answers
282 views

Hi,

I have a RadIconTile with Shape=Wide - how do you centre the title text to the vertical middle of the box?

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?