Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
160 views
Hi, I want to use RadChart to create a sort of Progressbar, because I need to inform the user about his memory usage and remaining memory.
I'd like create a progressbar like this:
-------------------------------------------------------------------
| Database 10% | File System (80%) |  Unused(10%) |
-------------------------------------------------------------------

I created a prototype but don't know how to remove the 'blank' area around the chart, because I only want to show the ChartSeriesItems...

PS: please tell me in advance if it is not possible. I'll look for another solution.
hk proj
Top achievements
Rank 1
 answered on 08 Jan 2010
5 answers
185 views
What browser's are supported? Seams not to work correct in Opera
Yana
Telerik team
 answered on 08 Jan 2010
2 answers
266 views
I believe I have seen mentioned that Telerik RadControls are made to be 508 compliant which is great, but I was wondering if Telerik has used any type of web site security software testing on their controls?  Specifically I am hitting a few issues with the controls using IBM Ration AppScan.

http://www-01.ibm.com/software/rational/offerings/websecurity/webappsecurity.html

The security issues I am getting relate to the telerik.web.ui.webresource.axd file and are as follows:

  • DOM Based Cross-Site Scripting
  • Query Parameter in SSL Request

  • Client-Side (JavaScript) SQL Query Construction

  • Client-Side (JavaScript) Cookie References

Any help you can provide would be much appreciated.

Veli
Telerik team
 answered on 08 Jan 2010
6 answers
173 views
1. We have RadGrid Control.
2. Each row has EditTemplate.
3. There we have TabControl with 2 tabs
4. 1st tab contains TextBox, Label and Button

I am going below to simplify the requirements:
1. When we click on the button we call Popup Window. (ButtonClick with Postback)
2. When we change some value in TextBox, we put for instant Success or Failed messages in Label (TextChanged with Postback).

Here is scenario I am trying to achieve:
1. Change the value in TextBox
2. Click on the button or on second tab
3. Results - some message in Label + (window is Pop-upped or 2nd tab is opened)

What happens is:
We have to click twice on button to get the result.

Is there any other way, except PostBacks to solve it using RadControls?
Pavel Brokhman
Top achievements
Rank 1
 answered on 08 Jan 2010
2 answers
215 views
Hi.

Have RadTabStrip any settings that I can use to awoid line-breaks so I get all tabs in one line (like in scrolling mode but without the scrolling arrows) and a scroller in the window i put the tab in? I use RadTabStrip in a RadPane for a RadSplitter if that will help.

// Patric
Yana
Telerik team
 answered on 08 Jan 2010
4 answers
124 views
Hi, Im having problem with my gridBoundColumn. It duplicates whenever there some server command thats been executed. The only column thats not duplicating is my gridTemplateColumn. Im populating my columns purely in code behind. Radgrid was defined on aspx with several properties but without any column. The funny thing about it is that I use to count my columns before it adds columns to the grid. Before adding any columns value is 0 and after adding all the columns value is just 8. But if Im gonna count all of the columns (1 template column which theres no duplication) and there are 5 sets of same 7 columns  if I it executes some server codes or post back 5x.. Its like at first load it shows correct 8 columns, and when I do change my dropdown it will have some postback and then my grid count becomes (1 templatecolumn)  and 2 sets of 7 so total columns is 15. and when I do change again my dropdown it will have (1 template column) and 3 sets of 7 columns Its like this:
Chkbox Tempcol|Fname|Lname|TelNo|Add|City|State|Zip|Fname|Lname|TelNo|Add|City|State|Zip|Fname|Lname|TelNo|Add|City|State|Zip

Heres my code
<rad:radgrid id="RadGrid1" runat="server" Height="200px" AllowMultiRowSelection="True" ForeColor="White" AllowMultiRowEdit="True" Skin="outlook" width="985px" ItemStyle-BackColor="WhiteSmoke" AlternatingItemStyle-BackColor="White" BorderStyle="None" GridLines="Both">     
    
<AlternatingItemStyle Font-Size="Small" Font-Names="Arial Narrow" HorizontalAlign="Left" VerticalAlign="Middle" BorderStyle="None" CssClass="AlternatingItemRow" BackColor="White"></AlternatingItemStyle>    
                             
