Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
58 views
Hello,

Is there a way to make the Contectual Menu on the RadGrid behave like Google Drive where an image appears on hover over of the grid row and the menu appears after a left click

Thanks
Thomas
Kostadin
Telerik team
 answered on 15 Apr 2013
1 answer
94 views
I have a tool tip that has an .ascx form loaded to it; However, I'm looking for a way to let it the .ascx.cs access a control in the main page that the tooltip shows in. Is there a way to do so?
Marin Bratanov
Telerik team
 answered on 15 Apr 2013
1 answer
58 views
I have a grid that I am creating in the Page_Init. I set the attribute

RadGrid1.AllowFilteringByColumn =

 

True

 



I have 2 checkbox columns that I use a GridTemplateColumn. First the first column I have fieldName and colName set to Selected, and the second column I have the fieldName and colName set to Forced.

Dim columnCheckBox As New GridTemplateColumn
columnCheckBox.ItemTemplate = New MyTemplate(fieldName)
columnCheckBox.DataField = fieldName
columnCheckBox.HeaderText = colName
columnCheckBox.UniqueName = fieldName
oRadGrid.MasterTableView.Columns.Add(columnCheckBox)

The code for MyTemplate is below. This allows the grid to show a checkbox that is editable right away.

Public Class MyTemplate
    Implements ITemplate
    Protected boolValue As CheckBox
    Private colname As String
    Public Sub New(ByVal cName As String)
        colname = cName
    End Sub
    Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements ITemplate.InstantiateIn
        boolValue = New CheckBox()
        boolValue.ID = colname
        AddHandler boolValue.DataBinding, _
                   AddressOf boolValue_DataBinding
        boolValue.Enabled = True
        container.Controls.Add(boolValue)
    End Sub
    Sub boolValue_DataBinding(ByVal sender As Object, ByVal e As EventArgs)
        Dim cBox As CheckBox = DirectCast(sender, CheckBox)
        Dim container As GridDataItem = DirectCast(cBox.NamingContainer, GridDataItem)
        If ((DirectCast(container.DataItem, DataRowView))(colname)) = 1 Or ((DirectCast(container.DataItem, DataRowView))(colname)) = True Then
            cBox.Checked = True
        Else
            cBox.Checked = False
        End If
    End Sub
End Class

I also populate the grid using the RadGrid1_NeedDataSource feature.

Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
     If mintCircSetID > 0 Then
         Dim strSQL As String = ""
         Dim intIndex As Integer = 0
         Dim strSortedColumn As String = ""
         Dim strSortClause As String = ""
         strSQL = "EXEC WB_sp_RetrieveGeographySelection_ForTelerik '" & mstrSessionID & "'," & mintEventID
         If mblnFullRunUtilizedInd Or cbSingleZip.Checked Then
             strSQL = strSQL & ",0"
         Else
             strSQL = strSQL & ",1"
         End If
         If cbSundayFR.Checked Or cbSundayHD.Checked Or cbSundaySC.Checked Or cbSundayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         If cbMondayFR.Checked Or cbMondayHD.Checked Or cbMondaySC.Checked Or cbMondayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         If cbTuesdayFR.Checked Or cbTuesdayHD.Checked Or cbTuesdaySC.Checked Or cbTuesdayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         If cbWednesdayFR.Checked Or cbWednesdayHD.Checked Or cbWednesdaySC.Checked Or cbWednesdayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         If cbThursdayFR.Checked Or cbThursdayHD.Checked Or cbThursdaySC.Checked Or cbThursdayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         If cbFridayFR.Checked Or cbFridayHD.Checked Or cbFridaySC.Checked Or cbFridayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         If cbSaturdayFR.Checked Or cbSaturdayHD.Checked Or cbSaturdaySC.Checked Or cbSaturdayMX.Checked Then
             strSQL = strSQL & ",1"
         Else
             strSQL = strSQL & ",0"
         End If
         strSQL = strSQL & "," & mintParentMap
         If cbSundayFR.Checked Or cbMondayFR.Checked Or cbTuesdayFR.Checked Or cbWednesdayFR.Checked Or cbThursdayFR.Checked Or cbFridayFR.Checked Or cbSaturdayFR.Checked Then
             strSQL = strSQL & ",1,1,1"
         Else
             If cbSundayHD.Checked Or cbMondayHD.Checked Or cbTuesdayHD.Checked Or cbWednesdayHD.Checked Or cbThursdayHD.Checked Or cbFridayHD.Checked Or cbSaturdayHD.Checked Then
                 strSQL = strSQL & ",1"
             Else
                 strSQL = strSQL & ",0"
             End If
             If cbSundayMX.Checked Or cbMondayMX.Checked Or cbTuesdayMX.Checked Or cbWednesdayMX.Checked Or cbThursdayMX.Checked Or cbFridayMX.Checked Or cbSaturdayMX.Checked Then
                 strSQL = strSQL & ",1"
             Else
                 strSQL = strSQL & ",0"
             End If
             If cbSundaySC.Checked Or cbMondaySC.Checked Or cbTuesdaySC.Checked Or cbWednesdaySC.Checked Or cbThursdaySC.Checked Or cbFridaySC.Checked Or cbSaturdaySC.Checked Then
                 strSQL = strSQL & ",1"
             Else
                 strSQL = strSQL & ",0"
             End If
         End If
         intIndex = UBound(Split(hidSortInformation.Value, ","))
         Do While intIndex >= 0
             strSortedColumn = Trim(Split(hidSortInformation.Value, ",")(intIndex))
             strSortClause = strSortClause & strSortedColumn & ","
             intIndex -= 1
         Loop
         strSortClause = Left(strSortClause, Len(strSortClause) - 1)
         strSQL = strSQL & ",'" & strSortClause & "',"
         If cbSortingByParent.Checked Then
             strSQL = strSQL & "1"
         Else
             strSQL = strSQL & "0"
         End If
         strSQL = strSQL & ",''"
         RadGrid1.DataSource = GetDataTable(strSQL)
     End If
 End Sub
 Public Function GetDataTable(ByVal query As String) As DataTable
     Dim ConnString As String = ConfigurationManager.ConnectionStrings("iAnalyzeConnectionString").ConnectionString
     Dim conn As SqlConnection = New SqlConnection(ConnString)
     Dim adapter As SqlDataAdapter = New SqlDataAdapter
     adapter.SelectCommand = New SqlCommand(query, conn)
     Dim table1 As New DataTable
     conn.Open()
     Try
         adapter.Fill(table1)
     Finally
         conn.Close()
     End Try
     Return table1
 End Function

