Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
Hi,

My Plan is to constuct a ASP.NET MVC application in near future.
Problem is that we are currently using a RadFilter control in an ASP.NET WebForms project and we want to keep the functionality.

Is there a way to use the RadFilter ASP.NET AJAX control also within a ASP:NET MVC 3 or higher application?

Thanks in advance.
Rumen
Telerik team
 answered on 02 Apr 2018
0 answers
80 views

Hello,

I have GridAttachmentColumn in a DetailTable of a RadGrid that is Ajaxified. I get following error when clicking 'Download':

"Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled."

This error does not happen if the GridAttachmentColumn is inside the main table. But unfortunately I can't have it in the main table, it has to be in DetailTable.

  <telerik:RadGrid  ID="xx"  AutoGenerateColumns="false" AlternatingItemStyle-HorizontalAlign="Left"
                                        HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ShowHeadersWhenNoRecords="true"
                                        EnableNoRecordsTemplate="true" runat="server" AllowFilteringByColumn="false" AllowPaging="false"
                                        EnableViewState="true" AllowSorting="True" GridLines="None" Skin="WebBlue" ShowFooter="True" ShowStatusBar="True"
      OnDetailTableDataBind="xx"                              
      >
                                        <GroupingSettings CaseSensitive="false" />
                                        <AlternatingItemStyle BackColor="gainsboro" />
      <ClientSettings>
                                <ClientEvents OnCommand="gridCommand"></ClientEvents>
                            </ClientSettings>
                                        <MasterTableView DataKeyNames="xx" PageSize="5">
 
                                                <DetailTables>
                                                    <telerik:GridTableView
                                                        EnableHierarchyExpandAll="true"
                                                        >
                                                        <HeaderStyle CssClass="MostInnerHeaderStyle" />
                <ItemStyle CssClass="MostInnerItemStyle" />
                <AlternatingItemStyle CssClass="MostInnerAlernatingItemStyle" />
 
                                                        <Columns>
                                                             <telerik:GridBoundColumn Display="true"  HeaderText="xx" DataField="xx">
                                                             </telerik:GridBoundColumn>
 
                                                             <telerik:GridBoundColumn Display="true"  HeaderText="xx" DataField="xx">
                                                             </telerik:GridBoundColumn>
 
                                                             <telerik:GridAttachmentColumn  SortExpression="xx" DataSourceID="SqlDataSource1" MaxFileSize="1048576"
                                                                HeaderText="" AttachmentDataField="document" AttachmentKeyFields="xx" FileNameTextField="xx" DataTextField="xx" DataTextFormatString="Download File"
                                                                UniqueName="attachment"  >
                                                            </telerik:GridAttachmentColumn>
                                                        </Columns
                                                    </telerik:GridTableView>
                                                    
                                                </DetailTables>
 
....
 
<telerik:RadCodeBlock ID="RadCodeBlock3" runat="server">
    <script type="text/javascript">
 
        
 
     
 
        function gridCommand(sender, args) {
            var manager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>');
 
             
            if (args.get_commandName() == "DownloadAttachment") {
                manager.set_enableAJAX(false);
 
                setTimeout(function () {alert(args.get_commandName());
                    manager.set_enableAJAX(true);
                }, 0);
            }
        };
 
....
Darius
Top achievements
Rank 1
 asked on 31 Mar 2018
4 answers
309 views

Parser Error Message: Could not load file or assembly 'DotNetNuke HttpModules' or one of its dependencies. The system cannot find th efile specified. (C:\sourceFiles\CFAB\MMS\web.config line 119)

I recently upgraded DotNetNuke from 4.9.2 to 5.1.0. I converted my Desktop module to a Web Application Project. Many of the Telerik controls work fine (RadGrid, for example), But I have two pages which produce the above error. One has a RadEditor. Both use Rad to open other windows. So I tried the Telerik.DNN.MOdules_2009_2_701_trial.zip. I installed this module into DNN, but got the same error.

My WAP module project is in under DesktopModules. It has references to DotNetNuke.dll, Telerik.Charting.dll and Telerik.Web.UI.dll. These all reside in the site's bin directory. The Visual Studio 2008 .sln file is in the module folder.

These pages are working fine in DotNetNuke 5.1 when compiled along with the DotNetNuke source. The problem only shows up when converting the module to a Web Application Project. I also have two other WAP based modules on the same site that are deployed and working fine. These do not contian Telerik controls.
 

pgp

Rumen
Telerik team
 answered on 30 Mar 2018
6 answers
215 views

We have a grid that requires horizontal scrolling due to the number of columns present.  We also have Static Headers = true so the headers remain while vertical scrolling.  When in Batch edit, with AllowKeyboardNavigation = true, the headers do not scroll horizontally with the data.

