Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
95 views
Hi everybody!

I get an JavaScript-exception when i'm using the RadEditor.

Here is the scenario:
I use the RadEditor with 2 Edit Modes (Design- and HTML-Mode). When I edit the content in Design-Mode everything works fine, especially my "Save"-function. The exception comes when i click on the Save-Button after i switch from the Design-Mode to the HTML-Mode and back (HTML-Mode -> Design-Mode).
Then the debugger of Internet Explorer (as you can see in the picture) show me the following Exception:
"Unhandled exception at line 558, column 1 in http://aspnet-scripts.telerikstatic.com/ajaxz/2013.3.1114/Common/Core.js

0x800a138f - JavaScript runtime error: Unable to get property 'keypress' of undefined or null reference" (english translation)

At the moment i have absolutely no idea where it comes from.
So i'm glad about every helpful hint! Thank you!
Ianko
Telerik team
 answered on 24 Dec 2013
1 answer
49 views
Hi
i have a grid with detail table and on expanding a row i want that row to be selected.how to get this done.
Thanks.
Princy
Top achievements
Rank 2
 answered on 24 Dec 2013
1 answer
67 views
Hi
we have upgraded to the latest versions and many hidden columns are there but they doesnot get populated properly.why is it so? Is it a knwn issue?
Princy
Top achievements
Rank 2
 answered on 24 Dec 2013
2 answers
115 views
How do I use a pound in the navurl?...whenever I try it renders out the href as Custom/Widgets/KB/#

Like I don't want the node navigateable at all...no rendered link, not just an args.set_cancel(true);
Nencho
Telerik team
 answered on 24 Dec 2013
1 answer
64 views
Hi
is it possible to have multiple inserts for the radgrid?
Princy
Top achievements
Rank 2
 answered on 24 Dec 2013
5 answers
1.7K+ views
Hello all,


I am new user in telerik control. in my scenario situation is in radgrid
I have 4 diff column in which first is for serial number second is status dropdown and third for remark.

so in this situation i i have to make functionality is in dropdown i have 4 list item. in which if selected first three list item then have to hide textbox from fourth column. other wise have to show with fourth item

I tried a lot. googling for this. but din't get idea.

So please help me to solve this problem.


Thanks in advance,
Omi...........
Konstantin Dikov
Telerik team
 answered on 24 Dec 2013
3 answers
38 views

when I deploy the site then it don't recognize the image path but it works on localhost:

I'm using this code to define paths:

RadEditor1.ContentFilters = Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute;

string[] viewImages = new string[] { "~/images/content/pagina" };

string[] uploadImages = new string[] { "~/images/content/pagina" };

string[] deleteImages = new string[] { "~/images/content/pagina" };


RadEditor1.ImageManager.ViewPaths = viewImages;

RadEditor1.ImageManager.UploadPaths = uploadImages;

RadEditor1.ImageManager.DeletePaths = deleteImages;


so the idea is when open the media manager it goes automatically to that path.... but when deploy I get an empty path field

Ianko
Telerik team
 answered on 24 Dec 2013
1 answer
89 views
As I mentioned before, the GridBatchEditing.deleteRecord triggers the row validators if the row to be deleted is open.
I didn't find a way around it but to override the default deleteRecord and disable the global validation. Here's the code:
var origDeleteRecord = batchManager.deleteRecord;
 
    batchManager.deleteRecord = function (tableView, row)
    {
        var pv = window.Page_Validators;
 
        window.Page_Validators = null; // HACK:
 
        batchManager.raise_rowDeleting(row);
 
        origDeleteRecord.call(batchManager, tableView, row);
 
        batchManager.raise_rowDeleted(row);
 
        window.Page_Validators = pv;
    }

Where batchManager is a variable obtained from calling get_batchEditingManager, and the rowDeleteing/Deleted are manual events I add to the object to cater for other components.
Konstantin Dikov
Telerik team
 answered on 24 Dec 2013
4 answers
115 views
Hello.
When exporting to PDF first column of the table is too narrow. How to set the width of it? use MasterTableView.GetColumn("").HeaderWidht does not help.
Thanks
Princy
Top achievements
Rank 2
 answered on 24 Dec 2013
1 answer
241 views
Is it possible to export the entire dataset to excel (5k records) if the grid has virtualization turned on? Currently any attempt I make just outputs a max number of records equal to the ItemsPerView property. I wanted to virtualize it since loading the whole dataset was making the page be over 8MB. By virtualizing it I was able to bring it down below 1MB.

If I simply enable paging without virtualization and a page size of 500, then the size is also around 1MB and the export works for all records. However, I wanted to see if the virtualization allowed it to work since I liked the way the scrolling and automatic loading worked. This is my current setup:

<telerik:RadGrid ID="RadGridActive" runat="server" OnNeedDataSource="RadGridActive_OnNeedDataSource" AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False"
    AllowMultiRowSelection="True" AllowAutomaticInserts="False" AllowAutomaticDeletes="False" AllowAutomaticUpdates="False" AllowPaging="True" PageSize="1000"
    OnExportCellFormatting="RadGridActive_OnExportCellFormatting">
    <ExportSettings HideStructureColumns="True" ExportOnlyData="True"></ExportSettings>
    <MasterTableView>
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
            </telerik:GridClientSelectColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="True" ReorderColumnsOnClient="True">
        <Virtualization EnableVirtualization="True" InitiallyCachedItemsCount="1000" ItemsPerView="200" LoadingPanelID="RadAjaxLoadingPanel1"></Virtualization>
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>
        <Scrolling AllowScroll="True" ScrollHeight="500" UseStaticHeaders="True"></Scrolling>
    </ClientSettings>
    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
</telerik:RadGrid>

And my exporting logic
public static void ExportGridToExcel(RadGrid grid)
{
    //remove selected checkbox column if there
    if (grid.MasterTableView.Columns[0].UniqueName == "ClientSelectColumn") grid.MasterTableView.Columns[0].Visible = false;
    if (grid.MasterTableView.Columns[0].UniqueName == "EditButton") grid.MasterTableView.Columns[0].Visible = false;
     
    //if rows selected, only export selected
    if (grid.SelectedItems.Count != 0)
    {
        foreach (GridDataItem item in grid.MasterTableView.Items)
        {
            if (!item.Selected)
                item.Visible = false;
        }
    }
 
    grid.ExportSettings.IgnorePaging = true;
    grid.ExportSettings.OpenInNewWindow = true;
    grid.ExportSettings.FileName = grid.ID;
    grid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
    grid.MasterTableView.ExportToExcel();
}
Princy
Top achievements
Rank 2
 answered on 24 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?