Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
611 views
I have a RadComboBox that was working great. I then decided to move the ComboBox to a usercontrol, using a RadAjaxManagerProxy control. I'm loading items on demand. The error that i get specifically is this:

The target 'ctl00$ph_content$ctl00$cboCompany' for the callback could not be found or did not implement ICallbackEventHandler.

I belive ctl00$ph_content$ctl00$cboCompany is the wrong location for the ComboBox now that it is in the UserControl.

Has anyone seen this behavior and know a fix?

Thanks,
Duncan
Marc
Top achievements
Rank 1
 answered on 31 May 2013
2 answers
135 views
Hello experts,

I am trying to create a super simple horizontal menu, something like: Home | About | Contact
I don't need sub menus or all the advanced stuff of the RadMenu. However, I need to be able to style it exactly like the website, hence can't use any of the Telerik skins.

<telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" EnableEmbeddedSkins="False" Skin="">
  <Items>
    <telerik:RadMenuItem Text="Home" ></telerik:RadMenuItem>
    <telerik:RadMenuItem runat="server" Text="|" IsSeparator="True" />
    <telerik:RadMenuItem Text="About" ></telerik:RadMenuItem>
    <telerik:RadMenuItem runat="server" Text="|" IsSeparator="True" />
    <telerik:RadMenuItem Text="Contact" ></telerik:RadMenuItem>
  </Items>
</telerik:RadMenu>

I tried the tutorial to create a custom skin:

http://www.telerik.com/help/aspnet-ajax/menu-appearance-creating-custom-skins.html

but I can't manage to skin it as I want. There are zillions of css classes, some are not  even exposed and built-in within the Telerik control.

The resulting html of the RadMenu control is some super simple <ul><il>, exactly what I want. But it is rendered useless because I can't control its styling.

Can the RadMenu control be configured so all its embedded css classes are removed?
May be is there another control a better choice to do such a simple menu?

thank you for your help.
Micha
Top achievements
Rank 1
 answered on 31 May 2013
4 answers
487 views
hi,

i want to add a custom attribute to radgrid and this attribute must shown on source of grid html.. is it possible?
for example;

 <div id="RadGrid1" class="RadGrid RadGrid_Office2007" myAttribute="someAttributeValue" >
.... other grid html on page.....
</div>

thanks in advance..
Sylvie
Top achievements
Rank 1
 answered on 31 May 2013
3 answers
198 views
Hi,

I am exporting grid data into an excel. I needed to add company logo at the top in excel. So, I did this:

string

 

 

imageURL = Page.ResolveUrl("~/Images/") + "Companylogo.jpg";
 
Radgrid1.ExportSettings.FileName = pFileName;

 

Telerik.Web.UI.ExportInfrastructure.

 

Table table = pExportEventArgs.ExportStructure.Tables[0];

 

xls.

 

Cell cmpCell = table.Cells["A1"];

 

table.InsertImage(cmpCell, imageURL);

table.ShiftRowsDown(1, 8);

Then I need to add some information to the sheet like this on row 9, from starting cell like this:
table.rows[9].cells[0]. value = "Down loaded from company name:" + current Date Time;

For this long text to appear as visible, I want to merge cells and then display.

From row 10, grid data gets displayed. If cell1 is not wide enough, row 9 value partially is visible.

How can I merge cells of particular row and add value to it.

I appreciate your response.

Daniel
Telerik team
 answered on 31 May 2013
1 answer
120 views
Hi,

I've got a hierarchichal RadGrid with one Detail Table. Lets call the items on the upper level "boxes" and the ones in the detail table "apples" - which is quite near reality in this case. (only we're not actually tracking apples ;-))

The user can move one or more different apples from one to another box via DragDrop.

This works fine when the apples are dropped on a specific box: Then I get a e.DestDataItem from the RadGrid1_RowDrop(object sender, GridDragDropEventArgs e) event, and I can figure out which box the apple(s) were placed in.

It also works fine, when there are already apples in a box, and some other apples are dropped on these rows. Then again I get a e.DestDataItem, and I can figure out, which box these apples are in, and I can add the dragged apples to the same box.

BUT: If apples are dropped either on the header rows of the DetailTable, or if a box is empty and they are dropped on the "No child records to display", then the e.DestDataItem is null. This sort of makes sense, but in this case I need a reference to the box, so I can add the dragged apples to this box.
I spent almost an hour now inspecting the GridDragDropEventArgs I get in this case, and I can nowhere find a reference. As soon as the DestDataItem is null, there seems to be no way of finding out which box the apples were dragged on.

The DestinationGrid and DestinationTableView Members are both not-null, so maybe I am missing something.
Any help is appreciated.

Best,
Christian

Angel Petrov
Telerik team
 answered on 31 May 2013
7 answers
609 views
Hello,

I have a Radchart with zooming feature enabled. Is there a way to:

1. Programmatically reset zoomed chart so that if reverses to the original state
2. Set a zoom limit. For example prevent uset to zoom more than 200%

