Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
400 views
Is it possible to use the File explorer in a dynamically added user control?

Thanks,
Dave
Vessy
Telerik team
 answered on 15 Jul 2015
1 answer
117 views

Good morning,

 I have a RadTreeView in an EditForm Template for a RadGrid.  The data in the TreeView is repetitive, such as (FullPathDelimiter="\"):

2014\Archive
2014\eMail
2014\Taxes
2015\Archive
2015\eMail
2015\Taxes
2016\Archive
2016\eMail
2016\Taxes

Archive
eMail
Taxes

When I try to set the SelectedValue or SelectedText to the FullPath value (like "2014\Taxes"), nothing is set.  When I set it to something like "Archive", it picks the first node with that value "2014\Archive".

How can I set the selected value by using the fullpath?

Thx!

Steve

SickPup404
Top achievements
Rank 1
 answered on 15 Jul 2015
2 answers
297 views

I have the following datetimepicker:

<telerik:RadDateTimePicker ID="dtpkRequest" Runat="server" Culture="en-US" Width="200px"
     OnSelectedDateChanged="dtpkRequest_SelectedDateChanged">
     <TimeView CellSpacing="-1" TimeFormat="HH:mm"></TimeView>
     <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
     <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
        EnableWeekends="True" FastNavigationNextText="&amp;lt;&amp;lt;"></Calendar>
     <DateInput DisplayDateFormat="MM/dd/yyyy HH:mm" DateFormat="M/d/yyyy" LabelWidth="40%">
        <EmptyMessageStyle Resize="None"></EmptyMessageStyle>
        <ReadOnlyStyle Resize="None"></ReadOnlyStyle>
        <FocusedStyle Resize="None"></FocusedStyle>
        <DisabledStyle Resize="None"></DisabledStyle>
        <InvalidStyle Resize="None"></InvalidStyle>
        <HoveredStyle Resize="None"></HoveredStyle>
        <EnabledStyle Resize="None"></EnabledStyle>
     </DateInput>
     <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
</telerik:RadDateTimePicker>

On the page load, it displays the date and time in MM/dd/yyyy HH:mm format.  However, once I set focus to the input area, it changes to MM/dd/yyyy hh:mm tt format.  As soon as the control loses focus, it converts back to MM/dd/yyyy HH:mm format, so it is only when the input area has focus that the control displays the correct format.  it does allow me to enter the time component in either 12- or  24-hour format.

How can I get it to display the time in 24-hour format on focus?

 Thank you!

Steve LaForge
Top achievements
Rank 1
 answered on 15 Jul 2015
3 answers
218 views

Hello,

I am a novice programmer and I have come to a standstill of how to proceed next. Please find my grid .aspx code below:

 

<telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="true" AutoGenerateColumns="False" Skin="MetroTouch" CssClass="RadGrid_ModernBrowsers"
            PageSize="30" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" OnItemDataBound="RadGrid1_ItemDataBound"
            AllowFilteringByColumn="True" ShowGroupPanel="true" CanRetrieveAllData ="False"
            OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnNeedDataSource="RadGrid1_NeedDataSource">
            <PagerStyle Mode="NextPrevAndNumeric" />
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView DataKeyNames="DBName, ConfigName, TransactionGUID" AllowMultiColumnSorting="False" Font-Size ="9" HeaderStyle-Font-Bold="true">                
                        <DetailTables>
                            <telerik:GridTableView DataKeyNames="DBName1, ConfigName1, SectionName1, TransactionGUID1" Name="SectionDetails" Width="100%" Font-Size ="9">
                                <Columns>
                                    <telerik:GridBoundColumn SortExpression="SectionName1" HeaderText="Section Name" HeaderButtonType="TextButton"
                                        DataField="SectionName1" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="RejectedLines1" HeaderText="Rejected Lines" HeaderButtonType="TextButton"
                                        DataField="RejectedLines1" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                                    </telerik:GridBoundColumn>
                                   </Columns>
                            </telerik:GridTableView>
                        </DetailTables>                              
                <Columns>
                    <telerik:GridBoundColumn SortExpression="DBName" HeaderText="DB Name" HeaderButtonType="TextButton"
                        DataField="DBName" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="DateTime" HeaderText="Date & Time" HeaderButtonType="TextButton"
                        DataField="DateTime" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="ConfigName" HeaderText="Config Name" HeaderButtonType="TextButton"
                        DataField="ConfigName" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="LinesImported" HeaderText="Lines Imported" HeaderButtonType="TextButton"
                        DataField="LinesImported" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="Status" HeaderText="Status" HeaderButtonType="TextButton"
                        DataField="Status" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="ErrorMessage" HeaderText="Error Message" HeaderButtonType="TextButton"
                        DataField="ErrorMessage" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" >
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

 

I have a bound column titled 'Rejected Lines' in the child grid, I am trying to sum it up and display it as a seperate column in the parent grid titled 'Total Rejected Lines'. I know this is pretty straightforward for some of you but I have been struggling with this for quite sometime now. Any help will be appreciated !

Eyup
Telerik team
 answered on 15 Jul 2015
6 answers
358 views

Hi All,

I am using RadEditor control n the grid.

I want to show the only first 50 character content or may be forst row from the content.

Please help me how to achieve this.

Thanks,

Harish Patil

Harish
Top achievements
Rank 1
 answered on 15 Jul 2015
1 answer
211 views

 

Dear Team,

I am exporting RadEditor content into Pdf by using the below code.

RadEditor1.ExportSettings.Pdf.PageLeftMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PageLeftMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PageTopMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PageBottomMargin = System.Web.UI.WebControls.Unit.Pixel(1);
RadEditor1.ExportSettings.Pdf.PaperSize = GridPaperSize.A4;
RadEditor1.ExportSettings.Pdf.PageWidth = System.Web.UI.WebControls.Unit.Percentage(100);
RadEditor1.ExportSettings.Pdf.PageHeaderMargin = System.Web.UI.WebControls.Unit.Pixel(1);        
RadEditor1.ExportSettings.Pdf.ForceTextWrap = true;

RadEditor1.ExportToPdf();

 

I need to print page number in every page of pdf(Page 1 of 10, Page 2 of 10).

Please advice

 

Thanks in advance,

Prathap

 

 

 

Ianko
Telerik team
 answered on 15 Jul 2015
1 answer
204 views

Is there a way to create tornado charts with telerik html charts?

Similar to one in the below link :

http://smartorg.com/wp-content/uploads/2011/10/Tornado.png

 

Stanimir
Telerik team
 answered on 15 Jul 2015
3 answers
221 views

Hello I was wondering if it were possible to disable ajax for just an individual tab so that when clicked it can do the full post back (triggering an export of radgrid).

 I have a handler that sets up the disabled ajax controls for each page: (the following works, however I only want a single rad tab on the strip to do full post backs, however when I put the ID of the radtab (ERA_Tab) in place of rts_ClaimEditor (the radtabstrip) in the "target.indexOf()" portion, it no longer works.

 ScriptManager.RegisterStartupScript(Page,
                typeof(Page),
                "disableAjaxOnExport_" + this.UniqueID, @"
                    OnAjaxRequestStart.handlers.push(function(sender, args){{
                        var target = args.get_eventTarget();
                        if (target.indexOf('btnERAPDF') >= 0 || target.indexOf('btnERAExcel') >= 0 || target.indexOf('rts_ClaimEditor')){{
                            args.set_enableAjax(false);
                        }}
                    }});",
                true);

 

Here also is the radajaxmangerproxy

  <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
   <telerik:AjaxSetting AjaxControlID="rts_ClaimEditor">
       <UpdatedControls>
   <telerik:AjaxUpdatedControl ControlID="rmp_ClaimEditor" LoadingPanelID="ClaimEditorLoadingPanel" UpdatePanelCssClass="" />
   <telerik:AjaxUpdatedControl ControlID="rts_ClaimEditor" UpdatePanelCssClass="" />
</UpdatedControls>
   </telerik:AjaxSetting>        
        <telerik:AjaxSetting AjaxControlID="ERA_Tab">

        </telerik:AjaxSetting>

</AjaxSettings>
    </telerik:RadAjaxManagerProxy>

 

and lastly here is my tab strip

<telerik:RadTabStrip ID="rts_ClaimEditor" runat="server" SelectedIndex="0" Orientation="VerticalLeft" MultiPageID="rmp_ClaimEditor" EnableEmbeddedSkins="False" ClickSelectedTab="true" AutoPostBack="true"
   OnTabClick="rts_ClaimEditor_TabClick">
   <Tabs>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Summary" ImageUrl="/Images/icons/claimremedi_icon_ClaimEditor_Summary.png" TabIndex="1" Text="SUMMARY" Selected="True" Value="1"></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Details" ImageUrl="/Images/icons/claimremedi_icon_Enrollment.png" TabIndex="2"  Text="CHARGE DETAILS" Value="2" ></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_ProvInfo" ImageUrl="/Images/icons/claimremedi_icon_ClaimEditor_provider.png" TabIndex="3" Text="PROVIDER INFO" Value="3" ></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Editor" ImageUrl="/Images/icons/claimremedi_icon_Enrollment_Notes.png" TabIndex="4" Text="EDITOR" Value="4" Visible="false"></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Form" ImageUrl="/Images/icons/claimremedi_icon_ClaimEditor_form.png" TabIndex="5" Text="FORM" Value="5" ></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Audit" ImageUrl="~/Images/icons/ClaimView_audit1.png" TabIndex="6" Text="AUDIT" Value="6" ></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Notes" ImageUrl="/Images/Icons/ClaimView_claimnotes1.png" TabIndex="7" Text="NOTES" Value="7" ></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Assign" ImageUrl="/Images/icons/ClaimView_assign1.png" TabIndex="8" Text="ASSIGN" Value="8" ></telerik:RadTab>
<telerik:RadTab runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_Archive" ImageUrl="/Images/icons/archive_circle28x.png" TabIndex="9" Text="ARCHIVE" Value="9" ></telerik:RadTab>
        <telerik:RadTab ID="ERA_Tab" runat="server" CssClass="tab" SelectedCssClass="tabSelected" HoveredCssClass="tabHovered"  PageViewID="pv_ERA" ImageUrl="/Images/icons/claimremedi_roundicon_era_Sm.png" TabIndex="10" Text="VIEW ERA" Value="10" ></telerik:RadTab>
   
        </Tabs>
</telerik:RadTabStrip>

Nencho
Telerik team
 answered on 15 Jul 2015
1 answer
97 views

Hi all,

I bind my grid with RadClientDataSource. This source have Select Url to another subdomain via https:

This works in IE10, Chrome and Firefox, but not in IE9. In IE9 fired OnRequestFailed and args.get_error() returns the message No Transport.

If i added to my page the $.support.cors = true; then failed request with Access Denied error.

 

Thank you in advance.

Viktor Tachev
Telerik team
 answered on 15 Jul 2015
3 answers
90 views

Hello all,

I have a radgrid in PopUp edit mode.

I use the normal GridEditCommandColumn button for editing and when clicked the popup screen (webusercontrol) popups correctly and everything is normal.

I have an external button for adding new records and it's click command does a grdManuf.MasterTableView.InsertItem().

When I click the add button the insert popup screen is not shown, but if the next step is to click the edit button for any other record the edit popup screen is shown and the insert popup screen is exactly behind it.

I can drug the edit form and I can see the insert form behind (see the attached screen). Both screens are operational.

The radgrid and the add button belong to the same update panel.

It's obvious that I on post back I must add some coding, but ...where and what? 

I would appreciate any help on where to look for a mistake which prevents the insert screen to initially be hidden.

 

 

 

Eyup
Telerik team
 answered on 15 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?