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

Hi,

 

I would like to insert an image and text from the code behind once user has uploaded a photo with ability to re-position both (inserted image and text).

 

Currently I have followed this Demo to achieve uploaded image and showing into rad image editor correctly but same time i would like to insert an overlay image (e.g. water mark/company logo) and some text before showing it into rad image editor from the code behind (or may be from the client side - if possible).

 

Also both (inserted image and text) should be allowed to re-position once it is shown in rad image editor.

 

Any help would be really appreciated.

 

Regards,

Chintan

 

 

Vessy
Telerik team
 answered on 27 May 2015
6 answers
186 views
Hello,

I'm working on a project with controls that are updated by Ajax.

The project requirement is that the user may cancel a running request by clicking a button, and also fire the cancel event to the server.

How can I do this?

Thanks,
Daniel.
Brett
Top achievements
Rank 1
 answered on 27 May 2015
7 answers
626 views
Is there any reason you can't do an empty field alias in a group by expression? This seems like a very common thing to do as the field name clutters up the group by caption. Is there any clean way to do this? Also how do i put an alias on the actual field name that shows up in the group by header. I tried adding it after the field name as you do for the first field in the expression, but this did not seem to have any effect.

Thanks!
Levi
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 27 May 2015
2 answers
109 views

Hello,

we generated DockZones and Docks dynamically in the Code Behind (Page_Init):

RadDock radDock = new RadDock()
{
    ID = "dock_" + dock.Id,
    ClientIDMode = ClientIDMode.Static,
    UniqueName = dock.Id,
    DockMode = DockMode.Docked,
    BorderWidth = new Unit(0),
    EnableRoundedCorners = true,
    DefaultCommands = DefaultCommands.ExpandCollapse,
    CommandsAutoPostBack = true,
};
 
dockZoneControl.Controls.Add(radDock);

Our Problem is, that nothing happend by clicking the Collapse-Button.

 

I hope someone can help me.

 

 

 

 

Roxane
Top achievements
Rank 1
 answered on 27 May 2015
2 answers
175 views

Hi,

 

Can you clarify if/when support for this framework version has ended? The page http://www.telerik.com/aspnet-ajax/tech-sheets/net-support says its in Limited support yet the description of support policy suggests that it should be in Extended or not supported at all.

 

thanks

avner
Top achievements
Rank 1
 answered on 27 May 2015
2 answers
111 views

I encouter a strange behavior when I try to de-duplicate a grid with this code:

Protected Sub dtgProducts_ItemCreated(sender As Object, e As GridItemEventArgs)
 
    If (TypeOf (e.Item) Is GridDataItem) Then
 
 
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
 
        Response.Write(ProductMem & "-" & item.GetDataKeyValue("ProductCode") & "<br>")
 
        If item.GetDataKeyValue("ProductCode") = ProductMem Then 'ontdubbelen voor de zoekfunctie
            item.Display = False
        End If
 
        ProductMem = item.GetDataKeyValue("ProductCode")
    End If
End Sub

 

With four data items with ProductCode 106901AS404, the output is:

 

106901AS404-106901AS404
106901AS404-106901AS404
106901AS404-106901AS404
106901AS404-106901AS404

 

So how could ProductMem already be set on '106901AS404' in the first loop when no preceding item exists?

 

Please reply soonest, this is an urgent one...

 Thanks,

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 27 May 2015
4 answers
286 views

Hi

 The problem I am having is that when I put a RadAjaxPanel around my RadMap a postback to update the RadClientDataSource needs to be clicked twice in order for the select  url to be called. It works fine if I remove the ajax panel. 

 

<telerik:RadAjaxPanel runat="server">
  <telerik:RadTabStrip ID="connectionsTabStrip" runat="server" MultiPageID="connectionsMultiPage">
  <Tabs>
    <telerik:RadTab Text="Map" PageViewID="mapPageView" />
  </Tabs>
  </telerik:RadTabStrip>
                      
  <telerik:RadMultiPage ID="connectionsMultiPage" runat="server">
    <telerik:RadPageView ID="mapPageView" runat="server">
      <telerik:RadClientDataSource runat="server" ID="tripDataSource" AutoSync="true">
        <DataSource>
          <WebServiceDataSourceSettings ServiceType="GeoJSON" />
        </DataSource>
      </telerik:RadClientDataSource>
  
      <telerik:RadButton ID="button" runat="server" Text="View" OnClick="button_Click" />
      <telerik:RadMap runat="server" ID="tripMap">
        <LayersCollection>
          <telerik:MapLayer></telerik:MapLayer>
          <telerik:MapLayer Type="Shape" ClientDataSourceID="tripDataSource">                  
            <StyleSettings>
              <StrokeSettings Color="#ffffff" Width="10" />
            </StyleSettings>
          </telerik:MapLayer>
        </LayersCollection>
        <DataBindings>
          <MarkerBinding
            DataShapeField="shape"
            DataTitleField="title"
            DataLocationLatitudeField="locationLatitude"
            DataLocationLongitudeField="locationLongitude"
            DataTooltipTemplateField="tooltipTemplate" />
          </DataBindings>
          <CenterSettings  Latitude="-32.962926"  Longitude="151.699727"/>
        </telerik:RadMap>
      </telerik:RadPageView>
    </telerik:RadMultiPage>
  </div>
  <uc1:ExceptionArea runat="server" ID="ExceptionArea" />