<MasterTableView DataKeyNames="ID" AllowAutomaticInserts="True" EditMode="InPlace" CommandItemDisplay="Top" AutoGenerateColumns="False">     
    
<CommandItemStyle BackColor="#FFE39A"></CommandItemStyle>    
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>    
   
    
   
   
                                 
<CommandItemTemplate>    
    <table class="MyCommandItemClass" width="100%">     
    <tr>    
                                        <td align="left" style="width: 75%; padding-top:4px">     
                                            <asp:Label ID="lblPN" runat="server" Text="PlanName" CssClass="basicfontbold" ForeColor="black" Font-Size="12px" Visible="true"></asp:Label>    
                                                 
                                                 
                                        </td>    
                                              
                                        <td align="right">     
                                        <asp:Button id="btnAdd" Runat="server" CommandName="InitInsert"  ToolTip="Add New Record" Text="Add" CssClass="ButtonGray" Visible='<%# Not RadGrid1.MasterTableView.IsItemInserted and showInsert %>' />    
                                                 
                                            <asp:Button ID="PerformInsert" runat="server" CommandName="PerformInsert"  ToolTip="Save" CssClass="ButtonRed" Text="Save" Visible='<%# RadGrid1.MasterTableView.IsItemInserted and showInsert %>'/>     
                                            <asp:Button ID="CancelInsert" runat="server" CommandName="CancelInsert" ToolTip="Cancel" CssClass="ButtonGray" Text="Cancel" Visible='<%# RadGrid1.MasterTableView.IsItemInserted and showInsert %>'/>     
                                                 
                                           <asp:Button id="Linkbutton1" Runat="server" CommandName="DeleteChecked" Text="Delete" CssClass="ButtonGray" Visible='<%# Not RadGrid1.MasterTableView.IsItemInserted and showDelete %>' Enabled='<%# showDelete %>'/>     
                                             
                                             
                                                 
                                        </td>    
                                                                            </tr>    
                                </table>    
                            </CommandItemTemplate>    
                            <ExpandCollapseColumn>    
                                <HeaderStyle Width="20px"></HeaderStyle>    
                            </ExpandCollapseColumn>    
                            <FooterStyle BorderStyle="None" BackColor="#FFE39A"></FooterStyle>    
                        </MasterTableView>    
                             
                        <HeaderStyle Font-Size="Small" Font-Names="Arial Narrow" Font-Bold="True" ForeColor="White" ></HeaderStyle>     
                        <SelectedItemStyle CssClass="RadGridSelectedItem"></SelectedItemStyle>    
                        <ItemStyle Font-Size="Small" Font-Names="Arial Narrow" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>    
                        <ClientSettings>    
                            <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>    
                            <Resizing ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing>    
                            <ClientEvents OnRowDeselected="RowDeselected" OnRowSelected="RowSelected" OnRowCreated="RowCreated"></ClientEvents>    
                            <Scrolling ScrollHeight="202px" AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="5"></Scrolling>    
                        </ClientSettings>    
                    </rad:radgrid>    
 
Code behind

 Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init  
 
Dim boundColumn As GridBoundColumn    
 Dim colcount as int16 = RadGrid1.MasterTableView.Columns.Count   
