Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hey,
      Is there any way that I can remove the headers of the Child radGrids when I am using Hirarchial grids. I want to only show the parent table header, Can I do that?
pradip
Top achievements
Rank 1
 answered on 10 Mar 2009
4 answers
120 views
I've setup two panels and two buttons, when the listButton is pressed, it should show listPanel, and hide galleryPanel, when the galleryButton is pressed, it then should show the galleryPanel and hide the listPanel.  
The first button seems to be doing ajax, but the second causes a page refresh (postback).

Any help would be appreciated...

        <asp:ScriptManager id="scriptManager" runat="server"></asp:ScriptManager>  
        <telerik:radajaxmanager id="Radajaxmanager" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="listButton"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="listPanel"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="galleryPanel"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="galleryButton"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="listPanel"></telerik:AjaxUpdatedControl> 
                        <telerik:AjaxUpdatedControl ControlID="galleryPanel"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:radajaxmanager> 
 
        <asp:Button ID="listButton" runat="server" Text="List" onclick="listButton_Click" /> 
        <asp:Button ID="galleryButton" runat="server" Text="Gallery" onclick="galleryButton_Click" /> 
 
        <div> 
            <telerik:RadAjaxPanel id="listPanel" runat="server" style="display: none;"> 
                List Panel 
            </telerik:RadAjaxPanel> 
            <telerik:RadAjaxPanel id="galleryPanel" runat="server" style="display: none;"> 
                Gallery Panel 
            </telerik:RadAjaxPanel> 
        </div> 
 
 

Stephen
Top achievements
Rank 1
 answered on 10 Mar 2009
6 answers
601 views
I've been looking through the demos for each of these types of Grid views, which both use ItemTemplate and I'm a bit confused by how each of these work.  What properties on the grid makes it a CardView and a ListView?


Thanks,
Stephen
ManniAT
Top achievements
Rank 2
 answered on 09 Mar 2009
1 answer
104 views
Kind of had an idea to have some sort of designer where I can drag around items inside of a panel, then export their co-ords to html (or xml)...kindof like a dynamic layout on my page.

This do-able with the raddock, or is my only option to create docking areas to drag the items into?
Serrin
Top achievements
Rank 1
 answered on 09 Mar 2009
1 answer
184 views
I am trying to make "truncator" jQuery plugin to work with RadGrid.

I am getting script error "this[expando] is not defined" which I assume is jQuery error and related to jQuery version mismatch

I checked your blog article that indicated that "new and improved" version of jQuery + RadGrid is coming in Q1 2009.
http://blogs.telerik.com/AtanasKorchev/Posts/08-11-06/ASP_NET_Ajax_Controls_and_jQuery.aspx

Is it out?
Is there a workaround to make existing jQuery plugins to work with RadGrid?

Plugin I am talking about is this one
http://henrik.nyh.se/2008/02/jquery-html-truncate

Code that fails

            <script language="javascript" type="text/javascript">
                (function($) {
                    $(document).ready(function() {
                        $('.longtext').truncate({ max_length: 24 });
                    }
                );
                })($telerik.$);    
            </script>

Thank you








Rosen
Telerik team
 answered on 09 Mar 2009
1 answer
187 views
Hi,

I am trying to create a chart, but am receiving the following error;
Am using the samples from the demo, so not sure why this wouldn't work!

Thanks,
H

CS0433: The type 'Telerik.Charting.ChartSeries' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6d522cd2\5802f19\assembly\dl3\08d5e65c\ea88d818_e194c901\Telerik.Charting.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6d522cd2\5802f19\assembly\dl3\c9996742\c23b6f7e_e194c901\Telerik.Web.UI.DLL'
Ves
Telerik team
 answered on 09 Mar 2009
1 answer
155 views
Is there a way to set the entire chart as a hyperlink? I am creating a chart dynamically for every skin at runtime, and want the user to be able to click on the chart itself that they want to choose to save the setting  Much the same as this page , but with actual charts instead of images.   It seems impractical to maintain 20 themes for 20 different kinds of charts via images.

