Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
i want to check the cell value and then set the background color of that row to a certain color.
this is what i got
 If e.Item.ToString <> "Telerik.Web.UI.GridEditFormItem" And e.Item.ToString <> "Telerik.Web.UI.GridPagerItem" And e.Item.ToString <> "Telerik.Web.UI.GridHeaderItem" And e.Item.ToString <> "Telerik.Web.UI.GridFooterItem" And e.Item.ToString <> "Telerik.Web.UI.GridFilteringItem" Then  
            Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)  
            Select Case tmp_comp_report_ID  
                Case 5  
                    If e.Item.Cells(3).Text = "&nbsp;" Then  
                        e.Item.BackColor = System.Drawing.Color.Aqua  
                    Else  
                        e.Item.HorizontalAlign = HorizontalAlign.Right  
                    End If  
                Case 6  
                    If e.Item.Cells(3).Text <> "&nbsp;" And e.Item.Cells(4).Text = "&nbsp;" Then  
                        e.Item.BackColor = System.Drawing.Color.Aqua  
                    Else  
                        e.Item.HorizontalAlign = HorizontalAlign.Right  
                    End If  
            End Select  
        End If 
which works fine on the firt time. But after i use a drop down to change the data, it has the Telerik.Web.UI.GridPagerItem so i can't do anything else with it.
my declaration for grid is this
<telerik:RadGrid AutoGenerateColumns="true" ID="RadGrid1" Visible="false" MasterTableView-EnableNoRecordsTemplate="true" 
                            AllowSorting="True" GridLines="both" Skin="Telerik" 
                            PageSize="100" ShowStatusBar="true" AllowPaging="True" 
                            runat="server" OnExcelMLExportStylesCreated="RadGrid1_ExcelMLExportStylesCreated" 
                            OnExcelMLExportRowCreated="RadGrid1_ExcelMLExportRowCreated">  
                        <PagerStyle Mode="NextPrevAndNumeric" /> 
                        <ClientSettings EnableRowHoverStyle="true">  
                            <Selecting AllowRowSelect="True"  /> 
                        </ClientSettings> 
                        <MasterTableView Summary="testing" ></MasterTableView>  
                    </telerik:RadGrid> 
and datasource is this. assume i got result in sqldatareader
dt is datatable

dt.Load(rs)

RadGrid1.DataSource = dt

please help if you have anything. thanks alot

appdev
Top achievements
Rank 1
 answered on 02 Oct 2009
3 answers
152 views
Hi,

The right side button of rotator is not at proper place. It seems inside the frame.

This image is of Safari 3.1.

How to solve this issue?
Vyrban
Top achievements
Rank 1
 answered on 02 Oct 2009
1 answer
151 views
After using the Datepicker we have run into a hurdle. We have a solution that allows for an End Date on a form. The end date can be null or a valid date. The Datepicker allows the user to enter an invalid date (ex. 12/38/2009) and in the code behind it appears as a null entry (which is the same as leaving it blank) and does not have a code behind flag saying it is invalid. It would be great for the Datepicker not to allow typing an invalid date to begin with or to flag the entry so it is readable in code behind that it is not valid. Other datepickers from other vendors use a masked edit so you cannot type something like 12/38/2009.

Just some thoughts.  If anyone has a way to resolve this feel free to let me know.

Scott
Dimo
Telerik team
 answered on 02 Oct 2009
5 answers
177 views
Hi,

Here are what I would like to see in the next version:

  1. Several captcha's on the same page will display the same pictures all over - pictures should be individual.
  2. Click on the picture should fetch a new one.
  3. Better control over the input box and label.
  4. The ability to turn on/off sound (read out loud the letters/numbers in current language)
  5. More image "template" types to choose from.
Pero
Telerik team
 answered on 02 Oct 2009
