Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
I am facing the Telerik RadEditor Issue With ToolbarMode="ShowOnFocus" working with ASP.NET
<telerik:RadEditor ID="RadEditor1" runat="server"  OnClientLoad="OnClientLoad"  EditModes="Design" Width="300px" Height="300px"     Skin="Outlook" ToolbarMode="ShowOnFocus" ToolsFile="~/xml/Tools.xml">                                                   
</telerik:RadEditor>

and add a link button Click me.
<a href="javascript://" onclick="javascript:return Clickme();">Click Me</a>

now on page load i want to load the the tool bar by default, it is happening by doing
    function OnClientLoad(editor, args) {
           editor.setFocus();
          editor.set_html("");
        }

but on anchor click i want to write something on radeditor and the toolbar is not visible. i tried to setFocus and set_html("") both.
function Clickme() {
            var editor = $find("RadEditor1");
           editor.setFocus();
            editor.set_html("");
}

have anyone idea about this issue?

Dobromir
Telerik team
 answered on 08 Nov 2012
1 answer
65 views
<telerik:RadGrid  ID="RadGrid1"
             AllowPaging="true" 
             runat="server" 
                          OnPreRender="RadGrid1_PreRender" 
                          OnItemCommand="RadGrid1_ItemCommand" 
                        OnNeedDataSource="RadGrid1_NeedDataSource1"
                          height="550px"
                          PageSize="40"
                         GridLines="None">
 <MasterTableView  EditMode="InPlace" 
                             CommandItemDisplay="Top" 
                             AutoGenerateColumns="true">

------------------------------------------------------------------------------------------------ 

 

 

foreach (GridColumn column in RadGrid1.MasterTableView.RenderColumns)

 

{

 

 

    if (!string.IsNullOrEmpty(column.UniqueName) && !string.IsNullOrEmpty(column.HeaderText))

 

    {

        columncount++;

        dt.Columns.Add(column.UniqueName,

 

typeof(string));

 

    }

}

 

 


DataRow
dr;

 

 

 

DataTable dtRecords = new DataTable();

 

 

 


foreach
(GridDataItem item in RadGrid1.MasterTableView.Items)

 

