Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Hello,

I am using a RadEditor and am exporting the HTML content to PDF .
For all the pages in the generated pdf i want to have common Header and Footer which are images.

Currently the RadEditor provides a property "PageTitle" which accepts only Text.
Is it possible to have Header and Footer has an Image ?

Regards,
Krishna
Rumen
Telerik team
 answered on 01 Oct 2010
2 answers
363 views
Hello,

I want to add the ValidatorCallout from AjaxControlToolkit (ValidatorCallout)
to add this control i have to add the AjaxControlToolkit  ScriptManager.

In my web i have Master page, and on this master page i have the RadScriptManager and i cant add anther script manager over there.
i have use the 2009 Q3 telerik version, there is any way i can use both of the script manager or merge the javascript file that i need from the ajax control toolkit?

Or maybe telerik have and tooltip validator that i can use?

thinks for help,
Jin.
SomeOne
Top achievements
Rank 1
 answered on 01 Oct 2010
1 answer
139 views
I am trying to use radeditor to edit a file.  The steps I need to go through are

- read the file (rtf or docx) from the web server and load it into the radeditor
- save the changed version back to the webserver (though upload)

I was reading the example that used the LoadRtfContent method but I dont see the same for the radeditor that I have placed on the form.  Was this feature added in a specific version of Rad ?
Rumen
Telerik team
 answered on 01 Oct 2010
4 answers
205 views
Hi
I have a form with field RadDatePicker and its SelectedDate property set to 01/01/1980
How can I validate this control.

<asp:Label ID="lbDOB" runat="server" Text="Date of Birth: (dd/mm/yyyy)"  
             AssociatedControlID="txtDOB" Height="35px" Width="300px"></asp:Label>         
         <telerik:RadDatePicker ID="txtDOB" runat="server" DateFormat="dd/MM/yyyy" 
             Culture="English (United Kingdom)" Width="125px" MinDate="01/01/1950 00:00:00"
              SelectedDate="01/01/1980">               
         </telerik:RadDatePicker>
          <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1"
ControlToValidate="txtDOB" ErrorMessage="Enter a date!"></asp:RequiredFieldValidator>

Why cant we use InitialValue='01/01/1980' in RFV.

Thanks in advance.
S
Sucheta Patil
Top achievements
Rank 1
 answered on 01 Oct 2010
1 answer
58 views
Good morning,

I am using a page with Radajaxmanager, the problem is that when you use it when making a request to the server side, the page's components are distorted, how can I solve this problem because I have reviewed all the html tags and there is badly formatted closed or not.

Thanks,

Ivan Souza
Mira
Telerik team
 answered on 01 Oct 2010
2 answers
126 views
I am typing in a date of '5/3/1958' and 05/03/1958' for a date of birth and am getting a yellow triangle (which signifies an invalid date format).

I have the following html:

<

 

telerik:RadDatePicker ID="terSubDOB" runat="server">

 

 

<DateInput ID="DateInput3" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" runat="server">

 

 

</DateInput>

 

 

</telerik:RadDatePicker>

 


What is wrong with my format?
Bill
Top achievements
Rank 2
 answered on 01 Oct 2010
2 answers
156 views
The Excel-Like Radgrid code that given by telerik is very useful. I am using the code excellikegrid-updated.zip in my application. It is working fine for the first set of records.

I am using virtual paging in that Excel-like RadGrid solution. For first page, the records displaying as like excel editable mode and we are able to add/Update data in those cells. But when we go to second page using pagination it throws an exception follows. 
"Specified argument was out of the range of valid values.
Parameter name: index".

at the line   "TextBox textBox = (item[column.UniqueName].Controls[0]) as TextBox;"    Inside pre-render event of RadGrid.

At the first time(page load), After "Need Datasource" event, the event "Data Binding" firing and sets all the records in the grid to edit mode.

protected void radGridProducts_DataBinding(object sender, EventArgs e)
   {
       DataTable currentProducts = _presenter.GetCurrentDataTable();
       for (int i = 0; i < currentProducts.Rows.Count; i++)
       //for (int i = 0; i < radGridProducts.VirtualItemCount; i++)
       {
           radGridProducts.EditIndexes.Add(i);
       }
   }

