Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
<telerik:GridTemplateColumn UniqueName="TempcolFormat" HeaderText="Title">
                               <ItemTemplate>
                                   <table>
                                       <tr>
                                           <td style="border: 0px;">
                                               <asp:Label ID="Label1" runat="server" Text='Title : '></asp:Label>
                                               <asp:Label ID="Lb2" Font-Bold="true" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                                           </td>
                                       </tr>
                                       <tr>
                                           <td style="border: 0px;">
                                               <asp:Label ID="Lb3" runat="server" Text='<%# Eval("description") %>'></asp:Label>
                                           </td>
                                       </tr>
                                   </table>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>

I bind radgrid like that . filter's not work for't in this condition.

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 18 Jul 2011
1 answer
122 views
Hi,

I am Srinivas,

In my project i have a RadGrid for Displaying Data from Backend Table. Here i am using GroupBy property for My RadGrid. Here i want to Place a Button in RadGrid Header Row along with GroupBy Text.

Here i was Displaying a GroupBy Text successfully. It shown in 1.Jpg Attached file. But along with text i want to Show the Button in RadGroupHeader Row. Like Shown in Attachment 2 (Example Only).

Here The following code for  Group Header Text 
If TypeOf e.Item Is GridGroupHeaderItem Then
Dim item As GridGroupHeaderItem = DirectCast(e.Item, GridGroupHeaderItem)
Dim groupDataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
'Dim nodeCollection As IList(Of RadTreeNode)
item.DataCell.Text = ""
For Each column As DataColumn In groupDataRow.DataView.Table.Columns
If column.ColumnName = "lot_id" And n >= 1 Then
item.DataCell.Text = RadTreeView1.CheckedNodes(item.GroupIndex).FullPath + "<br/>"
<Button Adding>
Dim hyplnk As New Button()
hyplnk.Text = "Redirect"
item.DataCell.Controls.Add(hyplnk)</button>
Else
item.DataCell.Text = RadTreeView1.CheckedNodes(item.GroupIndex).FullPath
End If
Next
End If
But it is not working fine..
Please Help me.

Thanks
D.Srinivas
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2011
1 answer
412 views
Hi,

I would like to inquire on what are these 2 items and some demo on how to make use of them.
I tried to use the HeaderStyle Width="100px" for both of them, just to learn what are these 2 elements but to no avail.

And this: <ClientSettings EnableAlternatingItems="true">
What is this for? It doesn't seem to make any difference to the appearance, unlike <telerik:RadGrid ID="MyRadGrid" runat="server" AlternatingItemStyle-BackColor="AliceBlue"


Please advise.

Thanks
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2011
1 answer
324 views
Hi,

I am Srinivas,

In my project i have a RadGrid for Displaying Data from Backend Table. Here i am using GroupBy property for My RadGrid. Here i want to Place a Button in RadGrid Header Row along with GroupBy Text.

Here i was Displaying a GroupBy Text successfully. It shown in 1.Jpg Attached file. But along with text i want to Show the Button in RadGroupHeader Row. Like Shown in Attachment 2 (Example Only).

Here The following code for  Group Header Text 
If TypeOf e.Item Is GridGroupHeaderItem Then
Dim item As GridGroupHeaderItem = DirectCast(e.Item, GridGroupHeaderItem)
Dim groupDataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
'Dim nodeCollection As IList(Of RadTreeNode)
item.DataCell.Text = ""
For Each column As DataColumn In groupDataRow.DataView.Table.Columns
If column.ColumnName = "lot_id" And n >= 1 Then
item.DataCell.Text = RadTreeView1.CheckedNodes(item.GroupIndex).FullPath + "<br/>"
<Button Adding>
Dim hyplnk As New Button()
hyplnk.Text = "Redirect"
item.DataCell.Controls.Add(hyplnk)</button>
Else
item.DataCell.Text = RadTreeView1.CheckedNodes(item.GroupIndex).FullPath
End If
Next
End If
But it is not working fine..
Please Help me.

Thanks
D.Srinivas
Princy
Top achievements
Rank 2
 answered on 18 Jul 2011
1 answer
64 views
Hi

I have attached 2 images in this post. Can anyone tell me is it possible to do in radgrid? If it so, please suggest how to achieve ?

Regards
Arima
Princy
Top achievements
Rank 2
 answered on 18 Jul 2011
6 answers
249 views

I have a RadGrid with an OnRowDbClick method set.

This is the code from inside the grid

<ClientSettings EnablePostBackOnRowClick="true">
    <Selecting AllowRowSelect="True" />
    <ClientEvents OnRowDblClick="RowDblClick" />
</ClientSettings>

In the RowDblClick method I get the item index like this.

function RowDblClick(sender, eventArgs) {
         var i =  eventArgs.get_itemIndexHierarchical();
         // rest of this method removed for brevity.    
}

This works.