{

    dr = dt.NewRow();

 

 

    for (int i = 0; i < columncount + 1; i++)

 

    {

 

 

        foreach (GridBoundColumn col in RadGrid1.MasterTableView.RenderColumns)

 

    {

 

 


    var
iName = item[col.UniqueName].Text;

 

 

 


    if
(Regex.IsMatch(iName, @"^[a-zA-Z]*$"))

 

    {

        dr[col.UniqueName] = iName;

    }

}

 

 

 

I have defined a grid using only AutoGeneratedColumns - bound using OnNeedDataSource. On ItemCommand, I need access to all AutoGeneratedColumns values - but am only able to access the first row. Unsure what I am doing wrong.

Thank you,

SteveO

 

Eyup
Telerik team
 answered on 08 Nov 2012
6 answers
189 views
Hi, i am using RadEditor in .NET custom control. I've an hyperlink in the content area of the editor. Now, whenever the hyperlink is clicked the radeditor displays its properties in the bottom which can be edited. There are four properties namely: URL, Target, Tooltip and ClassName. Both URL and Tooltip have textbox as their inputs. Is there anyway to increase that textbox dimensions?
I am attaching the screenshot as well for the reference.

Thanks.
Dobromir
Telerik team
 answered on 08 Nov 2012
2 answers
122 views
Hello
I am using quite an old version of radcontrols for asp.net ajax (q3 2008)
I have a NoRecordsTemplate for my grid for when there is no data to display but the grid still shows all of the headers and footers, including some custom aggregates I calculate in the ItemDataBound event and display in the grid footer.
How can i get the grid to show nothing else apart from the NoRecordsTemplate when there is no data?

thanks
andieje
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
101 views
Hi,
My db contains a field date of birth. Its of type datetime. But in grid I want to show only the date. Im using boundcolumn for displaying dob. Can you provide a solution.

thanks in advance
Savyo
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2012
5 answers
232 views
Hi Freinds,
I have a radgrid with data in the grid having timing as hh:mm:ss whenever i click in excel export the containing hh:mm:ss that get converted to Total second in excel, i bind my radgrid with datatable having timing as total second (60 i.e get converted to 00:01:00 with timespan) but when i export it to excel it shows me as 60 in the column but actualy radgrid contains 00:01:00. Excel also should show 00:01:00. I hav also used

RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.

GridExcelExportFormat.ExcelML;
RadGrid.MasterTableview.ExportToExcel()
and

 

RadGrid1_ExcelMLExportStylesCreated,

 

RadGrid1_ExcelMLExportRowCreated.

 

 

I just want get whatever in radgrid as it is in excel.

How to achieve this please let me know.

Thanks in advance.
Manoj Gupta

Daniel
Telerik team
 answered on 08 Nov 2012
3 answers
127 views
Hi,

I need to have a Scheduler / Reminders with reminders.. how can I do this.

Thanks,Chandu
Plamen
Telerik team
 answered on 08 Nov 2012
8 answers
246 views
Hi ,
I have a telerik rad grid  binded on client side using ajax call.In order to Export the Excel and Pdf ,I have a two button for Excel and PDf  out side the grid and on button click the data will be exported from excel  from  a data table which is binded the radgrid  data source . Export to Excel was working as the expected ,but when i click for export to pdf....the  message says " xxxxxxxxx.pdf is Protected.Please Enter a document Open password".I have tried with different passwords and by enabling and disabling the User password in pdf setting .But of no use.Can any one help me out in this please.Below is the code i had used for exporting to pdf.
 In Button Click event
{
             datatable dt;
             RadGrid.DataSource = dt;
            RadGrid.ExportSettings.IgnorePaging = true;
            RadGrid.DataBind();
            RadGrid.MasterTableView.AllowPaging = true;
            RadGrid.MasterTableView.IsItemInserted = true;
            RadGrid.ExportSettings.OpenInNewWindow = true;
            RadGrid.AllowFilteringByColumn = false;
            RadGrid.ExportSettings.ExportOnlyData = true;
            RadGrid.MasterTableView.HierarchyDefaultExpanded = false;
            RadGrid.MasterTableView.ClearChildEditItems();
            RadGrid.ExportSettings.FileName = filename;
 //RadGrid.ExportSettings.Pdf.UserPassword = "XXXX";
             RadGrid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
            RadGrid.MasterTableView.ExportToPdf();
            RadGrid.Rebind();
}

Kostadin
Telerik team
 answered on 08 Nov 2012
1 answer
46 views
Hello,

I'm trying to find out what level of WCAG accessibility support my RadGrid version has. I've scoured the ASP.NET AJAX control version history but found no references to WCAG (only WAI-ARIA).

Can you please advise when WCAG 2.0 Level AA support was added to the RadGrid?

Thanks!

Alex.
Maria Ilieva
Telerik team
 answered on 08 Nov 2012
2 answers
385 views
Hi,

I am having the RadDatePicker control inside the rad grid. I want to add the "OnDateSelected" client event dynamically in code behind based on some conditions.

I have the following code in my grid's ItemDataBound,

 

string paramVal = "('" + isConditionalTimeFrame + "','" + imgExpandButton.UniqueID + "','" + grdViewRegistries.ClientID + "')";

 

if

 

(isConditionalTimeFrame)

 

{

 

    dtpLastEventDate.ClientEvents.OnDateSelected =

"dtpLastEventDate_OnDateSelected" + paramVal;
}

This is my java script,

 

function

 

dtpLastEventDate_OnDateSelected(isConditionalTimeFrame, imgExpandButtonUniqueID, grdViewRegistriesClientID)

 

{
    

 

}

The issue is, the script is executed immediately after ItemDataBound, and its not triggered when I select any date in the DatePicker.
If anybody have any idea about this, pls share with me.

Thanks.

Mahtab
Top achievements
Rank 1
 answered on 08 Nov 2012
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?