Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
274 views

I have a RadGrid for a news management system. In EditFormSettings – FormTemplate I need a Treeview inside the FormTemplate which depends on the ArticleID of the news in edit mode. Data for Treeview comes from a stored procedure which expects ArticleID as parameter.

I expected that
<telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="PortalID"  
                                DataNavigateUrlField="PortalID" DataSourceID="SqlPortalTreeDataSource"   
                                DataTextField="PortalName" DataValueField="PortalID"
                            </telerik:RadTreeView> 
 
<asp:SqlDataSource ID="SqlPortalTreeDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"  
SelectCommand="peRedPlan_GetPortalsTree" SelectCommandType="StoredProcedure"
<SelectParameters> 
    <asp:ControlParameter  ControlID="RadGrid1" Name="ArticleID"  PropertyName="SelectedValue" Type="Int32" /> 
</SelectParameters> 
</asp:SqlDataSource> 
 
brings up the TreeView. SQL Server Profiler shows me, that the StoredProcedure is not started. If I set a default value in SelectParameters (e.g. 7272) all runs fine and TreeView is created. So I suppose, that RadGrid1 does not provide ArticleID for SelectParameters. Or what runs wrong?
Robert
Top achievements
Rank 1
 answered on 25 Nov 2009
2 answers
96 views
Hi,

how can I achieve that the progress area do not close automatically after the process completed.
I would like to keep it open and the user has to close it by a click on a button.

Thanks for any help.
Phil H.
Top achievements
Rank 2
 answered on 25 Nov 2009
5 answers
717 views
I created a simple test app that builds a .NET Data Table and binds it using DataBoundColumns to a RadGrid using version 2009.1.311.35.  I have set the ExportSettings as ExportOnlyData=true, IgnorePaging=true and OpenInNewWindow=true.  Everything works fine if I set the Excel Format to Html, but if I set it to ExcelML I get the following error:

Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderForm(HtmlTextWriter nullWriter, Control form) +1395
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8676409
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderPage(HtmlTextWriter nullWriter, Control page) +146
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

 Do I need to have Excel installed on the server for it to export to Excel?  Is there some setting I am missing?  I am following the demo located http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx and other than my data source being from a built data table instead of a database table, everything else is the same.

Adam Gritt
Daniel
Telerik team
 answered on 25 Nov 2009
2 answers
99 views
I am trying to finish a project started by someone else. I am attempting to add a simple JavaScript.  On opening an onclick the spinning donut starts spinning and a table that was hidden is displayed. What I want to do is to run the script without anything happening but my script. How can I do this? 
Joel Moses
Top achievements
Rank 1
 answered on 25 Nov 2009
3 answers
205 views
I have a simple user control (.ascx) that will contain an <asp:ImageButton> control. I would like to expose a property of the control (i.e. message that will be displayed in the alert) and then when the user clicks on the image button, have the radalert display the message that was set in the property.

Any thoughts?
Dennis
Top achievements
Rank 1
 answered on 25 Nov 2009
1 answer
126 views
Hello,
I am currently evaluating Telerik controls (the latest Q3 release) to see if they fit in my current project and I was amazed with the tools and controls that you empower developers with. I was comparing Telerik radEditor to FCKeditor which is currently used in our project.
I noticed the following things which I don't know how to handle:
The majority of documents that our users work with are in Arabic and some times there might be both Arabic and English paragraphs in the same document. The documents are lengthy and include all sorts of things like annotations, Table of Contents, ...etc.

1- When I use the paste from word option (in radEditor), the output is not as clean as the one generated by FCKeditor, even when using the MSWordRemoveAll option. For example, I find tags like :

<p style="text-justify: kashida; text-align: justify; text-kashida: 0%; unicode-bidi: embed; direction: rtl; background: white;" dir="rtl"><b></b></p>
<p style="text-align: center; margin: 0in 0in 0pt; background: white;" dir="rtl">&nbsp;</p>

while, in FCKeditor, the output will be :

<div dir="rtl">
    <b>&nbsp;</b></div>
<div dir="rtl">
    <b>&nbsp;</b></div>

Is there a way to strip all the styling information coming from word? I thought about re-defining the function that strips word documents to include more rules but I don't know if this is possible or not! (I looked at the radeditor JS code and the file is minified but I was able to identify the place where word stripping occurs, is there a way to redefine the function without directly editing this file?)

