Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 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
92 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
55 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
119 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
150 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
295 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
1 answer
156 views

I have a rad grid control that displays the row labels the same as the header names.  It looks like this is by design and not sure if this can be changed or not.  I simply want to change the name of the label  Cars:  to just Car:

I tried various changes (ie., Text="Car" on label)  and nothing seems to work.  Open to any comments on this.  Thanks.


Sample Grid:

               Cars                                   Model                                         Year
>           Lexus                                 ES                                           2010                    

 Cars:                Lexus                

Model:              ES

Year:                2010

Update  Cancel


____________________________________________________________________________________



  <telerik:GridTemplateColumn HeaderStyle-Width="500px" HeaderText=Cars">
                    <EditItemTemplate>
                        <qhi:CarSelector ID="cpsCar" runat="server" />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblCarText" runat="server"></asp:Label>
                    </ItemTemplate>
 </telerik:GridTemplateColumn>

Princy
Top achievements
Rank 2
 answered on 24 Dec 2013
3 answers
57 views

How come that RADEditor for SharePoint is different from AJAX RADEditor .

  • Look and Feel is different.
  • There are no Multiple Paste option.
Stanimir
Telerik team
 answered on 23 Dec 2013
11 answers
151 views
I just stumbled upon the IsCommonCss property on the StyleSheetReference class. What is that?
The documentation is somewhat non-existent on the subject.


Kenneth
أشرف
Top achievements
Rank 1
 answered on 23 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?