Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
176 views
Hi,
I am using VS 2013, Telerik.Web.UI Version 2014.2.618.45, developing a website using UI for ASP.Net AJAX telerik Q2 2014 controls. 
I have radgrid and binding columns to radgrid. 

Now, the problem is while binding and retrieving value of column containing special characters. 
Lets say one of the column has value as "Test &nbsp; test <br /> test ' test " test <asp:Label  Test \n test \\n test". 
I made this value to test. I want to display this in grid and also, I need to fetch this in two events, ItemDataBound and ItemCommand.
I tried various methods like HTMLEncoding, replacing characters and also tried putting label control inside ItemTemplate but could not retrieve value as it is.

So what I am looking for is, 
To display and retrieve data value "Test &nbsp; test <br /> test ' test " test <asp:Label  Test \n test \\n test" and "Test line 1 \r\n test line 2 \r\n" which is stored using multiline textbox. 
1. Is it possible to handle both scenario together? like handle straight string and also handle multiline textbox value to display and retrieve as entered. 
2. How to display above value in grid perfectly as it is? Consider both the cases, first, its string as it is and second, possible that its stored using multiline textbox
3. How to display above value in telerik:GridBoundColumn and in <asp:Label control inside <telerik:GridTemplateColumn? 
4. How to retrieve above value from grid as it is, in ItemDataBound and ItemCommand events?

Thanks in advance, 
















Nirav
Top achievements
Rank 1
 answered on 29 Jul 2014
2 answers
324 views
Is there any way to access a column using its index? I have a radgrid with AutoGenerated columns so I have no idea what the column name is but I can access the index.

Basically, I want to get the header of the column that's being updated. I could do this if i could use index but I don't see that as an option. 
Kate
Top achievements
Rank 1
 answered on 29 Jul 2014
3 answers
257 views
I tried to implement the RadToolbar by following the documentation http://www.telerik.com/help/aspnet-ajax/toolbar-appearance-css-file.html. However, it seems the dropdown toolbar is not working. Could anyone help make it work? I've spent four days on this file, but am still not able to make it work.

thanks

<html>
<head>
<title>Toolbar dropdown test</title>
 