Thank you,
M. Rusu
Rosko
Telerik team
 answered on 31 May 2013
1 answer
114 views

I was able to reproduce the problem in your online demo: http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

 

Steps to reproduce:

  1. Clear the content in the editor.
  2. In the font name dropdown, select "Tahoma".
  3. In the font size dropdown, select "20px". Note that the front name switched back to "Segoe UI" and font size is not retained.

I am running IE10.

Thanks.

 

Joana
Telerik team
 answered on 31 May 2013
0 answers
135 views
I put a RadWindow to popup on a button click on a web page
the control contains a RadNumericTextbox, a user control consisting of 10 buttons 0-9 and 2 buttons Cancel and Update

the keypad is supposed to grab the number entered and concatenate it to the number in the textbox
only problem is, I can't seem to be able to figure out how to enter decimal digits i.e. cents
' this method handles lump sum entry of one character using the pen
' it also is called using a mouse
Private Sub KeyEntry1_SubmitClicked() Handles KeyEntry1.SubmitClicked
    ' if the button tapped was the del button clear the qty textbox
    If KeyEntry1.pTag.ToString() = "del" Then
        rntbLumpSum.Value = Nothing
        rntbLumpSum.Text = ""
        ' otherwise append the character in the Tag property to the
        ' qty textbox
    ElseIf KeyEntry1.pTag.ToString() = "." Then
    Else
        rntbLumpSum.Text += KeyEntry1.pTag.ToString()
    End If
End Sub
Imports Telerik.Web.UI
 
Partial Class KeyEntry
    Inherits System.Web.UI.UserControl
    Public Delegate Sub SubmitClickedHandler()
    Private btnText As String
    Private key_press As String
    Public Event SubmitClicked As SubmitClickedHandler
 
    Public Property keyPad() As String
        Get
            Return btnText
        End Get
 
        Set(ByVal value As String)
            btnText = value
        End Set
    End Property
 
    Public ReadOnly Property pTag() As String
        Get
            Return key_press
        End Get
    End Property
 
    Protected Sub button_Click(sender As Object, e As EventArgs) Handles Bdel.Click, B0.Click, B1.Click, B2.Click, B3.Click, B4.Click, B5.Click, B6.Click, B7.Click, B8.Click, B9.Click, Bdot.Click
        btnText = DirectCast(sender, RadButton).Text
        key_press = DirectCast(sender, RadButton).Text
        RaiseEvent SubmitClicked()
    End Sub
End Class
the RadWindow
<div>
    <telerik:RadWindow ID="rwLumpSum" Modal="true" Top="0" Left="0" VisibleOnPageLoad="false" runat="server" >
        <ContentTemplate>
        <asp:UpdatePanel ID="cpLumpSum" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <table>
            <tr>
            <td>Lump Sum</td>
            <td>
                <telerik:RadNumericTextBox ID="rntbLumpSum" MinValue="0" MaxValue="999.99" runat="server">
                    <NumberFormat DecimalDigits="2" />
                </telerik:RadNumericTextBox>
            </td>
            </tr>
            <tr>
            <td colspan="2">
                <keypad:KeyEntry ID="KeyEntry1" runat="server" />
            </td>
            </tr>
            <tr>
            <td>
                <telerik:RadButton id="rbCancel" Text="Cancel" OnClientClicked="rbCancelClicked" AutoPostBack="false" UseSubmitBehavior="false" CausesValidation="false" runat="server" />
            </td>
            <td>
                <telerik:RadButton id="rbUpdate" Text="Update" OnClientClicked="rbUpdateClicked" runat="server" />
            </td>
            </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="rbUpdate" />
        </Triggers>
        </asp:UpdatePanel>
        </ContentTemplate>
    </telerik:RadWindow>
</div>
Elliott
Top achievements
Rank 2
 asked on 31 May 2013
0 answers
109 views
hi, i need to know if it's possible to add to the radscheduler resources by code, then create appoitments and view them in the radscheduler

I know i can set the resources type and group by rooms but i would like to create all with the code.
i want create a sort of list with names of resources, then create some appoitments, set for each one who is the resource, so i can see the appoitments in the radscheduler without use a query o sqldatasource from the aspx-code.

it's that possible?




TT
Top achievements
Rank 1
 asked on 31 May 2013
4 answers
82 views
Hi,

We are currently experiencing some problems when trying to add a hyperlink to the RadEditor using the Hyperlink Manager.
This happens with IE 7.
We are currently using version 2013.1.319.40 of the ASP.NET AJAX controls.

For example let's say I try to add a hyperlink to google and I want it to open in a new window:
I get the image ie7_tryingtoinserthyperlink

When I click on OK, here's the html that gets produced in the editor:
<SPAN id=__insertNodeBefore>a</SPAN><SPAN id=__insertNodeAfter>b</SPAN>
I get the image: ie7_afterinserthyperlink

Any help would be appreciated.

Thanks,
Cameron

Cameron
Top achievements
Rank 1
 answered on 31 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?