Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views
Hi.
I have an autogenerated radgrid i want to access the values in it from code behind. How to access it when i dont know its uniquename.
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2013
5 answers
92 views

I am having this issue since very long that Filter Icon of GridNumericColumn is not displayed Properly.
See Attached Image. It happens only in IE7. Above IE7 it works perfect. And also it happens with GridNumericColumn
Column only. It works with BoundColumn.
I am using following code and css as it suugests in some of telerik forum but it doesn't work.

 

<telerik:GridNumericColumn DataField="abc" HeaderText="abc" UniqueName="abc"

FilterControlWidth="80%" SortExpression="abc" FilterListOptions="VaryByDataType"

Resizable="true" AutoPostBackOnFilter="false" ShowSortIcon="true" DataType="System.Int32">

<ItemStyle Width="7%" />

<HeaderStyle Width="7%" />

</telerik:GridNumericColumn>

<!--[if IE 7]>

<style type="text/css">

.riTextBox,.riFocused,.riEnabled,.riHover

{

height:15px !important;

}

#ctl00_ContentPlaceHolder_grdAppointmentSearch_ctl00_ctl02_ctl03_RNTBF_abc

{

width:50px !important;

max-width:50px !important;

}

</style>

<![endif]-->

Deyan Enchev
Telerik team
 answered on 26 Nov 2013
1 answer
343 views
Hi,
I have a GridImageColumn , on its button click I want to select that row. How to achieve this? 
Princy
Top achievements
Rank 2
 answered on 26 Nov 2013
4 answers
800 views
Hey, 

Trying to make a grid sort a column in descending order after clicking once on the header instead of the default ascending first. Essentially, the behaviour of this demo. From this documentation I get the impression that I can just do this from markup, as the demo does it by creating a SortExpression from code behind. I tried this in my code, and I'm not seeing a behaviour difference. 

It's for Telerik 2010Q2 release, without the service pack. 
VS2010, .NET 4.

The relevant grid markup follows. It pulls from a LinqDataSource, declared by DataSourceID.

<MasterTableView DataKeyNames="ReportID">
       <SortExpressions>
           <telerik:GridSortExpression FieldName="ReportSeverityLevelID" SortOrder="Descending" />
           <telerik:GridSortExpression FieldName="ReportSeverityColumn" SortOrder="Descending" />
       </SortExpressions>
           <Columns>
               <telerik:GridTemplateColumn HeaderText="Severity" HeaderStyle-Width="45px" SortExpression="ReportSeverityLevelID" UniqueName="ReportSeverityColumn" AllowFiltering="false">
                   <ItemTemplate>
                           <asp:Image ID="Image3" runat="server" ImageUrl='<%# string.Format("~/Images/{0}", ReportSeverityLevel.GetReportSeverityLevel(r=>r.ReportSeverityLevelID==(int)Eval("ReportSeverityLevelID"),r=>r.IconImageFile)) %>' ImageAlign="AbsMiddle"
                           AlternateText='<%# ReportSeverityLevel.GetReportSeverityLevel(r=>r.ReportSeverityLevelID==(int)Eval("ReportSeverityLevelID"),r=>r.Name) %>' ToolTip='<%# ReportSeverityLevel.GetReportSeverityLevel(r=>r.ReportSeverityLevelID==(int)Eval("ReportSeverityLevelID"),r=>r.Name) %>' />
                   </ItemTemplate>
               </telerik:GridTemplateColumn>

Not, I tried the sort expression by column name just in case, as the documentation suggests it should be by the DataSource field, which the first SortExpression for FieldName ReportSeverityLevelID is. 

Thanks for any ideas. 

Paniz
Top achievements
Rank 1
 answered on 26 Nov 2013
1 answer
177 views

I have a lightbox setup with an ItemTemplate, I am displaying html text (not images like the data binding examples).  I have an asp.net label inside my ItemTemplate that I want to bind the lightbox control to a list of strings and show the string inside of the label.  I tried <%# Eval("mypropname")%> inside of the label but get a "Value of type 'System.Web.UI.Control' cannot be converted to 'Telerik.Web.UI.RadLightBoxItem'.


All of the Data* properties exposed server side appear to be specific to displaying images in lightbox.  Is there a way to databind a lightbox with a custom item template to a list of strings?  If not, is there a way to manually add these items to the lightbox server side?



Thanks!



Kostadin
Telerik team
 answered on 26 Nov 2013
1 answer
112 views
Hi,
I want to update the db with null value if the user leaves a column value empty. How to obtain this? During edit and update i want to convert empty data to null.
Princy
Top achievements
Rank 2
 answered on 26 Nov 2013
2 answers
361 views
Hello

Current Scenario: Currently we are generating html select (dropdown) from code behind using string builder and adding the generated HTML into literal control - which will display the HTML. Below is the code snippet.

html.Append("<select name=test id=test class='xyz' onchange=\"changeDD(this);\" >");
html.Append("<option value='1'>xyz</option>");

We have number of controls being rendered dynamically based on customer settings. Now, We are trying to replace this html select (dropdown) with Telerik RadDropdownlist.

Please suggest the approach or provide your inputs to achieve this kind of HTML rendering from code behind. Also we have JS written for some of the controls.

Please let me know if you need more details.
Kalpesh
Top achievements
Rank 1
 answered on 26 Nov 2013
1 answer
109 views
Hi,

is use the RadScheduler and try to set Language to German! Without any success. I follow the documentation and tried to copy
your Localization-Example which is installed on my local machine.

First I created the "App_GlobalResources" Folder in my root path. Secons I copied the resx files from the local folder.
And a least I chaned the Culture-Property to "de-DE". But the Schduler still shows me "today, DAY, WEEK, ...).

What is to do, to get this solved?

thanks
Best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 26 Nov 2013
3 answers
90 views
Hello,

I have this mark up in my code.   

<tlrk:RadEditor ID="D0_RadArticle" runat ="server" Width="680px" Height="376px"
   ToolsFile="~/XML/Editor/HelpEditor.xml"   ImageManager-ViewPaths="~/Images/Help"
   AnchorPathToStrip="ihs201"  StripAbsoluteAnchorPaths="true" />

The client is able to select an image and store it to the database.  The link that is stored is <img alt="" src="/ihs201/Images/Help/Editor/underline.jpg" />.  This is fine when I am in my development server.  But when  I deploy my web pages to a different server I do not want the "/ihs201" in my link.  If the virtual directory name is different then "ihs201" then the images link breaks.  I would rather my link was <img alt="" src="../Images/Help/Editor/underline.jpg" /> .  This link would enable me to access the image in other server with different name.  How do I achieve something like that.

Thank you,
Kalyani

Ianko
Telerik team
 answered on 26 Nov 2013
3 answers
77 views
Hi,

I have a decorated DropDownList, and when clicking it , it fires onbeforeunload though no item is selected yet.This is happening in IE while chrome works fine. Any idea on how to stop this as I am using form confirmation for saving changes before leaving the page.

Environment:
VS 2012
ASP.NET 4.5
Telerik Ajax Controls Q3 2012

Thanks

Madani
Niko
Telerik team
 answered on 26 Nov 2013
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?