Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
58 views
Hi,

I would like to have a detail form with extended information about the selected item.
I think that i could use TreeListEditCommandColumn to do that hidding the add button.
I like this approach as it avoids postback (some info in the treelist is composed on ItemDataBound).
I would like to know your opinion because maybe there is a better solution.
 
Thank you.
Sonia
Top achievements
Rank 1
 asked on 15 Apr 2013
12 answers
1.2K+ views
Hi,
I am using a radgrid in my application as given below.

 

<telerik:RadGrid ID="RadGridMeasuresList" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="700px" ShowFooter="false" Skin="WebBlue" BorderColor="White" BackColor="White" ItemStyle-BorderColor="Black" Height="300px" HeaderStyle-ForeColor="Black" onitemdatabound="RadGridMeasuresList_ItemDataBound" onitemcreated="RadGridMeasuresList_ItemCreated">

 

 

<ItemStyle BorderColor="Black" />
<MasterTableView>

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="Measure" DataField="MeasureName" HeaderStyle-Wrap="false" ItemStyle-Wrap="true" HeaderStyle-Width="250px" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderText = "Total Opportunities" DataField="Opportunities" HeaderStyle-Wrap="false" UniqueName="Opportunities" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">

 

 

<ItemStyle Wrap="True"/>

 

 

</telerik:GridBoundColumn >

 

 

<telerik:GridHyperLinkColumn HeaderText = "Patients with Clinical Alerts" DataTextField="NonComplianceCount" ItemStyle-HorizontalAlign="Left" UniqueName="NonComplianceCount" HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false" DataNavigateUrlFields="Condition,Measure" DataNavigateUrlFormatString="IPClinicalAlerts.aspx?Condition={0}&Measure={1}&IsCompliant=False&PatientSearch=0" HeaderStyle-Width="150px">

 

 

<ItemStyle Wrap="True" Font-Underline="true"/>

 

 

</telerik:GridHyperLinkColumn>

 

 

<telerik:GridBoundColumn HeaderText = "Compliance Rate" DataField="Rate" HeaderStyle-Wrap="false" UniqueName="Rate" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">

 

 

<ItemStyle Wrap="True" />

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<HeaderStyle BackColor="#E1E1E1" Font-Bold="True"/>

 

 

<clientsettings enablerowhoverstyle="True" >

 

 

<selecting allowrowselect="True" />

 

 

<scrolling AllowScroll="true" usestaticheaders="True" />

 

 

</clientsettings>

 

 

</telerik:RadGrid>

Here are the 2 problems i am facing
1.When i view this grid in browser i am not getting a Underline for the values in the Hyperlink column even after setting Underline property as true for the Items. Even i tried setting using CssClass but i am not able to acheive it.
2.On mouse over the values in the HyperLink columns i am getting a tooltip displaying the same values. How to hide the tooltip.

Thanks in advance,
Sharath

 

Margret
Top achievements
Rank 1
 answered on 15 Apr 2013
1 answer
248 views
I have an application using a MasterPage with content pages and user controls. Inside one of the user controls we have another user control (I know, it's an Inception kind of thing). This user control spawns a RadWindow. Everything works fine: the window shows some RadGrids populated with fields from the DB, then I close the window. All of this is being done with RadWindow1.VisibleOnPageLoad in some kind of server-side event. After closing the window, I have no way of setting RadWindow1.VisibleOnPageLoad = false; so when I click on another control that fires an AJAX event (which in this case shows a different RadWindow) the RadWindow from before pops back up. In other parts of our application we've passed arguments to the server through the OnClientClose method of the RadWindow and also by calling the OnAjaxRequest event of the RadAjaxManager. This fires a server side event and I can set the property, but I'm using a RadAjaxManagerProxy, which doesn't support this event. 

I've come up with some options for this:

- Set VisibleOnPageLoad on the client side, which I can't find anywhere on any forums or documentation.
- Pass some kind of different event to the server so I can set the property.

Or maybe there's something completely different that I'm not aware of or haven't thought of. I'm open to any options.
Marin Bratanov
Telerik team
 answered on 15 Apr 2013
1 answer
84 views
Hello,
  I want the user to be able to add a value to the RadComboBox if it is not there.  Is this possible with the RCB?

Thanks
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
2 answers
527 views
Hi,
I want to display more than one data in the tooltip (on mouse hover) in pie chart (HTMLChart)
ex. project1 - output status(%) - started date.
<telerik:RadHtmlChart Height="400px" runat="server" ID="PieChartProjectOutput" DataSourceID="DSProjectOutcome"
Width="800px">
<Legend>
<Appearance BackgroundColor="White" Position="Right" Visible="true">
</Appearance>
</Legend>
<PlotArea>
<Series>
<telerik:PieSeries DataFieldY="Output" StartAngle="90" Name="Role_id"
 ExplodeField="Output"
NameField="Project_Name">
  <LabelsAppearance Position="Circle" DataFormatString="{0}" DataField="Output">
 </LabelsAppearance>
<TooltipsAppearance DataFormatString="{1}{0}"></TooltipsAppearance>
</telerik:PieSeries>
</Series>
</PlotArea>
 </telerik:RadHtmlChart>

Also i want to change the legend size (to display bigger than the normal size).
pls help me how to do that.


Thanks
-Alex
Alex
Top achievements
Rank 1
 answered on 15 Apr 2013
6 answers
513 views
Hello everyone,

I've downloaded the RadControls for ASP.NET AJAX and I am trying to use them in a MVC application. I'm especially interested on using
the RadScheduler control but I am having a hard time figuring out how to interact with it using AJAX/Json.
I am wondering if someone has some example of how could I bind/edit the Appointments or some other action within the Scheduler.

Thank you all!

Namaste
Plamen
Telerik team
 answered on 15 Apr 2013
1 answer
83 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
100 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
67 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
92 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?