Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
838 views
Hi,
In reading the documentation here:

http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html

I see this:
 CautionWhen setting the EditMode to Batch multi-row editing is not supported as only one editor is initialized for a given column(for performance purposes).

This caution would seem to defeat the purpose of batch (Excel-like) editing.

I'm trying to find a way to save the new values for all rows and all cells that have the red triangle on them as the result of batch editing. As it is now, I can only retrieve the values from the cell that is currently having an edit made. 

Here is the start of my code. Perhaps it's not firing on the proper event.

Protected Sub RadGrid1_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand
 
    Dim argument As Telerik.Web.UI.GridBatchEditingEventArgument = TryCast(e.CommandArgument, Telerik.Web.UI.GridBatchEditingEventArgument)
    Dim oldValues As Hashtable = argument.OldValues
    Dim newValues As Hashtable = argument.NewValues

Thanks in advance.
Supachai
Top achievements
Rank 1
 answered on 27 May 2015
1 answer
616 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
170 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
571 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
99 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
159 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
83 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
266 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
69 views
How to keep browse, cancel and remove button static? 
Ivan Danchev
Telerik team
 answered on 27 May 2015
3 answers
131 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?