6 answers
85 views
Hi, I'm upgrading RadEditor.Net2 with Telerik.Web.UI.RadEditor (2009 Q2) on my WebApplication, but it seems that Dockable="true" doesn't work for tools.
Basically I can't drag the toolbars even if I set Dockable="true" into the toolsfile.xml.

Here is a part of my toolsfile.xml file.

<root>
    <tools name="MainToolbar" Dockable="true">
        <tool name="Copy" shortcut="CTRL+C">
        ...
    </tools>
    ...
<root>

I'd like to make tools dockable because if you set particular sizes (not too strange...) of RadEditor, tools get splitted in two rows.

Can you help me?
Thanks

Saggiatorius
saggiatorius
Top achievements
Rank 1
 answered on 02 Oct 2009
1 answer
252 views
FTA:

Announcing the Microsoft AJAX CDN

Earlier today the ASP.NET team launched a new Microsoft Ajax CDN (Content Delivery Network) service that provides caching support for AJAX libraries (including jQuery and ASP.NET AJAX).  The service is available for free, does not require any registration, and can be used for both commercial and non-commercial purposes.

What does a CDN provide?

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points.  These "edge cache" servers can be used to cache and deliver all types of content – including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content.  For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster – which makes your pages load quicker). 


http://weblogs.asp.net/scottgu/archive/2009/09/15/announcing-the-microsoft-ajax-cdn.aspx

I think it would be a great feature to have an EnableMicrosoftCDN option on the ScriptManager that will instead of loading the scripts as a resource from the local server to use the Microsoft CDN urls instead.
T. Tsonev
Telerik team
 answered on 02 Oct 2009
1 answer
84 views
I am trying to figure out a good way to strucure our conversion to the new AJAX skins. We are currently runnning mulitple themes, each which contain mulitple skins for each control. For example, a grid can have 3 - 5 different skins, a menu can have 2 or 3 depending on location within the system. The previous folder architecture grouped Skins by control, then by skin, where the new folder architecture groups by skin, then by control.

Is there a way to include mulitple skins (or css files) with a particular skin folder?

for example is it possible to set up a structure like this
Skins
-> Default
-> -> tabstrip.Default.css
-> -> tabstrip2.Default.css

We currently support about 35 themes within our application, and each theme contains multiple skins for each control in the RadControl set.

Alternatively, is there a way to go back to the old folder grouping, by control, then by skin?
Dimo
Telerik team
 answered on 02 Oct 2009
2 answers
83 views
I have a TreeView with each node set as the Target for a ToolTipManager. In the ToolTip I dynamically inject a UserControl. The UserControl contains a ComboBox wired up to ItemsRequested.

When I try to open the ComboBox to run the ItemsRequested code I get an alert:

"The target 'controlid' for the callback could not be found or did not implement ICallBackEventHandler"

Could you please post a small demo project that illustrates a dynamic UserControl with a LoadOnDemand ComboBox inside a ToolTip generated from a TreeView node mouseover.

thanks,

Steve
Simon
Telerik team
 answered on 02 Oct 2009
1 answer
92 views
hi there,

when i open a radwindow per js in a contentpage, i call first radWindow.Show() and after it radWindow.Maximize()....

the problem is that the pageload event in the called radwindow(aspx-page) is raised twice.. when i remove the maximize call, everything is going alright... so my question is: is this problem, a known problem? is it a hap, with the maximize? or could it be, that it caused by something else?

my telerik-web-ui-version is: 2009.1.311.35

thx and greetz basti
Georgi Tunev
Telerik team
 answered on 02 Oct 2009
3 answers
176 views
Hey.

I want to use GridImageColumn to display an image and edit the image (Replace the existing file, Upload new file if the name is different and save the new path to database). Instead of uploading the file into database, i only want to upload the actual file into a folder under the application server and save the path to the database

Is GridImageColumn okay for the display/edit purpose above? If not, how can i achieve the same function using Telerik control 2009 Q2?

jaimie
Mira
Telerik team
 answered on 02 Oct 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?