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

  I have following task:
- there is RadEditor with spell checker tool
- any changes in RadEditor fire event to update some div element (on the page) with content of RadEditor
- when I put incorrect words into the RadEditor and click on Spell Check the content of the RadEditor contains not only formatted text, but also <span> tags with id = "RadESpellError_*" & class "RadEWrongWord"
  As result I copy the content into my div element and when moving via spell checking, the checker moves to my div and work with my copied words (because they contains the same IDs and class as the spell checker inserted)

  Could you please help me with get pure content from the Editor to copy into my div w/o impact from Spell Checker side then?

Thanks a lot!
Volodymyr Tatarin
Top achievements
Rank 1
 answered on 29 Jul 2010
1 answer
191 views
Hello all  i am using build rad menu
but i am facing problem with  justifiying and aligning center the text
how can i solve Rad Menu Justify center the text?
 thanks for any help




this is my code

<telerik:RadMenu ID="RadMenu1" Runat="server" style="top: 0px; left: 0px"
    Font-Bold="True" Skin="Vista">
    
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    <Items>
        <telerik:RadMenuItem runat="server" Text="Home" NavigateUrl="~/Default.aspx">
        </telerik:RadMenuItem>


please check and see the layout next to the icon in the attached picture

thanks in advance )
        <telerik:RadMenuItem runat="server" Text="Suppliers" PostBack="False">
            <Items>
                <telerik:RadMenuItem runat="server" Text="View Suppliers"  ImageUrl="~/Img/s.ico" Height="32px"
                    NavigateUrl="~/ManageSuppliers.aspx">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" Text="Cars" PostBack="False">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Cars" CssClass="~/vertical.css"   NavigateUrl="~/ManageCars.aspx"
                   ImageUrl="~/Img/1cars.ico" Height="32px">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" Text="Car Models"  ImageUrl="~/Img/1models.ico" Height="32px"
                    NavigateUrl="~/ManageCarModels.aspx"   >
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageCarManufacturers.aspx"  ImageUrl="~/Img/1manuf.ico" Height="32px"
                    Text="Car Manufacturers">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageCarCategories.aspx" ImageUrl="~/Img/1categ.ico" Height="32px"
                    Text="Car Categories">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageCarsSold.aspx" ImageUrl="~/Img/1sold.ico" Height="32px"
                    Text="Car Sold">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" PostBack="False" Text="Companies">
            <Items>
                <telerik:RadMenuItem runat="server"
                    NavigateUrl="~/ManageInsuranceCompanies.aspx" Text="Insurance Companies"
                   ImageUrl="~/Img/1insur.ico" Height="32px" >
                </telerik:RadMenuItem>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageFinanceCompanies.aspx" ImageUrl="~/Img/1finance.ico" Height="32px"
                    Text="Finance Companies">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" PostBack="False" Text="Agencies">
            <Items>
                <telerik:RadMenuItem runat="server"
                    NavigateUrl="~/ManageTransportationAgencies.aspx"
                    Text="Transportation Agencies" ImageUrl="~/Img/1trans.ico" Height="32px">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server"
            Text="Customers" PostBack="False">
            <Items>
                <telerik:RadMenuItem runat="server" Text="View Customer" ImageUrl="~/Img/1customers.ico" Height="32px"
                    NavigateUrl="~/ManageCustomers.aspx">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" PostBack="False" Text="Orders">
            <Items>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/ManageOrders.aspx" ImageUrl="~/Img/1order.ico" Height="32px"
                    Text="View Orders">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem runat="server" Text="Backup database" >
            <Items>
                <telerik:RadMenuItem runat="server" Text="Backup" ImageUrl="~/Img/1backup.ico"
                    Height="32px" NavigateUrl="~/Backup.aspx" >
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>


please check the attached file to see the layout and help me to justify the text
Regards,
Peter
Telerik team
 answered on 29 Jul 2010
1 answer
116 views
hi,

i want to displays ads in my site, what is the related line for telerik rad rotator as in asp radtator  (( if (e.AdProperties != null)))

i want to show ads in the site i want to know the answer for the following questions,
i use 
how to use telerik rad  rotator ?
how to calculate number of clicks and display  for each image?

    the below code is my rotator.   