<style type"text/css" media="screen">
    .RadToolBar_Green_Horizontal{ background: #90cc90;}
</style>
 
 
<link href="https://d35islomi5rx1v.cloudfront.net/ajaxz/2011.1.315/ToolBar.css" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />
<link href="https://d35islomi5rx1v.cloudfront.net/ajaxz/2011.1.315/Office2007/ToolBar.Office2007.css" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />
 
 
</head>
 
<body  leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" bgcolor=white>
 
<div id="RadToolBar1" class="RadToolBar RadToolBar_Horizontal RadToolBar_Green RadToolBar_Green_Horizontal "
    style="z-index: 90000;">
    <!-- content of toolbar -->
        <div class="rtbOuter">
            <div class="rtbMiddle">
                <div class="rtbInner">
                    <!-- Tool bar content goes here -->
                    <ul class="rtbUL">
                         
                        <li class="rtbItem rtbSplBtn">
                            <!-- Content of RadToolBarSplitButton goes here -->
                            <a class="rtbWrap" href="#">
                                <span class="rtbOut">
                                    <span class="rtbMid">
                                        <span class="rtbIn">
                                        <!-- button content goes here -->
                                            Dropdown here
                                            <div class="rtbSlide" style="display: none;">
                                                <div class="RadToolBarDropDown rtbDropDownExpanded RadToolBarDropDown_Green">
                                                    <ul class="rtbActive rtbGroup">
                                                        <li class="rtbItem">
                                                            <a href="#" class="rtbWrap">
                                                                <img alt="" src="Images/First.gif" class="rtbIcon" />
                                                                <span class="rtbText">First</span>
                                                             </a>
                                                        </li>
                                                        <li class="rtbItem">
                                                             <a href="#" class="rtbWrap">
                                                                <img alt="" src="Images/Last.gif" class="rtbIcon" />
                                                                <span class="rtbText">Last</span>
                                                             </a>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </span>
                                    </span>
                                </span>
                            </a>
 
                        </li>
                    </ul>
                </div>
            </div>
        </div>
     
</div>
 
 
</body>
</html>
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2014
3 answers
254 views
Thanks for such a great possibility. I'm interested in cascading dropdown scenario (it would be a nice case for demo). Could you give steps (or a simple example) how to implement it?
Peter Filipov
Telerik team
 answered on 29 Jul 2014
4 answers
521 views
We work in a very secure enviornment; however, security practices and standards are in place to previent application attacks. We want to use the RadEditor control on one of our web pages but need to know if there may be any issues with cross-site scripting attacks. Can you briefly explain how cross-site scripting is or is not possible with the RadEditor control?

Thanks,


Steve Holdorf
tammy
Top achievements
Rank 1
 answered on 29 Jul 2014
2 answers
206 views
Why it appears different in IE and Chrome (including FF and Opera) ?
<telerik:RadGrid
        ID="RadGrid1"
        runat="server"
        AutoGenerateColumns="false"
        AllowMultiRowSelection="true"
        AllowPaging="true"
        AllowSorting="true"                
        GridLines="None"
        ShowGroupPanel="false" Skin="MetroTouch" AutoGenerateEditColumn="true" Width="100%">

As you i expect it to be 100% but it's not ... i have also set the Width property of all controls inside the template columns to 100% e.g.
<telerik:GridTemplateColumn HeaderText="Company" Display="false">
                    <ItemTemplate>
                        <asp:Label ID="CompanyID" runat="server" Text='<%# Eval("CompanyID")%>' />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <telerik:RadComboBox ID="CompanyIDEdit" runat="server" Width="100%" Skin="MetroTouch"></telerik:RadComboBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
Angel Petrov
Telerik team
 answered on 29 Jul 2014
2 answers
372 views
I have a Rad Toolbar Button that, when clicked, opens a popup.  Is there a way to prevent a user from double clicking?  Currently I can double click the button and it will open two windows.  Thanks.
Stacy
Top achievements
Rank 1
 answered on 29 Jul 2014
1 answer
82 views
Hi,

As per the RADEditor configuration listed in the website.

I have removed the following below from the toolsfile.xml

<classes>
        <class name="Clear Class" value="" />
        <class name="Normal" value=".ms-rteStyle-Normal" />
        <class name="Highlight" value=".ms-rteStyle-Highlight" />
        <class name="By Line" value=".ms-rteStyle-Byline" />
        <class name="Tag Line" value=".rteStyle-Tagline" />
        <class name="Comment" value=".ms-rteStyle-Comment" />
        <class name="References" value=".ms-rteStyle-References" />
        <class name="Caption" value=".ms-rteStyle-Caption" /> 
</classes>

 If i add a new class to the   toolsfile.xml as below

<classes>
        <class name="Clear Class" value="" />
        <class name="Table class" value=".tablecustom" />        
</classes>

The new class added .tablecustom is not shown in the editor. Why is it so ?. Is there any other configuration needed to be done ?

















Ianko
Telerik team
 answered on 29 Jul 2014
1 answer
320 views
Hello. It seems radmap is using osm. It's great.
But if the client cannot access internet, can the map be shown?
Besides, can radmap be interactive with osm and geojson file in order to show the specific city rather than the whole world?
Ianko
Telerik team
 answered on 29 Jul 2014
2 answers
144 views
Good evening.

I've noticed that the progress bar does not work well when you step with decimal values ​​in Primary or Secondary Percent attribute.

The bar remains constantly at 100%

progress.SecondaryPercent = Math.Round (myPercent, 2);

progress.SecondaryPercent = Math.Round (myPercent, 0);

I think it's something that has to do with the locale. If working with the decimal encoding Spain (The decimal point is a comma) works bad, if I work with the american encoding works well.

Sorry for my poor English

Jordi
Jordi
Top achievements
Rank 1
 answered on 29 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?