The width of the grid is set at 100% and each column is sized using headerstyle-width.  itemstyle-width is not used anywhere.

When we remove the static headers, the headers scroll horizontally correctly, but of course, the headers scroll out of view when you vertically scroll.

Is there some way to get the horizontal scrolling to work properly with keyboard navigation and keep Static Headers?

 

Thanks

Chuck

 

Attila Antal
Telerik team
 answered on 30 Mar 2018
1 answer
948 views

Hi,

I want to prevent Cross-Frame scripting attack. Note that I am not asking about Cross-site Scripting attack, but Cross-Frame.

Security scan flags my website with Cross-Frame vulnerability. However I don't see IFRAME anywhere in the rendered markup. But I am positive this is related to Telerik controls. How do you prevent cross-frame attack, which I believe allows attacker to inject alternate content into an IFRAME on the page.

I have the following Telerik controls/Assemblies on page:

1) Telerik.Web.UI

2) RadScriptManager

3) RadAjaxManager

4) RadStyleSheetManager

5) RadMenu

6) RadComboBox

7) RadPanelBar

8) RadGrid

9) RadAjaxManagerProxy

Marin Bratanov
Telerik team
 answered on 30 Mar 2018
5 answers
302 views

I would like to know how to have OnBatchEditCellValueChanged even on my batch edit grid to fire on every key press of the edit UI.  Off hand I'm trying to find a way to do it from the MAGIC place holder I have below, in the OnKeyPress event.

 

                        <telerik:GridTemplateColumn HeaderText="Amount" SortExpression="Amount" UniqueName="Amount"
                             HeaderStyle-Width="140px">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblAmount" Text='<%# Eval("Amount", "{0:C}") %>'  
                            </ItemTemplate>
                            <EditItemTemplate>
                                <span style="white-space:nowrap;">
                                    <telerik:RadNumericTextBox Width="100%" runat="server" ID="rntAmount" Type="Currency" MaxLength="13" 
                                        NumberFormat-DecimalDigits="2" MinValue="0" ClientEvents-OnKeyPress="MAGIC" />  
                                    </span>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>

 

So far I have played around with:

function MAGIC(sender, args){

            var manager = rgMyRadGrid.get_batchEditingManager();
            var cell = manager.get_currentlyEditedCell();
            var cellValue = manager.getCellValue(cell);

           manager.endUpdate();  //maybe this will auto fire the event?  Didn't seem too...

           manager.changeCellValue(cell, cellValue); //this could work, but is messy... cellValue is the 'old' value prior to key press and it highlights the text every key press.

}

Vasssek
Top achievements
Rank 1
 answered on 30 Mar 2018
4 answers
329 views
i want to make a tabstrip with very small tabs, which i guess means reducing the padding in the tabstrip common css file , but then that will affect all tabstrips (will it?)

so i guess then i need to rename all the classes in the common tabstrip css file but how do i tell tabstrip to use all my new classes ?


thanks
kevin
vamshi
Top achievements
Rank 1
 answered on 29 Mar 2018
0 answers
63 views

I am looking to customize RadConfirm box, I want to have the buttons say ok cancel or yes no and no close button,

<input id="btnReadOnly" type="button" runat="server" onserverclick="btnReadOnly_Click" class="cursorPointerControl"
onclick="if (!ReadOnlyConfirmation()) return false;"
value="Click to make inspection read only." />

function ReadOnlyConfirmation()
{ return confirm('Are you sure you wish to make this record read-only?'); }

I would like to reuse the confirm box for other pages. I tried using a radwindow with my custom confirm page. However, I couldn't get it to return the value back to the button. Any help would be greatly appreciated.

Donald McLean
Top achievements
Rank 2
 asked on 29 Mar 2018
0 answers
89 views

I have a GridNumericColumn for a year column.  It is showing a comma when I edit inline (see attached picture).  How would I set the year to not show a comma please?

 

Thank you.

J
Top achievements
Rank 1
 asked on 29 Mar 2018
2 answers
102 views

I'm developing a menu using RadMenu and RadSiteMap.  I'm getting the nodes by using SiteMapProviders.  Everything is working, but I have to add a 4th level at certain nodes and this causes the menu to look untidy and the styling changes.

So I was thinking of having the 4th level pop out when you hover over its parent node like a tooltip.  Can you use the Tooltip control with SiteMap?  If yes, how do link to just the 3rd level nodes which has child nodes?  I can't find any examples on the forum or demos.

Fanie
Top achievements
Rank 1
 answered on 29 Mar 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?