here how i want to find give the value from dataset her. if i use <%Eval("Url"%> for link i'm getting error as excepted ; .
<telerik:RadRotator ID="Ad1" runat="server" onitemclick="Ad1_ItemClick" >
                      
                    <ItemTemplate>
                       <a  id="Navigation" runat="server" >
                            <asp:Image ID="imgAd"  runat="server" /> 
                       </a>  
                       
                    </ItemTemplate>
                </telerik:RadRotator>

i saw many demos but i'm not clear
please provide me answer quickly

regards
priya

Pero
Telerik team
 answered on 29 Jul 2010
3 answers
86 views

This is additional fix since 722?

Can it link to some ID in PITS?
http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/2010-q2-sp+

RadUpload

What's fixed

  • FIX: Issues with the temporary files
Yana
Telerik team
 answered on 29 Jul 2010
5 answers
238 views
I'm trying to put checkbox in menu item and I started from this tutorial :
 http://www.telerik.com/help/aspnet-ajax/tool_templatesoverview.html

I'm able to put checkbox whithout problem, but I found that the behavior of the CSS is strange when I mouse over. The background image is cut instead of occupying all the menu item(see attached images for comparaison of the menu item with and without item template set). I want to know if I can have the original behavior or at least remove the background image beacause I can't seem to be able to replace it. In fact, I'm not very experienced in css, I tried both those Css in setting the hoveredCssClass :

Remove the image
background-image:none !important;
 
Replace the image
background-image:"~\Image\img.png" !important;

Still the same result. Here is the code, mostly from the tutorial, just replace a textbox with a checkbox.
<telerik:RadToolBar ID="RadToolBar1" runat="server">
 <Items>
   <telerik:RadToolBarButton runat="server" Text="Button 1" DisplayName="TextBox1">
     <ItemTemplate>
       <input type="text" value='<%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>' />                       
     </ItemTemplate>
   </telerik:RadToolBarButton>
   <telerik:RadToolBarDropDown runat="server" Text="DropDown 1" DisplayName="DropDown">
     <Buttons>
       <telerik:RadToolBarButton runat="server" Text="Child Button 1" DisplayName="TextBox11">
         <ItemTemplate>
           <input type="checkbox" value='<%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>' />                       
         </ItemTemplate>
       </telerik:RadToolBarButton>
       <telerik:RadToolBarButton runat="server" Text="Child Button 2" DisplayName="TextBox21">
         <ItemTemplate>
          <input type="text" value='<%# DataBinder.Eval(Container, "Attributes['DisplayName']") %>' />                       
         </ItemTemplate>
       </telerik:RadToolBarButton>
     </Buttons>
   </telerik:RadToolBarDropDown>
   <telerik:RadToolBarSplitButton runat="server" Text="SplitButton 1" DisplayName="SplitButton">                   
     <Buttons>
       <telerik:RadToolBarButton runat="server" Text="Child Button 1">
       </telerik:RadToolBarButton>
       <telerik:RadToolBarButton runat="server" Text="Child Button 2">
       </telerik:RadToolBarButton>
     </Buttons>
   </telerik:RadToolBarSplitButton>
 </Items
</telerik:RadToolBar>

Hope you find my solution.
Sébastien
Yana
Telerik team
 answered on 29 Jul 2010
1 answer
102 views

Hi, i'm using a RadTreeView with a RadTreeViewContextMenu.

At my page load i'm building the contextmenu with my options.
Each RadMenuItem is defined with de code below.

RadMenuItem item=new RadMenuItem('Description','../GestaoEntidade.aspx?mode=ins&type='+xxx);
item.Target = "paneMain";

After my menu is finish, i'm adding it to the tree context menu collection.
Then when i'm building the tree i assing too all my nodes the context menu ID;
node.ContextMenuID = contexMenu.ID;

With this i'm trying to achive the following:
open the contextmenu of a node, choose an item, put the node in session and navigate to the item.navigateUrl.

My trouble is to put the node in session.

I've tryed to use the OnContextMenuItemClick event and this puts the node in session but looses the capability of navigate to the item specified url

protected void OnContextMenuItemClick(Object sender, RadTreeViewContextMenuEventArgs e){
Session["TreeNode"]=(RadTreeNode)e.Node;
}
If i do the following, i loose the item.Target hability.
protected void OnContextMenuItemClick(Object sender, RadTreeViewContextMenuEventArgs e){
Session["TreeNode"]=(RadTreeNode)e.Node;
Response.Redirect(e.ItemMenu.navigateUrl);
}

In the end what a want is to navigate to another page, but this page should open in the specified target and have the node information in that page.
Without have to build a menu for each treeNode. Because if i do that everything works fine.

Can someone englight me on the path to follow? If anymore information needed please ask me.

By the way i'm using IE8 and the version of Telerik Controls is 2009.2.286.

Thanks in advance.
Nuno Chumbo

Nikolay Tsenkov
Telerik team
 answered on 29 Jul 2010
1 answer
106 views
Hi,
I have a RadCombo inside div..
.
.
.
<div>
  
<div style="font-size: 15px">
  
<b>Manage records</b>
  
</div>
  
<br />
  
<div>
  
<b>ADD New Record: </b
  
<telerik:RadComboBox ID="ddl2" runat="server" EmptyMessage="Type a Record"
  
DataSourceID="SqlDataSource6" DataTextField="name" DataValueField="id"
  
Skin="Web20">
  
</telerik:RadComboBox>
.
.
.

When i click the drop down button most of the times the list will appear on the top of the page!
I dont use a modalpopupextender neither on the master nor on the child page...
I use ie 7 and on the master page there is the following style:

<style type="text/css" >
        div, td, span,li ,ul
        {
            -moz-box-sizing:border-box;
            box-sizing:border-box;
        }
    </style>

Any sugestions on the problem would be helpfull!
Kalina
Telerik team
 answered on 29 Jul 2010
3 answers
146 views
I have web user control with RadScheduler (Q1 2010 SP1) which works fine with ASP.Net
I am using ObjectDataSource.

When trying to move the code to SharePoint 2010 I have a lot of problems.
Initially the problems were around web.config - ObjectDataSource and SafeControls.

I think I resolved them but I still can't get the scheduler to render properly - headers/colors show OK but the table with timeslots is "squished" to single vertical line and I javascript error:

Message: '0._preInitialized' is null or not an object
Line: 1050
Char: 1
Code: 0
....
How to initialize properly RadScheduler in Sharepoint? Not sure if this is related to SPS 2010?


Peter
Telerik team
 answered on 29 Jul 2010
3 answers
132 views
Hi ,

 I'm using Ajax RadGrid with NestedViewTamplates. So when I insert a row into master table, after inserting I would like to expand the inserted row,  and work with content in nestedview template
And second question is how I can put inserted row at top of table, right now it goes botoom

Thank you for your answer


Shinu
Top achievements
Rank 2
 answered on 29 Jul 2010
1 answer
61 views
I have a Radgrid that is using a OpenAccess data source.  Due to some complex business rules, I can not do all of my data filtering at the data source.  Is it possible to not bind specific rows to the grid that come back from the data source?  I have tries setting the rows to not be visible but then I have a weird issue where all of my row counts are are off by the number of hidden rows.

Thanks for any suggestions.

Josh
Tsvetoslav
Telerik team
 answered on 29 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?