Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
814 views
Hello,

I have issue with date format while export to excel the RadGrid,

I have set  ExportSettings-Excel-Format="Biff" format to avoid the warning message while open the excel sheet.

Now i have DateTime column in my RadGrid and i am exporting Radgrid view , but i am not able able change the datetime format while exporting to excel.

The format of DOS, follow up date, appt time and pick up time when exporting to excel (pic 2) should have the same format as in the (pic 1)

For more details please check the attach screen shot.

Let me know if you required more information.

Awaiting for the positive and quick response.

Thanks,
Hiren
Kostadin
Telerik team
 answered on 06 Mar 2015
3 answers
125 views
Hi, I need to have (for a mobile web-app) a menu.
RadNavigation is very easy and nice for this target, but I want a menu with fly-out effect.
(example : http://mobify.github.io/pikabu/)

In the example of RadNavigator (http://demos.telerik.com/aspnet-ajax/navigation/mobile-and-touch-support/responsive-behavior/defaultcs.aspx?product=navigation)
I see that I want.. but isn't the RadNavigation but it's the SkinChhoser.

If is possibile with .js trasform the effect of RadNavigation ?


lupotana
Top achievements
Rank 1
 answered on 06 Mar 2015
2 answers
221 views
Hi all, 

I'm working with Telerik Web UI 2014.2.724.45
My Master Grid has some Sub Grids, but the Expand/Collapse button not show even though the Sub Grids have values

I used IE Developer Tool to view HTML source and found that the "<tr>" has inline style "display: none;" I remove this style then the Sub Grids appears.
Also, as I observed, the Sub Grids have Expand/Collapse button for their Sub Grids (level2). (see attachment)

---------------------------------------------------------------------
PrintableRadGrid inherits RadGrid

<trstk:PrintableRadGrid id="ListRadGrid" AutoGenerateHierarchy="false" AutoGenerateColumns = "false"
     AllowPaging="true" OnItemCreated="ListRadGrid_ItemCreated" OnNeedDataSource="ListRadGrid_NeedDataSource"
     OnDetailTableDataBind="ListRadGrid_DetailTableDataBind" runat="server" Visible="false">
     <MasterTableView NoDetailRecordsText="No records to Display" HierarchyLoadMode="Client"
      PageSize="10" AllowCustomPaging="true" AutoGenerateColumns="false" TableLayout="Auto">
     </MasterTableView>
     <PagerStyle AlwaysVisible="true" />
   </trstk:PrintableRadGrid>

Please help.
Konstantin Dikov
Telerik team
 answered on 06 Mar 2015
3 answers
1.2K+ views
HI ,
        In my Radgrid i have a checkbox column , I binded it with the data

 

 

 

<telerik:GridCheckBoxColumn DataField="IsActive"

HeaderText="IsActive"

SortExpression="IsActive" UniqueName="chkIsActive">

 

</telerik:GridCheckBoxColumn>
In edit mode the check box is in edit mode , but getting the value from the particular checkboxcolumn is the problem.. Please help me to retreive the value from the checkbox on clicking update after editing. Thanks in advance..


I tried this but its not working
aspx.cs
----------

CheckBox

 

chkIsActive = (CheckBox)item.FindControl("chkIsActive");

if

 

(chkIsActive != null)

{

if (chkIsActive.Checked)

isActive =

"1";

else

isActive =

"0";

}
please help me with a code

John
Top achievements
Rank 1
 answered on 05 Mar 2015
1 answer
87 views
Hi,
Is there any way to get the changes that were made to a RadInput control on the client side when the page posts back? For example, I know that a RadTextBox can be set_visible() or enable() on the client side. How can I detect whether the box was visible/hidden or enabled/disabled by the client after the page posts back?
Maria Ilieva
Telerik team
 answered on 05 Mar 2015
2 answers
126 views
I have painted this graph.png (please, find attached) with RadChart component. My problem is that I need to paint Red, Blue, Yellow, Green and then White again or transparent, How can I do it? I only need four colours so I need to paint white solid in my last serie or something like that.
Thanks
Víctor
Top achievements
Rank 1
 answered on 05 Mar 2015
2 answers
188 views
I have an interface with several tabs and a RadMultiPage where all content is loaded so that you don't have to do a postback as you switch tabs.  I have a RadEditor on 3 of the tabs with a custom toolbar (via toolbar file).  The toolbar buttons work on the first editor, but when I click on a button in the second or third, It scrolls me to the top of the page and adds a # to the end of the URL in the browser address bar.

I'm using IE 11.

Any thoughts would be appreciated.

Thank you.
LeBear
Top achievements
Rank 1
 answered on 05 Mar 2015
1 answer
101 views
Good afternoon - using the Entity Framework / an Entity Data Source, I need to get the data the user has filtered from the Grid. What's the easiest way? 

It seems difficult to iterate through the entire paged data-set getting ID's and then re-fetching all the rows based on the Primary Key/ID. 

I've found a "double rebind" hack works quite well - though not sure on performance yet - but I'd be interested to hear the best options:

        private bool StoreInLocalVariable;
        private Collection<CustomerData> CustomerData;

protected
void btnGetData_Click(object sender, EventArgs e)
{
   // Rebind grid without paging to get full data-set
                StoreInLocalVariable = true;        
            rgCustomerBalance.AllowPaging = false;
            rgCustomerBalance.Rebind();
            var result = CustomerData;
 
// Restore grid back to normal (i.e. with paging)
            StoreInLocalVariable = false;
            rgCustomerBalance.AllowPaging = true;
            rgCustomerBalance.Rebind();
 
           // Do something with Result
}
 
        // Entity Data Source Selected
        protected void edsCustomerData_Selected(object sender, EntityDataSourceSelectedEventArgs e)
        {
            if (StoreInLocalVariable)
            {
                CustomerData = new Collection<CustomerData>(e.Results.Cast<CustomerData>().ToList());
            }
        }
Konstantin Dikov
Telerik team
 answered on 05 Mar 2015
4 answers
170 views
<telerik:RadWindowManager ID="rwmSalesCallList" runat="server" Style="z-index: 3">
<Windows
<telerik:RadWindow ID="rwSalesCallList_PDFExport" runat="server"
    OnClientClose="rwSalesCallList_PDFExport_OnClientClose"
    Modal="true"
    AutoSize="true"
    Behaviors="Close"
    ShowOnTopWhenMaximized="false">
<ContentTemplate>
<asp:Panel ID="pSalesCallList_PDFExport" runat="server">
            <asp:ValidationSummary ID="vsReportSelection_Reporting" runat="server"
                        HeaderText="ERROR! The report cannot be generated due to the following reasons:
                        "
                        ValidationGroup="vgReportSelection" CssClass="LabelWarning"
                        ShowMessageBox="true" ShowSummary="false"
                         />
            <table border="0" cellpadding="5" cellspacing="0" class="ContentTableBordered TableCentered" style="border: solid 1px black" width="450">
            <tr>
                <td class="ContentTableCellTitleDark LabelBold LabelMedium " colspan="2" style="background-color: #808080;color: #FFFFFF;font-size: 10pt;font-weight: bold;border-left: #CCCCCC outset 1px;border-right: #CCCCCC outset 2px;border-top: #CCCCCC outset 1px;border-bottom: #CCCCCC outset 2px;vertical-align:top;">
                    <asp:Label ID="lblErrorTitle" runat="server"
                        Text="Select Filter Criteria Below"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tableSectionLabelCell" nowrap style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;">
                    <asp:Label ID="lblReportSelection_StartDateLabel" runat="server" Text="Start Date:" ViewStateMode="Disabled" ></asp:Label>
                    <asp:RequiredFieldValidator ID="rfvReportSelection_StartDate" runat="server"
                        ErrorMessage="Start Date is required."
                        ToolTip="Start Date is required."
                        Text="*"
                        ControlToValidate="rdpReportSelection_StartDatePicker"
                        InitialValue=""
                        ValidationGroup="vgReportSelection"></asp:RequiredFieldValidator
                    <asp:comparevalidator id="cvReportSelection_StartDate" runat="server"
                        Operator="DataTypeCheck"
                        ControlToValidate="rdpReportSelection_StartDatePicker"
                        Type="Date"
                        ErrorMessage="The value for Start Date is invalid."
                        ToolTip="The value for Start Date is invalid."
                        Text="*"
                        EnableClientScript="true"
                        ValidationGroup="vgReportSelection"></asp:comparevalidator>                                                                                            
                </td>
                <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break :  break-all;">
                    <telerik:RadDatePicker ID="rdpReportSelection_StartDatePicker" runat="server" Style="z-index: 4">
                        <DateInput runat="server" DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy"></DateInput>
                    </telerik:RadDatePicker>
                </td>
            </tr>
            <tr>
                <td class="tableSectionLabelCell" nowrap style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;">
                    <asp:Label ID="lblReportSelection_EndDateLabel" runat="server" Text="End Date:" ViewStateMode="Disabled" ></asp:Label>
                    <asp:RequiredFieldValidator ID="rfvReportSelection_EndDate" runat="server"
                        ErrorMessage="End Date is required."
                        ToolTip="End Date is required."
                        Text="*"
                        ControlToValidate="rdpReportSelection_EndDatePicker"
                        InitialValue=""
                        ValidationGroup="vgReportSelection"></asp:RequiredFieldValidator
                    <asp:comparevalidator id="cvReportSelection_EndDate" runat="server"
                        Operator="DataTypeCheck"
                        ControlToValidate="rdpReportSelection_EndDatePicker"
                        Type="Date"
                        ErrorMessage="The value for End Date is invalid."
                        ToolTip="The value for End Date is invalid."
                        Text="*"
                        EnableClientScript="true"
                        ValidationGroup="vgReportSelection"></asp:comparevalidator>
                    <asp:comparevalidator id="cvReportSelection_EndDateGreater" runat="server"
                        Operator="GreaterThanEqual"
                        ControlToCompare="rdpReportSelection_StartDatePicker"
                        ControlToValidate="rdpReportSelection_EndDatePicker"
                        Type="Date"
                        ErrorMessage="The value for End Date must be equal or greater than the Start Date."
                        ToolTip="The value for End Date must be equal or greater than the Start Date."
                        Text="*"
                        EnableClientScript="true"
                        ValidationGroup="vgReportSelection"></asp:comparevalidator>                           
                                                                                                                          
                </td>
                <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break :  break-all;">
                    <telerik:RadDatePicker ID="rdpReportSelection_EndDatePicker" runat="server" Style="z-index: 4">
                        <DateInput runat="server" DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy"></DateInput>
                    </telerik:RadDatePicker>
                </td>
            </tr>
             <tr>
                <td class="tableSectionLabelCell" style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;">
                    <asp:Label ID="lblReportSelection_RegionLabel" runat="server"
                        Text="Sales District/Region:" ViewStateMode="Disabled" ></asp:Label>
                </td>
                <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break :  break-all;">
                    <telerik:RadComboBox ID="rcbReportSelection_Region" runat="server"
                        DataValueField="Id"
                        DataTextField="Description"
                        AppendDataBoundItems="true"
                        MarkFirstMatch="True" Style="z-index: 5000">
                        <Items>
                        <telerik:RadComboBoxItem runat="server" Text="-- ALL --" Value="-1" />
                        </Items>
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td class="tableSectionLabelCell" style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;">
                    <asp:Label ID="lblReportSelection_IndividualLabel" runat="server"
                        Text="Individual:" ViewStateMode="Disabled" ></asp:Label>
                </td>
                <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break :  break-all;">
                <telerik:RadComboBox ID="rcbReportSelection_Individual" runat="server"
                    DataValueField="Id"
                    DataTextField="Description"
                    AppendDataBoundItems="true"
                    DropDownWidth="250px"
                    MarkFirstMatch="True" Style="z-index: 5000">
                    <Items>
                    <telerik:RadComboBoxItem runat="server" Text="-- ALL --" Value="-1" />
                    </Items>
                </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td class="tableSectionLabelCell" style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;">
                    <asp:Label ID="lblReportSelection_TradingPartnerLabel" runat="server"
                        Text="Trading Partner:" ViewStateMode="Disabled" ></asp:Label>
                </td>
                <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break :  break-all;">
                <telerik:RadComboBox ID="rcbReportSelection_TradingPartner" runat="server"
                    DataValueField="TradingPartnerNo"
                    DataTextField="Name"
                    AppendDataBoundItems="true"
                    DropDownWidth="275px"
                    MarkFirstMatch="True" Style="z-index: 5000">
                    <Items>
                    <telerik:RadComboBoxItem runat="server" Text="-- ALL --" Value="" />
                    </Items>
                </telerik:RadComboBox>
                </td>
            </tr>
 
            <tr>
                <td class="ContentTableCellFooterDark LabelBold LabelMedium TableCellMiddleCenter" colspan="2" style="background-color: #808080;color: #FFFFFF;font-size: 10pt;font-weight: bold;border-left: #CCCCCC outset 1px;border-right: #CCCCCC outset 2px;border-top: #CCCCCC outset 2px;border-bottom: #CCCCCC outset 1px;vertical-align:top;">
                    <telerik:RadButton ID="btnReportSelection_GeneratePDF" runat="server"
                        Text="Generate PDF" CssClass="Button"
                        OnClick="btnReportSelection_GeneratePDF_Click"
                        ValidationGroup="vgReportSelection"
                        OnClientClicking="SubmitAllPDFExport"
                        Icon-PrimaryIconUrl="~/images/icons/acrobat.gif"
                        Icon-PrimaryIconHeight="16px"
                        Icon-PrimaryIconWidth="16px" />
                    <telerik:RadButton ID="btnReportSelection_CancelPDF" runat="server"
                        Text="Cancel" CssClass="Button" OnClientClicking="rwSalesCallList_PDFExport_Close"
                         Icon-PrimaryIconCssClass="rbCancel"/>
                </td>
            </tr>                      
        </table>
</asp:Panel>
<asp:Panel ID="pSalesCallList_PDFExportWait" runat="server" style="display:none;">
<br />
<br />
<br />
<center><asp:Image ID="imgSalesCallList_MainLoadingPanelDropDown" runat="server" ImageUrl="~/images/loading3.gif" ImageAlign="Bottom" /></center>
</asp:Panel>
 
                        
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
I having a strange problem with using the window control with a content template in modal that controls such as comboboxes, calendars, etc. are appearing behind the window in the shaded modal part. I have tried adjusting the z-indexing of the controls to no avail. Here is the window code and a screen shot of the issue.

​
James Daresta
Top achievements
Rank 1
 answered on 05 Mar 2015
1 answer
149 views
Hello all,

 I am using a telerik ragdridview in my wpf view.In one of the column of telerik
radgridview i am usingGridViewImageColumn .once
the document in one grid column loads successfully the image column will show
success icon else failure icon.But the problem is after completing of this
process once i clik on filtering icon (top of rad grid) of the image
column text is showing as "System.Window.Control.Images" instead of
icon symbols.

I had overrideen the FilteringDisplayFunc of
GridViewImageColumn..My code is :



xaml:

<img:ImageFilterColumn DataMemberBinding="{BindingDocumentStatus}"     Header="{BindingHeaderStatus}"         ImageStretch="None"          ShowFieldFilters="False" /><br>

code behind:

PublicClass ImageFilterColumn    Inherits GridViewImageColumn
<
br><br>e<br><br>ProtectedOverridesReadOnlyProperty FilteringDisplayFunc() As Func(OfObject, Object)     
      GetReturnAddressOf ImageFilterColumn.ConvertUriStringToImage        
   EndGetEndProperty       
 PublicSharedFunction ConvertUriStringToImage(uriString AsObject) AsObject
Dim image As Image = New Image()          
image.Source = New BitmapImage(New Uri(uriString.ToString()))    
       Return image    
    EndFunction
EndClass<
br>

please
suggest what to do to get the icons in filtering also.
Dimitrina
Telerik team
 answered on 05 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?