Try     
                  
                boundColumn = New GridBoundColumn()     
                RadGrid1.MasterTableView.Columns.Add(boundColumn)     
                boundColumn.HeaderText = "ID"    
                boundColumn.DataField = "ID"    
                boundColumn.UniqueName = "ID"    
                boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left     
                boundColumn.ItemStyle.VerticalAlign = VerticalAlign.Middle     
                boundColumn.ReadOnly = True    
                boundColumn.Visible = False    
            Catch ex As Exception     
    
            End Try     
    
            Try     
                Dim templateColumnName As String = "Delete"    
                Dim templateColumn As New GridTemplateColumn()     
                templateColumn.ItemTemplate = New GridCheckboxTemplate(templateColumnName)     
                templateColumn.HeaderImageUrl = "images/delete.gif"    
                templateColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center     
                templateColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Left     
                templateColumn.ItemStyle.VerticalAlign = VerticalAlign.Middle     
                templateColumn.HeaderStyle.Width = Unit.Pixel(23)     
                templateColumn.ItemStyle.Width = Unit.Pixel(35)     
                RadGrid1.MasterTableView.Columns.Add(templateColumn)     
            Catch ex As Exception     
    
            End Try    
 
 Try  
                                    boundColumn = New GridBoundColumn()  
                                     
                                    boundColumn.HeaderText = "Fname" 
                                    boundColumn.DataField = "Fname" 
                                    boundColumn.UniqueName = "Fname" 
                                    boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left  
                                    boundColumn.ItemStyle.VerticalAlign = VerticalAlign.Middle  
                                    boundColumn.HeaderStyle.Width = Unit.Pixel(100)  
                                    boundColumn.ItemStyle.Width = Unit.Pixel(100)  
 RadGrid1.MasterTableView.Columns.Add(boundColumn)  
                                Catch ex As Exception  
                                End Try  
 
            Several more columns defined here.....  
 
 
 colcount = RadGrid1.MasterTableView.Columns.Count  
            RadGrid1 Code Binding here.......  
end Sub
 

Any feedback would be appreciated.

Thanks in advance,
RJ
RJ
Top achievements
Rank 1
 answered on 08 Jan 2010
2 answers
114 views
Hi..

I was using telerik '2008, 3, 1314' version in my project. When I am trying to upgrad the old version by 2009.3.1208.20 I am geting compiletime error in whole project.

How can I upgrad telerik control version.?
Amit Vaidya
Top achievements
Rank 1
 answered on 08 Jan 2010
6 answers
273 views
Hi,
I am trying to set the background colour of the raddock.

I am using BackColor="LightYellow" within the aspx file.
But this does not seem to change the color ?!

I am doing something stupi here?

Thanks
Mark
Petio Petkov
Telerik team
 answered on 08 Jan 2010
1 answer
142 views
It seems that no matter what i do, the RadGrid1.SelectedValue ends up as null.
If i switch out "RadGrid1.SelectedValue" and just manually put a value in.....the code works fine (but obviously, every line i select ends up becoming that same value.)
My best guess is that the "Ticket#" column isn't being correctly defined as being the DataKey.
Please Help.

Here's the vb code behind.
    Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged  
 
        Dim xxx As String 
        xxx = RadGrid1.SelectedValue  
        GetTheData(xxx)  
        Panel1.Visible = True 
 
    End Sub 
 
Public Function GetTheData(ByVal vary As String) As String 
 
        Dim conn As New SqlConnection  
        Dim var1 As Integer 
        var1 = RadGrid1.SelectedValue  
        Label_ID.Text = var1  
 
        conn = GetConn2()  
 
        Dim sql As String = "SELECT Ticket#, Notes, Respformissing, Analyzed, Priority, Week_Restored, Type, ClosureCodeName,Met,BusHourDur, Cost, EffortHrs FROM vwSLA WHERE ticket# = " & vary  
 
        Dim cmd As SqlCommand  
 
        cmd = New SqlCommand(sql, conn)  
 
        Dim rdr As SqlDataReader  
 
        conn.Open()  
 
        rdr = cmd.ExecuteReader  
 
        Dim tick As String 
        Dim n As String 
        Dim resp As Boolean 
        Dim ana As String 
        Dim pri As Integer 
        Dim wr As String 
        Dim type As String 
        Dim cc As String 
        Dim met As Boolean 
        Dim bush As Long 
        Dim co As Long 
        Dim eh As Long 
 
        While rdr.Read  
 
            ana = fixNull(rdr("Analyzed"))  
            n = fixNull(rdr("Notes"))  
            tick = fixNull(rdr("Ticket#"))  
            type = fixNull(rdr("type"))  
            cc = fixNull(rdr("ClosureCodeName"))  
            pri = rdr("priority")  
            wr = rdr("Week_Restored")  
            met = fixNullBool(rdr("met"))  
            bush = rdr("BusHourDur")  
            co = rdr("Cost")  
            eh = rdr("EffortHrs")  
            resp = fixNullBool(rdr("respformissing"))  
 
        End While 
 
        Label_Ana.Text = ana  
        Label_ID.Text = tick  
        Label_Type.Text = type  
        Label_CC.Text = cc  
        Label_Priority.Text = pri  
        Label_WRes.Text = wr  
        Label_Met.Text = met  
        Label_BHD.Text = bush  
        LabelEffort.Text = eh  
        Label_Cost.Text = co  
        CheckBox_resp.Checked = resp  
        TextBox_Notes.Text = n  
          
 
        conn.Close()  
 
    End Function 
