Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
79 views
Hi All,

I have found online sample of updating data of Radeditor column but the updating code is on aspx side (http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx).. Is there a sample code to update it on code behind? I cant seem to get the value of the Radeditor Column on Grid_Update command. Thanks in advance..
RJ
Top achievements
Rank 1
 answered on 08 Oct 2013
4 answers
196 views
is there any possibility that instead of en-US we would be able to set our default dictionary to French and on my one Rad Editor only one language would be set and that is French? No English


Telerik team quick response will be appreciated as i need it urgent.


Hi telerik Team


I have found the solution to my above question and that is that i m only binding that language with my Rad spell Editor which i want to like
I have three Rad editors, One for english, second for French and third for Spanish

I m creating those rad editors dynamically in a repeater, and on item Data Bound event I m adding Only one language with each Rad Editor. and no language with English Rad Editor.

English Rad editor is working fine as i only have to click once for for spelling check, but for french and Spanish i need to click twice one for opening a div for language selection and one for selecting language although i have only one language in both cases (Spanish for spanish Rad Editor and French for French Rad Editor)

I want just like English if we can go for spell check in both languages using single click
 Please see attached Image for further detail.



Best Regards;
Nazish Abbasi
Marin Bratanov
Telerik team
 answered on 08 Oct 2013
4 answers
298 views
hi

I am using numeric textbox but i am having a problem putting a zero in front. eg 012378.

How should i solve this? thanks
Fabio
Top achievements
Rank 1
 answered on 08 Oct 2013
1 answer
131 views
I am trying to bind about 24000 rows to a RadDropDownTree. Currently, the DataBind method takes approximately 3.5 MINUTES to bind, which is insanely high and definitely a deal breaker. How can I improve the performance and make the binding time as less as possible?
Thanks.
Peter Filipov
Telerik team
 answered on 08 Oct 2013
6 answers
450 views
Re: RadGrid Export to Pdf

My PDF won't open in Adobe Reader when I have <BR> present in my HTML (says the file is damaged)

How (and which event) should this be handled in?

Here is the code that I extracted from e.RawHTML in the PdfExporting event. When I exclude the records with the <BR> the PDF forms correctly.

<table cellspacing="0" border="0" id="RadGridSearchResults_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
    <colgroup>
        <col style="width:75px" />
        <col style="width:75px" />
        <col style="width:150px" />
        <col style="width:75px" />
        <col style="width:100px" />
        <col  />
    </colgroup>
<thead>
        <tr>
            <th scope="col">Title Nbr</th><th scope="col">Reg Date</th><th scope="col">Type</th><th scope="col">Linc Nbr</th><th scope="col">Short Legal</th><th scope="col">Owner</th>
        </tr>
    </thead><tbody>
    <tr>
        <td>32T43      .</td><td>
                            1925-02-06
                        </td><td>
                            CONVERSION
                        </td><td>
                            0023045991
                        </td><td>
                            4;6;13;5;NE
                        </td><td>
                            THE TOWN OF SOMEWHERE.
                        </td>
    </tr><tr>
        <td>48E12      .</td><td>
                            1933-09-22
                        </td><td>
                            CONVERSION
                        </td><td>
                            0023045975<br>0023045983
                        </td><td>
                            4;6;13;5;NE<br>4;6;13;5;SW
                        </td><td>
                            THE TOWN OF SOMEWHERE.
                        </td>
    </tr><tr>
        <td>791042549</td><td>
                            1979-03-21
                        </td><td>
                            CONVERSION
                        </td><td>
                            0023046774
                        </td><td>
                            4;6;13;4;SW
                        </td><td>
                            THE TOWN OF SOMEWHERE.
                        </td>
    </tr><tr>
        <td>891015298B .</td><td>
                            1989-01-26
                        </td><td>
                            CONVERSION
                        </td><td>
                            0023044720
                        </td><td>
                            4;6;13;5;NW
                        </td><td>
                            THE TOWN OF SOMEWHERE.
                        </td>
    </tr><tr>
        <td>901047011</td><td>
                            1990-02-20
                        </td><td>
                            CONVERSION
                        </td><td>
                            0023045967
                        </td><td>
                            4;6;13;5;NE
                        </td><td>
                            THE TOWN OF SOMEWHERE.
                        </td>
    </tr>
    </tbody>
  