</telerik:RadAjaxPanel>

I have some code behind on the button click "button_Click"

tripDataSource.DataSource.WebServiceDataSourceSettings.Select.Url = "/Data/GetJsonTrip.aspx";
tripDataSource.DataBind();
 
tripMap.DataSource = GetMarkers();
tripMap.DataBind();
 

 If I put a break point in GetJsonTrip.aspx I can see it only gets called, on the first click, but does get called on every click after that.

 If I set WebServiceDataSourceSettings.Select.Url in a partial post back, why does the indicated URL not get called after the first postback?

 

Thanks for any help

Matt

 

 

 

 

Matthew
Top achievements
Rank 1
 answered on 27 May 2015
1 answer
80 views
How to keep browse, cancel and remove button static? 
Ivan Danchev
Telerik team
 answered on 27 May 2015
3 answers
160 views

Select button example

I am looking to do something similar to this example but instead, I want a button or link in a column to fire an event which opens up the record for editing.

Clicking the row fires a selected index changed which does something else.

 The closest thing I have found is something like this:

Event DataGridView1ButtonClick(sender As DataGridView, e As DataGridViewCellEventArgs)
 
Private Sub DataGridView1_CellContentClick(sender As System.Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
    Dim senderGrid = DirectCast(sender, DataGridView)
    If TypeOf senderGrid.Columns(e.ColumnIndex) Is DataGridViewButtonColumn AndAlso e.RowIndex >= 0 Then
        RaiseEvent DataGridView1ButtonClick(senderGrid, e)
    End If
End Sub
Is this possible with the RadGrid?

Viktor Tachev
Telerik team
 answered on 27 May 2015
1 answer
183 views

I'm having a problem trying to bubble the search server event from within a template.

I am programmatically creating my controls. The SearchBox control is in the LayoutTemplate of a RadListView control. I also have a RadToolBar which seems to have no problem bubbling events from within that template.

Here is sample code 

 

Public Class RadListViewLayoutTemplate

    Inherits Control
    Implements ITemplate

    Public Sub New()

    End Sub

    Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements ITemplate.InstantiateIn

        Dim RadSearchBox1 As New Telerik.Web.UI.RadSearchBox
        RadSearchBox1.ID = "RadSearchBox1"

        AddHandler RadSearchBox1.Search, AddressOf RadSearchBox1_Search
        container.Controls.Add(RadSearchBox1)

        container.Controls.Add(New LiteralControl("&nbsp;"))

        Dim RadSearchToolBar1 As New Telerik.Web.UI.RadToolBar
        RadSearchToolBar1.ID = "RadSearchToolBar1"

        Dim AdvancedSearchButton As New Telerik.Web.UI.RadToolBarButton
        AdvancedSearchButton.Text = Resources.WebResources.AdvancedSearch

        AdvancedSearchButton.CommandName = "AdvancedSearch"
        RadSearchToolBar1.Items.Add(AdvancedSearchButton)

        AddHandler RadSearchToolBar1.ButtonClick, AddressOf RadSearchToolBar1_ButtonClick
        container.Controls.Add(RadSearchToolBar1)

  End Sub

   Protected Sub RadSearchBox1_Search(sender As Object, e As Telerik.Web.UI.SearchBoxEventArgs)

        MyBase.RaiseBubbleEvent(Me, New CommandEventArgs("Search",e.Text ))

    End Sub

    Protected Sub RadSearchToolBar1_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs)
        If TypeOf e.Item Is Telerik.Web.UI.RadToolBarButton Then
            Dim RadToolBarButton1 As Telerik.Web.UI.RadToolBarButton = CType(e.Item, Telerik.Web.UI.RadToolBarButton)
            Select Case RadToolBarButton1.CommandName
                Case "AdvancedSearch"
                    MyBase.RaiseBubbleEvent(Me, New CommandEventArgs("AdvancedSearch", Nothing))
            End Select
        End If
    End Sub

End Class

Aneliya Petkova
Telerik team
 answered on 27 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?