Furthermore, radEditor includes some strange style attributes  markup when used in Mozilla firefox (FCKeditor includes some regex expressions to remove this markup) like :

<p style="background: white none repeat scroll 0% 0%; text-align: justify; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; direction: rtl; unicode-bidi: embed;" dir="RTL"><strong></strong></p>

Is there  a way to fix this?

2- Currently there is no direct,easy way to include both rtl and ltr content in the same edited document. I read the post that suggests adding two buttons to radEditor to switch between rtl and ltr but ,it's only a guess (I didn't test it) , I am afraid that it will affect the whole document not the selection because it didn't seem to me that it's surrounding the selection with markup to indicate the new direction. Is there a turn around?

I am still evaluating the editor, so I don't know if I will find any additional things, but till now, I am impressed and I guess that having the above points in place will be a great addition to radEditor.






Rumen
Telerik team
 answered on 25 Nov 2009
4 answers
333 views
I have a ComboBox that is hidden and I want to get the Text value of it not the SelectedValue.  RadComboBox1.Text will work if the combobox ISNT hidden but once you hide it the value is then blank.

ComboBox0 Passes the selected value to ComboBox1 (hidden) I then want to store the text of this combobox in a database now.
Veselin Vasilev
Telerik team
 answered on 25 Nov 2009
3 answers
211 views
Hi,

This is continuation to the previous ticket
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-always-in-edit-mode.aspx#1005390

I added the following code to make grid editable.
 protected void Page_Load(object sender, EventArgs e)
{
for (inti = 0; i < RadGrid1.PageSize;i++)
{
RadGrid1.EditIndexes.Add(i);
}
}


I have the paging applied on the grid. Whenever i click on next page, the page refreshes and grid going back to non editable mode.

How to make grid in editable mode all the time without additional rebinding .

Thanks
Martin
Telerik team
 answered on 25 Nov 2009
5 answers
228 views
Hi, I have severals different RadTextBox in my page,

Each of them has the property "Empty Message"

I want to use the RadInputManager to gain performance, but is it really a good thing if i have to make One section (with empty message parameter) for each TextBox I have ?

for example translating this :
<telerik:RadTextBox runat="server" Id="Id1" EmptyMessage="Textbox1"></telerik:RadTextBox> 
 
<telerik:RadTextBox runat="server" Id="Id2" EmptyMessage="Textbox2"></telerik:RadTextBox> 
 
<telerik:RadTextBox runat="server" Id="Id3" EmptyMessage="Textbox3"></telerik:RadTextBox> 

by this :

 <telerik:RadInputManager runat="server" ID="radInputManager1"
                 <telerik:TextBoxSetting EmptyMessage="TextBox1"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="ID1" /> 
                     </TargetControls> 
                 </telerik:TextBoxSetting> 
     <telerik:TextBoxSetting EmptyMessage="TextBox2"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="ID2" /> 
                     </TargetControls> 
                 </telerik:TextBoxSetting> 
     <telerik:TextBoxSetting EmptyMessage="TextBox3"
                     <TargetControls> 
                         <telerik:TargetInput ControlID="ID3" /> 
                     </TargetControls> 
                 </telerik:TextBoxSetting> 
 </telerik:RadInputManager> 

Do I have a  performance (init and JS) gain this way?
Because I have to write more lines and increases the size of the page...

What is the performance impact if I have 30 RadTextBox on the page ?
Because I run on IE and i have a really big performance issue (On initialization of the page, and on running JS of the components, client side only once the page is fully loaded) even if I follow all the teleriks recommandations (Compression, Radmanagers, debug=false, etc)
Iana Tsolova
Telerik team
 answered on 25 Nov 2009
1 answer
105 views
We recently updated to the latest Q3 2009 release and it seems that the default value now for SelectionOnFocus has changed to CaretToBeginning.  We previously had not defined this value and I'm fairly certain it was none before, in that it just left the cursor where the user clicked.

Can anybody confirm this new behavior?  Was it on purpose? 

It also seems that when I specify None that it still does CaretToBeginning.  This, to me must be a bug.
Dimo
Telerik team
 answered on 25 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?