Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
666 views
Currently have this code working however I would like to take it a step further especially in the grouping footer as it will sum the total.  We have columns that are returned as "Decimal" however they could either be currency or a percentage.  Is there anyway of way to check the number that is being returned to I can either perform a Sum or Avg?

All of my percentages are returned from the database as .### (ie .435).

Also can I create a "dynamic" total line when they group.  Just a simple "Totals for {0}",  ({0} is what they selected to group on and anyway of making just the group footer bold?
Protected Sub _SearchResults_ColumnCreated(sender As Object, e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles _SearchResults.ColumnCreated
        If e.Column.DataType.Name = "Decimal" Then
            CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "{0:N2}"
            CType(e.Column, Telerik.Web.UI.GridBoundColumn).Groupable = True
 
            CType(e.Column, Telerik.Web.UI.GridBoundColumn).Aggregate = Telerik.Web.UI.GridAggregateFunction.Sum
            e.Column.ItemStyle.HorizontalAlign = HorizontalAlign.Right
        End If
 
        'Specify the location of the Images
        e.Column.FilterImageUrl = "../images/Grid/Filter.gif"
        e.Column.SortAscImageUrl = "../images/Grid/SortAsc.gif"
        e.Column.SortDescImageUrl = "../images/Grid/SortDesc.gif"
    End Sub
Kostadin
Telerik team
 answered on 07 Jan 2014
1 answer
393 views
I am using a GridHyperLinkColumn with an ImageUrl defined. This produces a column with an image as the hyperlink. I want to add an ALT or Title tag to the image so that the end-user will know what clicking the image will do. There does not appear to be an "alt" or "title" property for the GridHyperLinkColumn. I've tried using the "text" property, but it does not work. Also, using the "HeaderText" property is not an option as I have the headers blank for those columns. Below is a sample of my code:

<telerik:GridHyperLinkColumn
ItemStyle-Width="20px" 
UniqueName="EditStudent"
ImageUrl="~/Common_Images/icons/View_Student.gif"
HeaderText=""
DataNavigateUrlFields="UserId"
DataNavigateUrlFormatString="~/Secure/EditStudent.aspx?uid={0}"
AllowFiltering="False" />

The screen shot shows four columns, each a separate GridHyperLinkColumn. The "Student" column (obfuscated) is a standard GridBoundColumn.

Any help is appreciated....
Dave
Top achievements
Rank 1
 answered on 07 Jan 2014
4 answers
222 views
Hi,

I've added ShowContentDuringLoad="false" to my otherwise functional RadWindow (see below). Now the loading dialog is displayed but never goes away. I can see in Fiddler that the request completed successfully with a 200 response. Do you have any idea why this is happening? The window loads correctly if the ShowContentDuringLoad attribute is either set to true or removed.

Thanks,
Joe

--------------------------------
      <telerik:RadWindow ID="ViewRRDialog" runat="server" Title="View PDF Report"
        Height="550px" Width="800px" ReloadOnShow="true" Modal="true"
        Skin="WebBlue" VisibleStatusbar="false" ShowContentDuringLoad="false">
Marin Bratanov
Telerik team
 answered on 07 Jan 2014
2 answers
190 views
How do I used Biff Excel Export but hide/disable the footer row from being exported?

Thank you.
Nick
Top achievements
Rank 1
 answered on 07 Jan 2014
3 answers
138 views
Hi, on http://demos.telerik.com/aspnet-ajax/button/examples/overview/defaultcs.aspx the link under Functionality to Embedded icons seems to be correct, but you get redirected to the documentation page instead of the demo page. The same happens if you click the link at the bottom to the demos page on the documentation page.

Erik
Top achievements
Rank 2
 answered on 07 Jan 2014
1 answer
128 views
Hi. I use radwindow for delete process confirmation. My code like below:

<telerik:RadWindowManager runat="server" ID="RadWindowManager1" OnClientCommand="">
          <ConfirmTemplate>
            <div>
              <h3>Kayıt Silme Onayı</h3>
                <label style="margin:10px 0 10px 0;display:block;margin:20px;">Kaydı Silmek İstediÄŸinize Emin misiniz ?</label>
              <div style="float:right;">
                <asp:Button ID="btnYes" runat="server" Text="Evet" CssClass="button ino-button-edit" OnClick="btnYes_Clcik" />
                <asp:Button ID="btnNo" runat="server" Text="Hayır" CssClass="button ino-button-delete-red" />
              </div>
              <div style="clear:both;"></div>
            </div>
          </ConfirmTemplate>
       </telerik:RadWindowManager>

When I click yes button I want delete the record. But yes button click does not fire. How can I achieve this.Thanks in advance.
Marin Bratanov
Telerik team
 answered on 07 Jan 2014
1 answer
156 views
Hi
please help im using GridClientDeleteColumn to delete my rows . It removes the row but not from database.
Princy
Top achievements
Rank 2
 answered on 07 Jan 2014
1 answer
116 views
Hi,

When i try to open a RADWindow on one of the image/button click i am getting the following error "SCRIPT5007: Unable to get property 'open' of undefined or null reference Telerik.Web.UI.WebResource.axd,". This issue occurs in IE10. The application works fine in other browsers like IE9,8,7,6, Firefox.

Thanks,
Venkatesh Santhanam
Marin Bratanov
Telerik team
 answered on 07 Jan 2014
3 answers
155 views

Have an application that populates a RadGrid that resides within a RadWindow.  We have logic that will automatically set the size of the RadWindow to 80% of the available browser window size. 

On initial load of the RadGrid the display is just fine and looks good.  However if the user were to group something it will then resize the grid into something smaller.  At times causing the Filters to no longer be visible.  I have noticed others having the same sort of issue and the suggestions were cause each column to be a standard width or specify the size of the grid to be larger than the window.  Also suggestions of setting the "autoscroll".  Tried implementing those suggestions but results caused further problems.  Maybe there is a solution that I haven't found. 

Attached you will find what things look like when the grid is first populated and then what happens when a grouping is applied.

Thank you for your help

<telerik:RadGrid ID="_SearchResults" runat="server"
    AllowPaging="True" CellSpacing="0"
    GridLines="None" ShowGroupPanel="True"
    AllowSorting="True" PageSize="25" Width="100%" Height="100%"
    AllowFilteringByColumn="True" EnableLinqExpressions="true" HeaderStyle-Font-Bold="true"
    EnableEmbeddedSkins="False" CssClass="RadGrid_ASI"
    FilterItemStyle-BackColor="#6d9c1f" FilterMenu-BackColor="#CCCCCC" >
    <HeaderStyle CssClass="RadHeaderStyle" ForeColor="#ffffff" />
    <GroupingSettings CaseSensitive="False" />
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True"
        ExportOnlyData="True" FileName="CUCustomSearch" >
        <Excel AutoFitImages="True" Format="ExcelML"  />
        <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm"
            BorderStyle="Medium" BorderColor="#666666">
        </Pdf>
    </ExportSettings>
    <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"
        ReorderColumnsOnClient="True">
        <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="2" />
        <%--<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />--%>
 
    </ClientSettings>
    <MasterTableView CommandItemDisplay="Top" InsertItemDisplay="Bottom" ShowGroupFooter="false"
        TableLayout="Auto" Width="100%"
        PagerStyle-NextPageImageUrl="../images/Grid/PagingNext.gif" PagerStyle-LastPageImageUrl="../images/Grid/PagingLast.gif"
        PagerStyle-PrevPageImageUrl="../images/Grid/PagingPrev.gif" PagerStyle-FirstPageImageUrl="../images/Grid/PagingFirst.gif">
    <CommandItemSettings ShowAddNewRecordButton="False"
        ShowExportToCsvButton="False" ShowExportToExcelButton="true" ShowRefreshButton="False" ShowExportToPdfButton="False" ExportToExcelImageUrl="../images/Grid/ExportToExcel.gif" ExportToPdfImageUrl="../images/Grid/ExportToPdf.gif" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
            Visible="True" CollapseImageUrl="../images/Grid/SingleMinus.gif" ExpandImageUrl="../images/Grid/SingleMinus.gif">
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False" CssClass="RadMenu_ASI">
    </FilterMenu>
</telerik:RadGrid>

Galin
Telerik team
 answered on 07 Jan 2014
1 answer
105 views
After editing the existing image file, I would like to make the file name to be readonly so that the user cannot change the file name to another name when saving to the server.

How do I accomplish this?
Vessy
Telerik team
 answered on 07 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?