</table>

Here's my Export to PDF settings:
protected void RadGridSearchResults_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.ExportToExcelCommandName || e.CommandName == RadGrid.ExportToPdfCommandName 
        || e.CommandName == RadGrid.ExportToCsvCommandName || e.CommandName == RadGrid.ExportToWordCommandName)
    {
        RadGridSearchResults.ExportSettings.FileName = "Titles_Summary_Export_" + DateTime.Now.ToShortDateString();
        RadGridSearchResults.PageSize = RadGridSearchResults.MasterTableView.VirtualItemCount;
        RadGridSearchResults.ExportSettings.IgnorePaging = true;
  
        if (e.CommandName == RadGrid.ExportToPdfCommandName)
        {
            isPdfExport = true;
            RadGridSearchResults.ClientSettings.Scrolling.UseStaticHeaders = false;
            RadGridSearchResults.ClientSettings.Scrolling.AllowScroll = false;
            RadGridSearchResults.ExportSettings.ExportOnlyData = true;
            RadGridSearchResults.MasterTableView.ExportToPdf();
        }
  
    }
}

Daniel
Telerik team
 answered on 08 Oct 2013
1 answer
201 views
Is there a way to set this specific property to false in the web.config? 

The reason I ask is we have a vendor application that uses this control in all of it's pages. Every so often when the server is busy the ASP.NET application ends up with a stuck finalizer.

When ripping apart the dumps I see that every page that is hung, all 200 of them, are in the Exists() method for WebResource. More specifically it's when the application is churning through the ConfigSectionElementsCollection enumerator. When I look at the finalizer I see a RCW object being destroyed. In the destruction the thread is calling over to a COM component for it to be Unmarshalled. At the top of the stack we can see the thread is waiting on one event handle.

I searched the dump and found that another thread is also waiting on this handle and another event handle. Another thread is waiting on some other combination of a new handle and the handle from the previous threade, and so on and so on.

Unfortunately there is no symbol that resolves to heythere!TheProblemIsHere()+0xbeef so I have to do some sleuthing to pick parts from around the locking method and the calling methods.

In both cases what I find is the COM objects that are being Marshalled all come from the ahadmin.dll. This is the underlying unmanaged resource that backs Microsoft.Web.Administration.WebConfigurationManager class.

Some more information that is possibly useful. The application we run uses AspCompat for all of its pages. This means that every request thread runs in a STA thread and is not truly efficient. So, between the sheer amount of COM calls generated by both the AspCompat and the ConfigManager we start seeing blocked threads.

So, in the end it looks like there is some kind of resource contention when you have a couple hundred threads all trying to read from this management interface. I'm not 100% sure if it's really meant to handle that many threads banging away at it's enumerators, but I could be wrong.

Thanks for any help you can provide.
Dimitar Terziev
Telerik team
 answered on 08 Oct 2013
9 answers
124 views
I've used the GridSettingsPersister class from the demo at http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx successfully with columns that exist at design time. I'm now trying to persist column visibility, grouping and column filters for columns generated by the grid using AutoGenerateColumns="true"

I'm looking for a suggestion regarding how to implement something similar to what is done in the GridSettingsPersister for design-time columns for the run-time columns when using AutoGenerateColumns.

Thank you!

Visual Studio 2010
Target framework: .NET Framework 4
Telerik.Web.UI version 2010.3.1317.40
Daniel
Telerik team
 answered on 08 Oct 2013
6 answers
140 views
Dear Telerik Team,

I have created grid printing from the sample griven in

http://www.telerik.com/community/code-library/aspnet-ajax/grid/print-radgrid-contents.aspx


My grid has nearly 20 columns and it will not fit in one page.
On giving print, it prints columns which can be fit on the first page and ignores the rest of the columns. It is not printing the rest of the fields on the second page.

Please help me in solving this issue.

Thanks
Shivan
Daniel
Telerik team
 answered on 08 Oct 2013
2 answers
289 views

I have a radGrid with a Master-Child-Relation and Edit mode is set to Batch.
The data will be populated via OnNeedDataSource for the master and via OnDetailTableDataBind.
The master table columns are readonly; the child columns not.
I would like to process data changes in the OnBatchEditCommand but the detail changes were not submitted.
(The e.Commands-collection has no members).

