Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views

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!

Eyup
Telerik team
 answered on 04 Mar 2016
1 answer
560 views

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

 

Eyup
Telerik team
 answered on 04 Mar 2016
1 answer
109 views

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

 

Peter Filipov
Telerik team
 answered on 04 Mar 2016
2 answers
309 views
I've been having a long and frustrating weekend of trying to get my RadControls to work on User Controls (ascx) files.  For instance, the RadAsyncUpload control works just fine Client Side on a regular aspx page, but I'm having issues making it work on ascx files.  I have yet to make a Server Side event work on the AsyncUpload events and thinking of just scrapping it for the regular Asp.net Upload control.  Any way I can get some help within the next 24 hours on this?  I'm already behind struggling with these controls?  What is it that I'm missing to get them to work?
Ali
Top achievements
Rank 1
 answered on 04 Mar 2016
4 answers
216 views
Hi ,
I am using radrotator in my application , i just want to change the border color or color of the rotator selected item from asp.net c# code behind , can i expect some help on this

Thanks,
Mahesh
Bhavya
Top achievements
Rank 1
 answered on 04 Mar 2016
1 answer
134 views

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.

Eyup
Telerik team
 answered on 04 Mar 2016
5 answers
1.0K+ views
Hi,

After doing export to Excel the date format of Date field in Excel is "11/29/2010 0:00".

Where as in the grid it is displaying as "11/29/2010 12:00:00 AM". 

I want the Date format to remain the same in Excel as it is in the Grid, Please let me know how can i do that.

Thanks,
ADod







Kostadin
Telerik team
 answered on 04 Mar 2016
1 answer
52 views

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

Plamen
Telerik team
 answered on 04 Mar 2016
2 answers
186 views

<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).

 
Jes
Top achievements
Rank 1
 answered on 04 Mar 2016
1 answer
325 views

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

 

Eyup
Telerik team
 answered on 04 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?