Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Hello, I am wondering if there is a way to customize the filters on a RadGrid. Specifically, I am wondering if there is a way to override them and, in example, put a calendar type filter on a DateTime column. Or is there a way for me to more finely tune the filters via some event or property, etc.

Thanks,


Carson
Princy
Top achievements
Rank 2
 answered on 19 Dec 2013
1 answer
132 views
I am having an odd problem when I try to add a GridTemplateColumn with an embedded ASP.Net control to my RadGrid. For some reason, the table is not rendering correctly; the ASP.Net is being renedered at the beginning of the grid instead of the opening table tag for the table.

I am using Q3 2013 ASP.Net for AJAX and VS Express 2013 for Web.

Here is the code (aspx file, then vb file):
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="gridDDLTest.aspx.vb" Inherits="NikkorLinksAdmin.gridDDLTest" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadGrid ID="grdTest" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
            <MasterTableView EnableColumnsViewState="False">
                <Columns>
                    <telerik:GridBoundColumn DataField="ItemId" FilterControlAltText="Filter column column" UniqueName="column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ItemName" FilterControlAltText="Filter column1 column" UniqueName="column1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ItemOrder" FilterControlAltText="Filter column2 column" UniqueName="column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblOrder" Text="12"></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>

vb file:

Public Class gridDDLTest
    Inherits System.Web.UI.Page
 
    Public Class BoundClass
        Private _itemId As Integer
        Property ItemId As Integer
            Get
                Return _itemId
            End Get
            Set(value As Integer)
                _itemId = value
            End Set
        End Property
 
        Private _itemName As String
        Property ItemName As String
            Get
                Return _itemName
            End Get
            Set(value As String)
                _itemName = value
            End Set
        End Property
 
        Private _itemOrder As Integer
        Property ItemOrder As Integer
            Get
                Return _itemOrder
            End Get
            Set(value As Integer)
                _itemOrder = value
            End Set
        End Property
 
        Public Sub New(id As Integer, name As String, order As Integer)
            Me.ItemId = id
            Me.ItemName = name
            Me.ItemOrder = order
        End Sub
    End Class
 
    Private _itemsForBinding As New Generic.List(Of BoundClass)
    Public ReadOnly Property ItemsForBinding As Generic.List(Of BoundClass)
        Get
            If _itemsForBinding.Count = 0 Then
                _itemsForBinding.Add(New BoundClass(1, "Name1", 4))
                _itemsForBinding.Add(New BoundClass(1, "Name2", 2))
                _itemsForBinding.Add(New BoundClass(1, "Name3", 1))
                _itemsForBinding.Add(New BoundClass(1, "Name4", 3))
            End If
            Return _itemsForBinding
        End Get
    End Property
 
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.grdTest.DataSource = ItemsForBinding
            Me.grdTest.DataBind()
        End If
    End Sub
 
End Class

Finally, here is a sample of what the output looks like; note the lack of an opening tag.

        <div id="grdTest" class="RadGrid RadGrid_Default">
 
<span id="grdTest_ctl00_ctl04_lblOrder">12</span>
                        </td>
    </tr><tr class="rgAltRow" id="grdTest_ctl00__1">
        <td>1</td><td>Name2</td><td>2</td><td>
                            <span id="grdTest_ctl00_ctl06_lblOrder">12</span>
                        </td>
    </tr><tr class="rgRow" id="grdTest_ctl00__2">
        <td>1</td><td>Name3</td><td>1</td><td>
                            <span id="grdTest_ctl00_ctl08_lblOrder">12</span>
                        </td>
    </tr><tr class="rgAltRow" id="grdTest_ctl00__3">
        <td>1</td><td>Name4</td><td>3</td><td>
                            <span id="grdTest_ctl00_ctl10_lblOrder">12</span>
                        </td>
    </tr>
    </tbody>
 
</table><input id="grdTest_ClientState" name="grdTest_ClientState" type="hidden" />
    </div>
Viktor Tachev
Telerik team
 answered on 19 Dec 2013
1 answer
109 views
I've implemented the Session Expiration example using the RadNotification.
However, I've noticed that users often have to click the "Continue Session" button several times
before the modal closes. I've worked around this by continuing to call notification.hide() until
notification.isVisible() is no longer true. This workaround  appears to work, but I would like to see a
 fix for this in the future.

function ContinueSession() {
     
    var notification = $find("ctl00_SessionTimeoutRadNotification");
     
    //we need to contact the server to restart the Session - the fastest way is via callback
    //calling update() automatically performs the callback, no need for any additional code or control   
    sessionKeepAlive();
    var attempts = 0;
    while (notification.isVisible()) {
        notification.hide();
        attempts++;
    }
    console.log("Took " + attempts + " attempts to close");
    //resets the showInterval for the scenario where the Notification is not disposed (e.g. an AJAX request is made)
    //You need to inject a call to the ContinueSession() function from the code behind in such a request
    var showIntervalStorage = notification.get_showInterval(); //store the original value
    notification.set_showInterval(0); //change the timer to avoid untimely showing, 0 disables automatic showing
    notification.set_showInterval(showIntervalStorage); //sets back the original interval which will start counting from its full value again
 
    stopTimer("timeLeftCounter");
    seconds = 60;
    updateMainLabel(true);
}
Marin Bratanov
Telerik team
 answered on 19 Dec 2013