here's the asp.net portion

<telerik:RadGrid ID="RadGrid1" runat="server"    
                            DataSourceID="SLA_DB" AllowSorting="True" CellPadding="2" ForeColor="#993333"   
                        GridLines="None" Height="300px" DataKeyNames="Ticket#" Width="925px"   
                        BorderStyle="Solid" Skin="Hay"   
                            GroupingEnabled="False">  
                            <ItemStyle BackColor="#3366FF" /> 
<MasterTableView DataSourceID="SLA_DB" GroupsDefaultExpanded="False" AutoGenerateColumns="False">  
    <DetailTables> 
        <telerik:GridTableView runat="server" AutoGenerateColumns="False">  
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" height="30px" /> 
            </ExpandCollapseColumn> 
            <HeaderStyle BackColor="#1D33D1" Font-Bold="False" Font-Italic="False"   
                Font-Overline="False" Font-Strikeout="False" Font-Underline="False"   
                Wrap="True" /> 
        </telerik:GridTableView> 
    </DetailTables> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn Visible="True" display="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridButtonColumn CommandName="Select" Text="Select"   
            UniqueName="column">  
        </telerik:GridButtonColumn> 
        <telerik:GridBoundColumn DataField="Ticket#"   
            HeaderText="Ticket#" SortExpression="Ticket#" UniqueName="Ticket#"   
            ColumnEditorID="True">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Priority"   
            HeaderText="Priority" SortExpression="Priority"   
            UniqueName="Priority" DataType="System.Int32">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Week_Restored"   
            HeaderText="Week_Restored" SortExpression="Week_Restored"   
            UniqueName="Week_Restored" ReadOnly="True">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Type" HeaderText="Type"   
            SortExpression="Type" UniqueName="Type">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Analyzed" HeaderText="Analyzed"   
            SortExpression="Analyzed" UniqueName="Analyzed" ReadOnly="True">  
        </telerik:GridBoundColumn> 
        <telerik:GridCheckBoxColumn DataField="Met" DataType="System.Boolean"   
            HeaderText="Met" SortExpression="Met" UniqueName="Met">  
        </telerik:GridCheckBoxColumn> 
        <telerik:GridBoundColumn DataField="IssueName" HeaderText="IssueName"   
            SortExpression="IssueName" UniqueName="IssueName1">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ClosureCodeName"   
            HeaderText="ClosureCodeName" SortExpression="ClosureCodeName"   
            UniqueName="ClosureCodeName">  
        </telerik:GridBoundColumn> 
 
        <telerik:GridBoundColumn DataField="TeamName" HeaderText="TeamName"   
            SortExpression="TeamName" UniqueName="TeamName">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="IssueName" HeaderText="IssueName"   
            SortExpression="IssueName" UniqueName="IssueName">  
        </telerik:GridBoundColumn> 
 
    </Columns> 
    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"   
        Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"   
        VerticalAlign="Middle" Wrap="True" /> 
    <AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> 
    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Names="Calibri"   
        Font-Overline="False" Font-Size="14pt" Font-Strikeout="False"   
        Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle"   
        Wrap="True" /> 
</MasterTableView> 
 
                            <HeaderStyle Font-Size="12pt" Height="30px" /> 
 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="True" /> 
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                            </ClientSettings> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
                        </telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 08 Jan 2010
2 answers
85 views
Hi.

I've got something odd going on with my project.

If my webpage consists of a tabstrip and an editor the tabstrip loses it's custom skin. The Editor is still fine though.

It only happens on pages with a tabstrip and an editor.

The controls are created in code-behind in the createchildcontrols method.

attached are some screenshots of the problem

any ideas would be appreciated.

thanks

Vinny
Dobromir
Telerik team
 answered on 08 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?