Any help would be appreciated.  Below is a crude example of what is being attempted.
   Public Sub GetAndDisplaySkins(ByRef _Table As Table, ByVal _charttype As String) 
        Dim _myrow As New TableRow 
        Dim _mycell As New TableCell 
        Dim _MyType As Telerik.Charting.ChartSeriesType 
        _MyType = util.GetChartType(_charttype) 
        Dim _MyChart As Telerik.Web.UI.RadChart 
        mysql = "exec sp_GetAllSkins" 
        myreader = dal.GetDataReader(mysql) 
        Dim mycounter As Int32 
        mycounter = 0 
        mysql = "exec sp_GetDummyData" 
        Dim _dstable As DataTable 
        _dstable = dal.GetDataTable(mysql) 
 
        If myreader.HasRows Then 
            While myreader.Read 
                If mycounter = 0 Then 
                    _myrow = New TableRow 
                End If 
                _mycell = New TableCell 
                _MyChart = New Telerik.Web.UI.RadChart 
                With _MyChart 
                    .DefaultType = _MyType 
                    .DataSource = _dstable 
                    .ChartTitle.TextBlock.Text = myreader("DisplayName") 
                    .Skin = myreader("skinname") 
                    .DataBind() 
                    .Width = 250 
                    .Height = 220 
                    .PlotArea.XAxis.DataLabelsColumn = "xstuff" 
                    .PlotArea.YAxis.AxisMode = Telerik.Charting.ChartYAxisMode.Extended 
                    If .Skin = "Black" Then 
                        .AutoLayout = False 
                    Else 
                        .AutoLayout = True 
                    End If 
                    .AutoTextWrap = True 
                    .DataBind() 
                    .Legend.Visible = False 
                End With 
                _mycell.Controls.Add(_MyChart) 
                _myrow.Cells.Add(_mycell) 
 
                If mycounter = 2 Then 
                    mycounter = 0 
                    _Table.Rows.Add(_myrow) 
                Else 
                    mycounter += 1 
                End If 
            End While 
            If mycounter <> 0 Then 
                _Table.Rows.Add(_myrow) 
            End If 
        End If 

Velin
Telerik team
 answered on 09 Mar 2009
1 answer
108 views
Something tells me this has been answered before, however.

  • I have a simple grid, connected to a dataource
  • I have a fixed height and a width of 99%
  • Paging is turned on
  • Scrolling is on with UseStaticHeaders="true"

When the grid first renders, the columns scroll properly, and are properly aligned with the data.  Without Ajax, changing pages present NO problems.

However, when Ajax is used on the control, when I go to the next page, the columns freeze, they will not move at all when scrolling, and their widths no longer match the column width of the data rows.

Something tells me this is more of an Ajax problem then a grid problem, but if anyone has a solution, that would be great.  Scrolling looks SO much nicer with static headers.

Thanks,

Kuba

Sebastian
Telerik team
 answered on 09 Mar 2009
3 answers
134 views
Hi,

I have a grid (hyrachical) where I edit the detail rows.
The Form template looks like this:

    <EditFormSettings EditFormType="Template" > 
    <FormTemplate> 
        <asp:Button ID="Button1" Text="Update" runat="server" CommandName="Update"></asp:Button>&nbsp;&nbsp;  
        <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> 
        <br /> 
        <telerik:RadEditor ToolsFile="/Images/ToolsForStrings.xml" Skin="Office2007" Language="de-DE" ID="edTheString" runat="server" Width="760px" Height="150px" Content='<%# Bind("TheString") %>'>  
        </telerik:RadEditor> 
 
 
    </FormTemplate> 
    </EditFormSettings> 
 
 I found the article about setting maxlength (via jscript) - but using this srcipt results in "The Name edTheString is not....".

Now my questions:
a.) what is the correct ID for this scenario?
b.) can something like this be handled with a custom module?

My Idea for b.) - there is a statistic module which shows me the number of letters.
Is it possible to write an own module which also counts the number of letters - but rejects changes when the length is longer than XXX

By the way - "MaxLength" is a very common thing - especially when you work with databases.
So it would be a great idea to have this as "property" like an asp:TextBox has it.

Regards

Manfred
Rumen
Telerik team
 answered on 09 Mar 2009
5 answers
180 views

The word wrap in Telerik RadGrid BoundColumn is not wraping the text in  Firefox version 3.0.1 and we are using the Telerik  web controls  version ASP.NET Q2 2007

 

I have tried changes in <Master Table view> –<Item Style  Wrap=True>

Daniel
Telerik team
 answered on 09 Mar 2009
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?