Now elsewhere on this page I have a simple button.
<input type="button" value="Select" onclick="SetupPageIndexing()" />

function SetupPageIndexing() {
      // ??
}


The button is not part of the grid. It's just a button.

I gave it an OnClick event method however how do I get this eventArgs.get_itemIndexHierarchical() value?  eventArgs is not a property of my buttons click event and as it is not related to the grid in anyway, I can't see how to get this value.





Brad
Top achievements
Rank 1
 answered on 17 Jul 2011
5 answers
242 views
Is there anyway to open raddatepicker on form load?

Thanks
JJ
Top achievements
Rank 1
 answered on 17 Jul 2011
2 answers
96 views
Hello there,

I downloaded trial version and i set up a blank page with Telerik's project template. I added Editor control from Toolbox. I did not set any properties of the Editor. Telerik.Web.UI.DialogHandler's all web.config setup was already in web.config.

All editor dialogs are working properly in my development machine. My development machine and production server are using same version of IIS which is 7.5. I'm not using any URL rewrites.

However, my production server shows blank page when pressing any manager dialogs and some of the dialogs are not working properly. What's the problem?

Thanks in advance!
Gamze
Top achievements
Rank 1
 answered on 16 Jul 2011
3 answers
717 views
Hi

I am having the following issue in RadNumericTextBox which has been placed inside the RadGrid Template column.

1. In SQL my data would be like the following
   
Range
12.12457234
585
23.01
0
1112.792345

When I bind the data to my RadGrid, the RadNumericTextBox by default it takes the decimal point, that is for the second row in the RadGrid the data was binded as 585.00 insted of 585.

Our requirement is to display the exact value which are stored in SQL.
Erik
Top achievements
Rank 2
 answered on 16 Jul 2011
0 answers
113 views
I have the following code which within I am trying to get the selected items into an arraylist which I then put into an email.

My code is adding items to the arraylist however, if more than 1 item is selected, then it duplicates the record with the first ID. so if i select row 3, row 4, row 5 then my output is:

row3, row3, row4, row5

Any ideas please

Protected Sub btnRequestFiles_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRequestFiles.Click
        If RequestFiles.SelectedItems.Count = 0 Then
            lblNoFilesSelected.Text = "No files have been requested"
        Else
            lblNoFilesSelected.Text = ""
            If String.IsNullOrEmpty(txtEmail.Text) Then
                Dim dvEmailAddress As Data.DataView = GetEmailAddress.Select(DataSourceSelectArguments.Empty)
                txtEmailAddress.Text = dvEmailAddress.ToTable.Rows(0)("EmailAddress")
            Else
                txtEmailAddress.Text = txtEmail.Text
            End If
 
            Dim FileID As Integer
            Dim ArraySelectedFiles As New ArrayList
            For Each item As GridDataItem In RequestFiles.MasterTableView.Items
                If item.Selected Then
                    Dim Filename As String = item("FileNumber").Text.ToString()
                    Session("FileID") = Filename
                    ArraySelectedFiles.Add(Session("FileID"))
                    FileID = Convert.ToInt32(item.GetDataKeyValue("FileID"))
                    'Grab the objects out array and put into string.
                    For Each objitem In ArraySelectedFiles.ToArray
                        Session("PropertyString") = Session("PropertyString") & objitem.ToString
                        lblArrayList.Text = Session("PropertyString")
                    Next
                    Dim conFiles As SqlConnection
                    Dim strConnection As String
                    Dim cmd As New SqlCommand
                    Dim cmdinsert As SqlCommand
                    Dim strInsert As String
 
                    strConnection = ConfigurationManager.ConnectionStrings("FileawaySQLConnectionString").ConnectionString
                    conFiles = New SqlConnection(strConnection)
                    conFiles.Open()
                    cmd.Connection = conFiles
                    cmd.CommandText = "UPDATE dbo.Files SET FileStatus = 2 WHERE FileID = '" + FileID.ToString() + "'"
                    cmd.ExecuteNonQuery()
                    conFiles.Close()
                    conFiles = New SqlConnection(strConnection)
                    strInsert = "INSERT INTO dbo.FileHistory (FileID, Action, ActionedBy) VALUES (@RowID, @Action, @ActionedBy)"
                    cmdinsert = New SqlCommand(strInsert, conFiles)
                    cmdinsert.Parameters.AddWithValue("@RowID", FileID)
                    cmdinsert.Parameters.AddWithValue("@Action", 2)
                    cmdinsert.Parameters.AddWithValue("@ActionedBy", txtEmailAddress.Text)
                    conFiles.Open()
                    cmdinsert.ExecuteNonQuery()
                    conFiles.Close()
 
 
 
 
                End If
 
 
            Next
 
            Me.RequestFiles.Rebind()
 
            send_email()
 
 
        End If
        Session.Remove("PropertyString")
 
       
 
    End Sub

Andrew
Top achievements
Rank 1
 asked on 16 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?