Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
298 views
I set RadGrid Height and it set correctly but the footer of radgrid is not set as per its height.
see the image.
Sagar
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
126 views
Can your ASP.net controls be used with the MVP design pattern?
If yes, do you have any examples?
What would be the variances from web forms, such as the client-side events not being available or changes in binding or post-back support, etc.?
Do you have any plans in future to support other potential design patterns?

I have our team of developers using Telerik controls as our standard method. Your controls have saved us thousands of hours per year in time, PLUS have provided our end users a much richer, and easier to understand and use experience. The inherit problem with webform development can be addressed by several different design patterns including MVP and MVC. Using MVC means that the much wider set of options in your ASP.net AJAX suite is diminished to only the ASP.net MVC controls. Yes, we could mix webforms and MVC, but that isn't a good solution in my opinion. Looking into MVP, I would like to demo a project using MVP but need to know if I can get support in this direction from Telerik or not. Any input you have is greatly appreciated. I'm sure other developers who might be checking into this would find this of interest as well.
Daniel
Telerik team
 answered on 25 Apr 2012
1 answer
71 views
Hi,

Often discussed here, my problem although is a little bit different.

I have: a Masterpage,
a Usercontrol1 contains one RadGrid (gridParent), In this RadGrid there is a nested View, with a usercontrol also containing a Radgrid (gridChild).
From with the last RadGrid(childradGrid1), an Windowpopup (Defined in the masterpage) is opened.
OnClose of this window the gridChild's need datasource is triggered all datasets are up to date, so all data is correct (which is mostly the problem :))., but.. the chilradgrid1 gets no visual update.

Ive created a small demo project wich visualizes my problem.
The thing i left out is the AjaxUpdateSettings.
Ive tried so many things with the AjaxUpdateSettings, but cant bring it together.

Can you guys help me out??
Kind regards, Marco
Download the Example Soution: http://www.pridux.nl/WebApplication3.zip (145kb: telerik Web.UI not inlcuded, Version 2011 Q3)


Maria Ilieva
Telerik team
 answered on 25 Apr 2012
1 answer
48 views
Hi,

Clicking on any telerik link in the page is causing all the IE related stylesheets(IE7.css, IE8.css etc) to load in other browsers(Mozilla, chrome etc) also.

IE style sheets have been added as below:
<!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="content/css/ie7.css" />
    <![endif]-->
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="content/css/ie8.css" />
    <![endif]-->
    <!--[if IE 9]>
    <link rel="stylesheet" type="text/css" href="content/css/ie9.css" />
    <![endif]-->


Regards
Kate
Telerik team
 answered on 25 Apr 2012
2 answers
63 views
Hi, i have a quick question.
Wenn a use the AdvancedInsertTemplate, a popup with 1 Textbox and 3 Buttons (Save,Cancel and option) appears.
Wenn i click of Options my great Template is visible.
The question is How Can I direct make that my templates appears directly next my click of the scheduler ?

Thanks for your Help

Fabrice
Fabrice
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
44 views
I need to create a line graph that starts from a given position in the X axis
Peshito
Telerik team
 answered on 25 Apr 2012
1 answer
69 views
Hi,
I need to creat a bar chart,but some bars should not be continuous.for example see the attachment given below.Is there any way to do that?
Yavor
Telerik team
 answered on 25 Apr 2012
0 answers
90 views
Hi,

I am binding a radgrid runtime using GridTemplateColumns. In my grid the first 3 columns should be freezed, and from other columns, some contains just lables, and some with radnumerictexboxes.
I've created columns using GridTemplateColumn successfully, but confused with assigning data to the grid. I need to give each lable and numerictextbox a different id, so that i can get the data from it to save in database.
So that is my first question..
1) How can I bind data with different IDs to each control in grid.
2) How can I freeze columns? If i bind grid using SqlDataSource, freezing works perfect, but when it bind it using GridTemplateColumns and all, freezing does not work.

Here is a sample code, please correct me where I am wrong:

<rad:RadGrid ID="radTestInputs" Width="100px"  EnableAJAX="True" AutoGenerateColumns="false"
                EnableAJAXLoadingTemplate="True" GridLines="None" AllowSorting="True" AllowPaging="True"
                runat="server" Skin="WinXP">
                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                    <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="1" />
                </ClientSettings>
                <HeaderStyle Width="100px" />
            </rad:RadGrid>

  Partial Class DefaultVB
        Inherits System.Web.UI.Page
 
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            BindGrid()
        End If
    End Sub
 
    Public Sub BindGrid()
        Dim templateColumnName As String = "Number"
        Dim templateColumn As New GridTemplateColumn()
        templateColumn.ItemTemplate = New MyTemplateCaption("Number")
        templateColumn.HeaderText = templateColumnName
        templateColumn.ItemStyle.Width = Unit.Pixel(80)
        templateColumn.HeaderStyle.Width = Unit.Pixel(80)
        templateColumn.DataField = "Number"
        radTestInputs.MasterTableView.Columns.Add(templateColumn)
        Dim templateColumnName1 As String = "Test"
        Dim templateColumn1 As New GridTemplateColumn()
        templateColumn1.ItemTemplate = New MyTemplateCaption("Test")
        templateColumn1.HeaderText = templateColumnName1
        templateColumn1.ItemStyle.Width = Unit.Pixel(80)
        templateColumn1.HeaderStyle.Width = Unit.Pixel(80)
        templateColumn1.DataField = "Test"
        radTestInputs.MasterTableView.Columns.Add(templateColumn1)
 
        Dim dt As DataTable = New DataTable()
        dt.Columns.Add("Number")
        dt.Columns.Add("Test")
        Dim dr As DataRow = dt.NewRow()
        dr(0) = "1"
        dr(1) = "Test1"
        dt.Rows.Add(dr)
        Dim dr1 As DataRow = dt.NewRow()
        dr1(0) = "2"
        dr1(1) = "Test2"
        dt.Rows.Add(dr1)
        radTestInputs.DataSource = dt
        radTestInputs.DataBind()
    End Sub
End Class


Class MyTemplateCaption
    Implements ITemplate
    Protected lControl As LiteralControl
    Private value As String, id As String
    Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) _
      Implements System.Web.UI.ITemplate.InstantiateIn
 
        lControl = New LiteralControl()
        lControl.ID = value 'How can I provide different id for each control here?
        AddHandler lControl.DataBinding, AddressOf label1_DataBinding
         
        container.Controls.Add(lControl)
 
    End Sub
    Public Sub New(ByVal cValue As String)
        value = cValue
    End Sub
 
    Private Sub label1_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
        Dim target As LiteralControl = DirectCast(sender, LiteralControl)
        Dim item As GridDataItem = DirectCast(target.BindingContainer, GridDataItem)
        Dim row As DataRowView = DirectCast(item.DataItem, DataRowView)
        If (target.ID.ToLower().Contains("number")) Then 'Not proper- here I  Need to assign text according to the control's id
            target.Text = row.Item(0).ToString()
        Else
            target.Text = row.Item(1).ToString()
        End If
 
    End Sub
 
End Class


I've to submit this by tomorrow, please reply whoever knows solution ASAP.
Thanks.
Mansi
Top achievements
Rank 1
 asked on 25 Apr 2012
2 answers
236 views
HI All,
I have a imagebutton in RadGRid with CommanName="Reprocess".
When user click on the imageButton it fire ItemCommand event and check if the checkbox at each row is checked. If it is check then it perform logic A else it perform logic B.

My question is it possible to loop RadGrid in ItemCommand event? Doed anyone as any idea to do this?
Help Please!!


johnson lim
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
85 views
Hi All,

I want to know, how to show template GUI in telerik Gridview like GridView from standart control asp.net?

thanks,
Jayesh Goyani
Top achievements
Rank 2
 answered on 25 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?