Hello,
I need to change the text inside the ContextHeaderMenu in a radgrid.
I have the following code on my Page_Load:
AddHandler RadGridTransmission.HeaderContextMenu.ItemCreated, AddressOf Me.ContextHeaderMenu_ItemCreated
And the following code to change text in the context menu:
Protected Sub ContextHeaderMenu_ItemCreated(ByVal sender As Object, _
ByVal e As RadMenuEventArgs)
If (e.Item.Value = "ColumnsContainer") Then
e.Item.Text = "Show/Hide columns"
ElseIf (e.Item.Level = 2) AndAlso (TryCast(e.Item.Parent, RadMenuItem).Value = "ColumnsContainer") Then
If (e.Item.Value.EndsWith("ReceiverID")) Then
e.Item.Text = "Source Receiver ID"
End If
End Sub
The part that changes the text to "Show/Hide columns" works but the one to change the text for items in "ColumnsContainer" doesn't.
It finds the item, sets the text but does not change when I run the code.
Any idea?
Thanks!
Hi,
I am using version 2015.1.401.40 of the ASP.NET controls for AJAX.
I am hiding the expand / collapse icon for mastertable rows where the detailed table has no rows. I am also setting the detail table to visible false. I'm doing both of these in the DetailTableDataBind like so:
e.DetailTableView.Visible = False
parentItem("ExpandColumn").Controls(0).Visible = False
I want the users to be able to expand and collapse all rows that have child data, so I added this property to the RadGrid: EnableHierarchyExpandAll="true"
However, that expands EVERY SINGLE ROW, even the rows where I've removed the expand / collapse button and set the detail table to invisible.
Question: Is there any way I can expand ONLY the rows that have an expand / collapse icon (only the rows that actually have detail data)?
I've looked a bit at the javascript you all use _expandAll, but don't think I can implement what I want to do...
Thanks,
Brent
Hi,
i m giving the Telerik Spreadsheet a try, because i used the WPF and Silverlight one. But as far as i can see, there s still some features missing.
I see that the only way to "customize" and "interact" with the spreadsheet is via provider. So, if i want to get data from DB i overwrite the GetSheets() method, and if i want to Save i override the SaveToWorkbook method.
1) But, what if i want to interact with the spreadsheet without postback?
2) Is there any way from listening to the Cell OnChange event ? (even on the client side would be fine)
3) In the CellContextMenu there is a OnClientItemClicked event. Are there any more events runnable from the client side?
Thanks for your support
Hi,
i want griddropdowncolumn used as radcomboBox should be set to value when checkbox is check and after that disable that dropdown
<telerik:GridCheckBoxColumn DataField="bitPhysical" HeaderText="Physical" UniqueName="bitPhysical" StringFalseValue="0" StringTrueValue="1" AllowFiltering="false"></telerik:GridCheckBoxColumn>
want this column to change and disable when check box is checked
<telerik:GridDropDownColumn DropDownControlType="RadComboBox" EmptyListItemText="Select..." ListTextField="strHostName" ListValueField="intHostServerId" HeaderText="Host" UniqueName="HostName" FilterDelay="200" ShowFilterIcon="false"></telerik:GridDropDownColumn>
also, would be able to do same with
<telerik:GridTemplateColumn HeaderText="Manufacturer" ItemStyle-Width="240px" UniqueName="ManufacturerName" FilterDelay="200" ShowFilterIcon="false">
<EditItemTemplate>
<telerik:RadDropDownList ID="radManufacturerDDL" runat="server" DefaultMessage="Select....." OnItemSelected="radManufacturerDDL_ItemSelected" AutoPostBack="true"></telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Model" ItemStyle-Width="240px" UniqueName="ModelName" FilterDelay="200" ShowFilterIcon="false">
<EditItemTemplate>
<telerik:RadDropDownList ID="radModelDDL" runat="server" DefaultMessage="Select..." AutoPostBack="true">
</telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
Please tell how i access this on client side.
I've tried using the various demo projects here - https://github.com/telerik/aspnet-sdk/tree/master/Scheduler/ExchangeCalendarSync
I'm getting this error:
Compiler Error Message: CS0508: 'ExchangeSchedulerProvider.GetAppointments(Telerik.Web.UI.RadScheduler)': return type must be 'System.Collections.Generic.IEnumerable<Telerik.Web.UI.Appointment>' to match overridden member 'Telerik.Web.UI.SchedulerProviderBase.GetAppointments(Telerik.Web.UI.RadScheduler)'
Source Error:
Line 123: /// <param name="owner">The owner RadScheduler instance.</param>
Line 124: /// <returns></returns> Line 125: public override IEnumerable<Appointment> GetAppointments(RadScheduler owner) Line 126: {
Line 127: List<ItemIdType> itemIds = new List<ItemIdType>();
Source File: c:\inetpub\sync\App_Code\ExchangeSchedulerProvider.cs Line: 125
<telerik:RadButton runat="server" ID="testButton" OnClientClick="onclicktestbutton" />
<script type="text/javascript">
function onclicktestbutton(sender, args) {
// I don't use window.event (it is non-standard)
}
</script>
Where can I set the event object??
I wanted to do it like this:
<telerik:RadButton runat="server" ID="testButton" OnClientClick="onclicktestbutton(event)" />
but we all know you can't insert paragraph on a telerik client event attribute because it automatically includes in the function the parameters (sender, args).
Hi,
I am using version 2015.1.401.40 of the ASP.NET controls for AJAX.
I would think my question would be very common and easy to do.
I have a RadGrid with a MasterTableView and 1 DetailTable (GridTableView). I am using NeedDataSource for binding and it is all working fine.
Not all records in the master, have child records. For the rows that do not, I have hidden the expand/collapse button in the DetailTableDataBind event.
When I export to Excel, I want to expand all rows that contain a child record, so that those rows get exported. I was doing that in DetailTableDataBind by setting every GridDataItem .Expanded = True.
ISSUE:
The problem with this is that it expands and exports the child rows that say "No Child Records".
Question: How can I NOT have it export the gridtableview, if there are no child records?
In the DetailTableDataBind, if there are no child records I set the DetailTableView.Visible = False, but my export still contains a blank row (which is better than the "No Child Records", but not perfect).
Thanks,
Brent