3 answers
69 views
Hello,

Is there any way to disable the RadTagCloud or RadTagCloudItem on a server side event?
I have a radtagcloud, and when I click a button I am placing a div overlay on top of the RadTagCloud - the problem is that when I make the overlay div visible, if I mouseover the cloud items I can still click them. When this div is visible on top, the items should not be clickable.

setting RadTagCloud.Enabled = false seems to have no effect.

Thank you in advance,
Regards,
Shinu
Top achievements
Rank 2
 answered on 19 Dec 2013
1 answer
78 views
I have an edit Icon on the far right column of the grid and when a users clicks on it how can I get the grid to expand all of it's children just like the arrow does on the left hand side?
Eyup
Telerik team
 answered on 19 Dec 2013
3 answers
182 views
Hi,
    I want to implement the virtualization of the grid which bind with the dataTable but don't know to achieve it.
    In your existing virtualization sample which the grid is binding with a List of Object. Is it possible to bind it with Datatable ?
   
Please advise..

Thanks a lot.
Don.,
Princy
Top achievements
Rank 2
 answered on 19 Dec 2013
1 answer
135 views
Hi All,

I need a help . its urgent, I am working with RadCalender Control. I am selecting whole week by clicking a date on the calender. But i need to get the Start Date end End Date of the Week which i selected.  

Please Help.
Thank You
Neel
Shinu
Top achievements
Rank 2
 answered on 19 Dec 2013
1 answer
120 views
Hello,

I have a requirement wherein we need to export programmatically created grid with hierarchy on button click. The requirement is there's a "Generate Report" button, once the user clicked on the button, the system will programmatically create the radgrid (invisible) with hierarchy and directly export to EXCEL/CSV.

Is this possible.

Thanks.
Princy
Top achievements
Rank 2
 answered on 19 Dec 2013
8 answers
512 views
Hi,
In my project i want to display both String and Numeric values in Pivot Grid PivotGridAggregateField .
Check the attached Image for more details.
When i bind String field to PivotGridAggregateField  it shows me error.
How to display String Field in PivotGridAggregateField .

<telerik:PivotGridColumnField DataField="Start_Date" Caption="Start_Date" >            
                </telerik:PivotGridColumnField>
              

    
                <telerik:PivotGridRowField DataField="MACHINENAME"  Caption="MACHINENAME" CellStyle-Width="110px"     >
                </telerik:PivotGridRowField>                      
             
                <telerik:PivotGridAggregateField DataField="USER_NM"  Caption="USER_NM"   >
                <HeaderCellTemplate>User Name</HeaderCellTemplate>
                 
                 </telerik:PivotGridAggregateField>
              <telerik:PivotGridAggregateField DataField="PROJECT_ID"  Caption="PROJECT_ID"  >
                <HeaderCellTemplate>PROJECT_ID</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
               <telerik:PivotGridAggregateField DataField="OPER"  Caption="OPER"  >
                 <HeaderCellTemplate>OPER</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                <telerik:PivotGridAggregateField DataField="Part_NAME"  Caption="Part_NAME"  >
                  <HeaderCellTemplate>Part_NAME</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                 <telerik:PivotGridAggregateField DataField="SUB_LEG_ID"  Caption="SUB_LEG_ID"  >
                   <HeaderCellTemplate>SUB_LEG_ID</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                  <telerik:PivotGridAggregateField DataField="ITEM_NM"  Caption="ITEM_NM"  >
                    <HeaderCellTemplate>ITEM_NM</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                   <telerik:PivotGridAggregateField DataField="OPER_DESCR"  Caption="OPER_DESCR"  >
                     <HeaderCellTemplate>OPER_DESCR</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                    <telerik:PivotGridAggregateField DataField="WORK_NAME"  Caption="WORK_NAME"  >
                      <HeaderCellTemplate>WORK_NAME</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                     <telerik:PivotGridAggregateField DataField="RUN_HRS"  Caption="RUN_HRS"  >
                       <HeaderCellTemplate>RUN_HRS</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                      <telerik:PivotGridAggregateField DataField="MH"  Caption="MH"  > 
                        <HeaderCellTemplate>MH</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>
                        <telerik:PivotGridAggregateField DataField="MCH"  Caption="MCH"  >
                          <HeaderCellTemplate>MCH</HeaderCellTemplate>
                 </telerik:PivotGridAggregateField>

This works fine but i want to display the Strings in Aggregate field.
How to resolve this.

Kostadin
Telerik team
 answered on 19 Dec 2013
1 answer
153 views
Hey..  Can you tell me how to pass the selected rows of radgrid on  another page? i have selected the rows but dont know how to pass on another page
Konstantin Dikov
Telerik team
 answered on 19 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?