At the time of postback for Next page, after the event "Need Datasource", the "radGridProducts_DataBinding" event is not firing and it goes to pre-render event; no controls in any item of grig and displays the above error message.

I have tried to set all grid items to editable mode in pre-render event iteself as follows.

protected void radGridProducts_PreRender(object sender, EventArgs e)
       {
           //Added for Test purpose
           DataTable currentProducts = _presenter.GetCurrentDataTable();
           for (int i = 0; i < currentProducts.Rows.Count; i++)           
           {
               radGridProducts.EditIndexes.Add(i);
           //Added for Test purpose
           radGridProducts.Attributes.Add("onkeydown", "onKeyDown(this,event);");
           int itemsCount = 0;
           int columnsCount = 0;
           StringBuilder builder = new StringBuilder();
           // Attach the event handlers to the client side events of the TextBoxes. 
           foreach (GridDataItem item in radGridProducts.MasterTableView.Items)
           {
               if (item is GridDataItem)
               {
                   columnsCount = 0;
                   for (int i = 2; i < radGridProducts.MasterTableView.RenderColumns.Length; i++)
                   {
                       GridColumn column = radGridProducts.MasterTableView.RenderColumns[i];
                       //if (item[column.UniqueName].Controls.Count != 0)
                       //{
                           TextBox textBox = (item[column.UniqueName].Controls[0]) as TextBox;
                           if (textBox != null)
                           {
                               textBox.Attributes.Add("ondblclick", "cellDoubleClickFunction('" + textBox.ClientID + "');");
                               textBox.Attributes.Add("onclick", "cellClick('" + textBox.ClientID + "');");
                           }
                           if (i == 2 && !string.IsNullOrEmpty(textBox.Text))
                           {
                               textBox.ReadOnly = true;
                               textBox.Attributes.Add("class", "readOnly");
                           }
                       //}
                       columnsCount++;
                   }
                   itemsCount++;
               }
           }
           RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "init", "colls = " + columnsCount + ";rows=" + itemsCount + ";", true);
                  
       }


But still, it throws the same "Index out of bound" exception while getting the TextBox control. 

Any solution for this Issue? 
Thanks in Advance.
Revathi Panneerselvam
Top achievements
Rank 1
 answered on 01 Oct 2010
3 answers
111 views
We want whether there are some way to implement  the effect that when mouse move up some cell, the cell will become to editable status. just like link:http://dev.sencha.com/deploy/dev/examples/grid/edit-grid.html
when we scan, input only by keyboard,or edit by batch, it is very important. I think rad.edit provide many good function. but the basic input function is lack. whether or not care more about it?
Mira
Telerik team
 answered on 01 Oct 2010
1 answer
165 views
Hi.
I have RadFileExplorer on RadTabStrip/RadMultiPage.
I can upload files, create folders, move files between folders and delete files, but when I try to delete folder, rename it or move it, a Session is ended (I see it in Global.asax file having debugger breakpoint on Session_End event) and a refresh of the grid on RadFileExplorer work constantly.
I have only ViewPaths, UploadPaths, DeletePaths set, and that's all in my file explorer configuration.
Could you pleade advice me how to solve such problem?
Greetings:
Pawel
Fiko
Telerik team
 answered on 01 Oct 2010
1 answer
277 views
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1"  runat="server" />
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="txtSelectedValues" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

So I have the following setting in a user control.  Now in a master page, I have this control and another control (say control 2).  What I want is to update control 2 when the user control get a select index change event.  I can fire the event and set the control 2 but it does not refresh cause it is not listed in the updatedcontrol.  So my question is.
1) can controls from a master page be added to a list of updated controls in the user control.  If so, how
2) Is there a way to force the update (override the ajax setting) in the master page so that it recognizes the refresh of control 2.

Thanks for any help, suggestions.
Mira
Telerik team
 answered on 01 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?