Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
;Hello,

I need to get a rtf text from a SQL field and convert it to a normal string.

after this i will convert it again to xml and send it by a soap service.

i'm using the rad editor control to convert from rtf to string using the  following code:

var entity= _container.someting.First();
 
          Telerik.Web.UI.RadEditor editor = new Telerik.Web.UI.RadEditor();
 
          editor.LoadRtfContent(entity.rtfText);
 
          var text = editor.Content.ToString();

But the variable text have html values.... i was expecting pure text content.

Is there a way to convert rtf to normal text?

Best Regards,
Marco



Marco Teodoro
Top achievements
Rank 1
 answered on 20 Oct 2011
1 answer
49 views
Hi,

I am using Telerik Radgrid in my page.I am providing pagination 
facility to the columns in the grid. Here in the grid for the first time pagesize is selected as 10  and we can change the page size accordingly. If records in the grid are less than 10 then i am not showing the pagination . It is working fine in IE and Firefox but in Chrome for the first time blank space is coming below the horizontal scroll bar  but when a postback occurs from then it is coming fine.

Can you please help me on this issue.

 <PagerStyle Mode="NextPrevAndNumeric" />

Thanks in advance.

Shinu
Top achievements
Rank 2
 answered on 20 Oct 2011
1 answer
170 views

hi dear telerik team :
my radgrid column like below :

<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn_Benefit" DataField="Benefit"
                    HeaderText="Benefit" UniqueName="TemplateColumn_Benefit" FilterImageToolTip="Filter">
                    <ItemTemplate>
                        <asp:Label ID="lblBenefitInsideGrd" runat="server" Font-Size="11px" Text='<%# (bool)Convert.IsDBNull(Eval("Benefit")) ? "<span class=\"lblInsideGrd\">Empty</span>" : String.Format("{0:#,0 Dollar;#,0- Dollar}", Eval("Benefit")) %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                </telerik:GridTemplateColumn

how can i String.Format(reformat) Sum result in footer for this template column ?
mean i want something like {0:#,0 Dollar;#,0- Dollar} in output...

best regards

thanks in advance

Phil
Top achievements
Rank 2
 answered on 20 Oct 2011
3 answers
86 views

I have a real problem for my application. Hopefully it is just a setting I overlooked. If I select a non-root item and collapse the branch it is on, it remains selected even though I selected another visible item without the using the shift or control keys. I have selected an item and collapsed its branch. Then I selected another item. When I expand the branch with the previously selected item, it is still selected. Visible selections are cleared with new selections, so hidden selections should be cleared with new selections.
What am I missing?

Thanks,
Paul

Tsvetina
Telerik team
 answered on 20 Oct 2011
7 answers
207 views
Hello,
I am trying out some different skins on my RadWindows. For most of them, the titlebar is about 50% transparent. I would like to make the titlebar more readable. Is there a setting for this?

Thanks,
Dan
Dan Lehmann
Top achievements
Rank 1
 answered on 20 Oct 2011
2 answers
79 views
Hi,
Can you please fix the datagrid user control as edit form example? It seems to be missing:http://demos.telerik.com/ErrorPageResources/error.aspx?aspxerrorpath=/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

thanks!

vitya
Viktor Takacs
Top achievements
Rank 2
 answered on 20 Oct 2011
3 answers
122 views
Hi all.

I have a question, Im currently working with radGrid and I need create hierarchy with this controls, but I need get data source from code-behind. In my first radgrid I can get data from code-behind but  I can't see the another radgrid in code.
I declared my two controls by this way:


<telerik:RadGrid ID="grdCompCliente" runat="server" Width="100%" Height="100px" OnItemDataBound="grdCompCliente_ItemDataBound1"
                   AutoGenerateColumns ="false" ShowGroupPanel="true">
                       <MasterTableView AllowMultiColumnSorting="True" >
                        
                       <NestedViewTemplate>
                       <asp:Panel runat="server" ID="InnerContainer" Visible="false">
                           <telerik:RadGrid  runat="server" ID="ID_Subasta" >
                               <MasterTableView>
                                  <Columns>
                                  <telerik:GridBoundColumn DataField="Id" HeaderText="ID">
                                    
                                  </telerik:GridBoundColumn>
                                  </Columns>
                               </MasterTableView>
                           </telerik:RadGrid>
                       </asp:Panel>
                       </NestedViewTemplate>
                            
                       </MasterTableView>
                   </telerik:RadGrid>


How can I do these?

Thank you for your attention!!
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Oct 2011
18 answers
348 views
I have 2 RadEditors amidst several textbox controls on a user control.
I can not tab to and from the text area inside each RadEditor Control. The tabindex is set.
It looks like it is tabbing to the control only and not the text inside.  I understand that the text area inside the control is an IFrame.
Is there a way to have textbox style tabbing with the RadEditors as a textbox?
Thanks
Bader
Top achievements
Rank 1
 answered on 20 Oct 2011
3 answers
239 views
Hi I am using RadPanelBar and creating the HeaderTemplate dynamically and bind the data to it which is coming from database. If you see the attached screenshot the Root item "Channel Queue" has some child panel items and I want on click of header it should show all child items and if I click the header again it should collapse. Is it possible ?

Now if I click the header for first time it is getting expanded and but on click of root panel it is not getting collapse. But it is getting collapsed only when i clicked other root items like (Case Identifier, Compliance or 2nd Level).

Can we achieve this functionality either by using java script / code behind ? 

Regards,
Nishith
Kate
Telerik team
 answered on 20 Oct 2011
0 answers
208 views
Hi,

I am using RadAsyncUpload for multiple file upload, now what i am looking for that somehow if i can access RadAsyncUpload at client side and convert all the upload files in one binary array object so that this binary array object can be passed to WCF method as input paramete that is calling from my javascript.

So What i am looking for is like below sample code
   var Radfile_uploader = document.getElementById(file_uploader_name);
var file_content = new Array();
for (i=0;i<=file_uploader.files.count -1;i++)
{
    var file_content = file_uploader.files[i].getAsBinary();
}

than i can pass this file_content to my WCF service as string.

Can anyone please tell me how to do for RadAsyncUpload in javascript ?

Thanks,
--Jai
Jai
Top achievements
Rank 1
 asked on 20 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?