Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
100 views
I have 2 controls in a grid. A radio button list and a rad date picker. When a user edits or adds info into the grid they can chose between 3 options. only 1 option the date picker is enabled the other 2 options the date picker is disabled. I am trying to do this on Selected Index change on the radio button list, but I can't get the controls of either date picker or radio button list on client or server side. I tried both ways but I am not able to find the solution on this site.

Thanks
Princy
Top achievements
Rank 2
 answered on 18 Jul 2011
2 answers
93 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
105 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
382 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
294 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
38 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
209 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
205 views
Is there anyway to open raddatepicker on form load?

Thanks
JJ
Top achievements
Rank 1
 answered on 17 Jul 2011
2 answers
82 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
661 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
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
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
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?