Any ideas ?

Thanks in advance.

The example show a simple Role/UsersInRole relationship.

<telerik:RadGrid ID="RadGrid2" runat="server"

 AutoGenerateColumns="False"

 CellSpacing="0"

 CellPadding="0"

 GridLines="None"

 MasterTableView-EditMode="Batch"

 Width="350px"

 AllowMultiRowEdit="true"

 OnNeedDataSource="RadGrid2_NeedDataSource"

 OnBatchEditCommand="RadGrid2_BatchEditCommand"

 OnDetailTableDataBind="RadGrid2_DetailTableDataBind">

 <MasterTableView

 DataKeyNames="Rolename"

 EditMode="Batch"

 CommandItemDisplay="Top"

 HierarchyDefaultExpanded="true"

 ExpandCollapseColumn-Visible="true"

 GroupsDefaultExpanded="true">

 <RowIndicatorColumn>

 <HeaderStyle Width="20px"></HeaderStyle>

 </RowIndicatorColumn>

 <ExpandCollapseColumn Visible="true" >

 <HeaderStyle Width="20px"></HeaderStyle>

 </ExpandCollapseColumn>

 <CommandItemSettings ShowSaveChangesButton="true" ShowCancelChangesButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>

 <Columns>

 <telerik:GridBoundColumn UniqueName="Rolename" DataField="Rolename" HeaderText="Role"></telerik:GridBoundColumn>

 </Columns>

 <DetailTables>

 <telerik:GridTableView runat="server"

 Name="Detail"

 AutoGenerateColumns="false"

 DataKeyNames="Username"

 Width="100%"

 EditMode="Batch"

 ShowHeader="false"

 ShowFooter="false"

 AllowPaging="false"

 AllowFilteringByColumn="false"

 GridLines="None"

 BorderStyle="None"

 BatchEditingSettings-EditType="Cell">

 <ParentTableRelation>

 <telerik:GridRelationFields

 DetailKeyField="Rolename"

 MasterKeyField="Rolename" />

 </ParentTableRelation>

 <Columns>

 <telerik:GridBoundColumn UniqueName="Rolename" DataField="Rolename" HeaderText="Role" Display="false"></telerik:GridBoundColumn>

 <telerik:GridBoundColumn UniqueName="Username" DataField="Username" HeaderText="User"></telerik:GridBoundColumn>

 </Columns>

 </telerik:GridTableView>

 </DetailTables>

 </MasterTableView>
</telerik:RadGrid>

 

 

 

protected void RadGrid2_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{
   // e.Commands has no items for changes made in detail view
   foreach (GridBatchEditingCommand command in e.Commands)
   {
      Hashtable newValues = command.NewValues;
      Hashtable oldValues = command.OldValues;
      string OldRolename = oldValues["Rolename"].ToString();
      string NewRolename = newValues["Rolename"].ToString();
 
      // processing values
 
   }
}
 
protected void RadGrid2_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
   if (!e.IsFromDetailTable)
      {
         RadGrid2.DataSource = GetRoles();
      }
}
 
protected void RadGrid2_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
{
   var parentItem = e.DetailTableView.ParentItem as GridDataItem;
   if (e.DetailTableView.Name == "Detail")
   {
      string Rolename = parentItem.GetDataKeyValue("Rolename").ToString();
      e.DetailTableView.DataSource = GetUsersInRole(Rolename);
   }
}

 

Michael
Top achievements
Rank 1
 answered on 08 Oct 2013
2 answers
98 views
I have the next Calendar, and inside a DateInput. Now the EmptyMessage is always "Fecha Informe", but i like change that with a data from a File of resources file.resx.... does somebody how?

<telerik:RadDatePicker ID="rdpDate" runat="server" Width="125px" Culture="es-ES" meta:resourcekey="rdpDateResource1">
                            <Calendar ID="Calendar1" runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                            </Calendar>
                            <DateInput ID="DateInput1" runat="server" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" EmptyMessage="Fecha informe" LabelWidth="64px" Width="">
                                <EmptyMessageStyle Font-Italic="True" ForeColor="Gray" />
                            </DateInput>
                            <DatePopupButton />
                            </telerik:RadDatePicker>
Eyup
Telerik team
 answered on 08 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?