When the grid comes up, the cells for each column in each row are checkboxes. The filter option on the Selected column is a textbox and the filter option on the Forced column is a checkbox. I need both columns to be checkboxes. What I am doing wrong?

The underlying data from the database call has both columns as BIT fields.
Kostadin
Telerik team
 answered on 15 Apr 2013
1 answer
84 views
Hi.
I want to display the gauge as one of the column in the RADgrid.
Instead of showing the performance in number, i want to display the guage.
Is that possible...?
If yes, pls help me by giving the solution.

thanks
--Alex
Danail Vasilev
Telerik team
 answered on 15 Apr 2013
1 answer
84 views
Hi, 

I have ajaxified RadGrid and in CommandItemTemplate I have RadToolBar with several buttons for my custom actions for data in the grid, which I handle in RadGridResults_ItemCommand(object sender, GridCommandEventArgs e).

In that function firstly I perform some validations before I continue working with those data. But I think some of those validations can be done by javascript on client side but I don't know how to do that. Could you advice me how to implement when user clicks on RadToolBarButton firstly some javascript function will be called where some conditions will be evaluated and if everything will be correct, it will be sent to server where RadGridResults_ItemCommand function will handle them.

Thanks for any help, 

Peter



Angel Petrov
Telerik team
 answered on 15 Apr 2013
1 answer
51 views
Hi,

I want to remove an item from the RadTagcloud through JS. I am able to access all the items in JS, but my delete statement generates an exception. Please help we with a JS code to delete item.

Thanks in advance,
Needha.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
305 views
Hi,

My first question is does telerik has a RadioButtonList control like in ASP. Now I am using asp RadioButtionList that contain few options. On Clicking the "other", i want to display a RadTextBox. Similarly selecting other buttons, i need to hide the RadTextBox. I am not good in Client side code. So please help.

Thanks in advance,
Needha.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
206 views
Hi,

Using CSS, is it possible to horizontally align the Transfer and Reorder buttons of RadListbox?

Thanks,
Antony.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
123 views
Hi Telerik Team,

Does telerik got any inbuilt control to display slideshow of pictures?

Thank you,
Dona.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
74 views
Hi,

There are two listboxes in my page with transferring and reordering of items enabled. Is it possible to get the item text in javascript on dragging from the item from first listbox and droping into the second listbox?

Thanks,
Antony.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?