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

Hi.

I want to call a Javascript function on a batch edit enabled grid for the actual moment the user clicks the checkbox, checking or unchecking the value on a GridCheckBoxColumn checkbox control in the grid.  The JavaScript function called should be able to reference the row to which the clicked checkbox belongs in order to change any values in the same row.

Where in the batch edit grid do I setup the call to the function for the GridCheckBoxColumn click event in a way that allows setting up the (sender, args) parameters that allow manipulating data in the row which contains the clicked checkbox?

Many thanks for your help in advance.

 -Lannity

Konstantin Dikov
Telerik team
 answered on 12 May 2015
7 answers
254 views
I am having issues exporting the RadGrid.  I have a grid with multiple pages and multiple detail tables.  I would like to export all pages, but no detail tables.  I have found that if ExportSettings.IgnorePaging  = true, then I get all pages with every single detail table.  If I set 

ExportSettings.IgnorePaging = false, then I don't get any detail tables, but I also only get the page of the grid that I am currently on.  Is there a way to get all pages, but not the detail tables? 

I have played with the MasterTableView.HierarchyDefaultExpanded property, but I have found that it does nothing at all for me so it does not matter what I set it to.

 

Daniel
Telerik team
 answered on 12 May 2015
5 answers
109 views

Hi Telerik team,

Does Telerik charts have a feature to select a range of points in plot area. We are in a situation to select a range of values and calculate its average and
display. Currently we are using Telerik 2013.2.611.45 Version . Can you suggest the best way to implement. See image Attached below.

Thanks!

 

Danail Vasilev
Telerik team
 answered on 12 May 2015
1 answer
121 views

Hi,

I am using a Rad window, which contains a file upload control. I am trying to clear the file path, when the rad window is closed.

Below is the aspx code:

<telerik:RadWindow runat="server" ID="rwUpload" Title="UPLOAD"
 
        RestrictionZoneID="ContentTemplateZone" Width="400px" Modal="true" Behaviors="Close"
 
        VisibleStatusbar="false" MaxHeight="200px" OnClientClose="OnClientClose" ReloadOnShow="true"
 
        ShowContentDuringLoad="false">
 
        <ContentTemplate>
 
            <telerik:RadWindowManager ID="rwmUpload" runat="server" EnableShadow="true">
 
            </telerik:RadWindowManager>
 
            <div style="width: 380px; overflow: hidden" class="contButton">
 
                <table style="margin-left: 30px; top: 30px;" width="340px">
 
                    <br />
 
                    <asp:FileUpload ID="FlupExceFile" Width="300px" runat="server" />
 
                    <br />
 
                    <br />
 
                    <asp:Label ID="lblMessage" ForeColor="red" runat="server"></asp:Label>
 
                </table>
 
                <br />
 
                <table style="margin-left: 30px; vertical-align: bottom;" width="340px">
 
                    <tr valign="bottom">
 
                        <td>
 
                            <telerik:RadButton ID="btnUpload" runat="server" Text="Upload" OnCommand="btnUpload_OnCommand">
 
                            </telerik:RadButton>
 
                        </td>
 
                    </tr>
 
                </table>
 
            </div>
 
        </ContentTemplate>
 
    </telerik:RadWindow>

I want to remove the file path using jquery/javascript when the rad window is closed.

How to achieve this?

Thanks

Marin Bratanov
Telerik team
 answered on 12 May 2015
4 answers
303 views
Hi,

I need to show TimeSpan values in a grid with sorting and filtering. Sorting is OK but filtering is not OK. I tested many ways but none worked.

<MasterTableView AllowCustomPaging="false" AllowFilteringByColumn="true">
  <telerik:GridBoundColumn DataField="Duration" HeaderText="Duration" UniqueName="Duration" />
  <telerik:GridDateTimeColumn DataField="Duration" HeaderText="Duration" UniqueName="Duration" PickerType="TimePicker" DataType="System.TimeSpan" />
  ...
</MasterTableView>
 
Any solution ?

Thanks in advance
Kostadin
Telerik team
 answered on 12 May 2015
1 answer
38 views

Hi,

we have used in the past RadEditor for MOSS 2007. Only out of the box -> in list forms, contenteditors and publishing pages. We are now considering using RadEditor for SharePoint 2010 but we have one special requirement:

 We need to implement and use the RadEditor on custom aspx pages.

 a) is this possible?

 b) do you have any sample for that scenario. i couldnt find anything on the help page.

 

best regards

Yavuz

Yavuz
Top achievements
Rank 1
 answered on 12 May 2015
3 answers
506 views
Hi
   how to get databound value(column) from databound event in telerik radgrid
Eyup
Telerik team
 answered on 12 May 2015
2 answers
243 views

I have been using the follow code ( trimmed and cleaned for posting ) to resize the scrolling part of the div depending on how tall the browser is. After upgrading form Q3 2014 to Q1 2015 this error has started to be thrown. Thoughts?

01.function ResizeReviewersGrid() {
02.            if ($find("grid_id")) {
03. 
04.                var grid = $find("grid_id");
05. 
06.                if (grid.GridDataDiv) {
07. 
08.                    var scrollArea = grid.GridDataDiv;
09.                    var gridHeader = grid.GridHeaderDiv;
10. 
11.                    scrollArea.style.height = 500 - gridHeader.clientHeight + "px";
12. 
13.                    grid.repaint();
14.                }
15.            }
16.        }

Maria Ilieva
Telerik team
 answered on 12 May 2015
5 answers
148 views

How do I pause but not stop.

I want to pause while the mouse is over the gallery and resume when i move the mouse off. I can stopSlideshow but that is not what I am really after.

Thanks, Marty

Viktor Tachev
Telerik team
 answered on 12 May 2015
1 answer
135 views

Hi,

 

I've got a radgrid inside the item template of a radlistview and everything binds fine and looks ok with the data, however when i try and perform an edit on the data inside the radgrid then things dont seem to be working correctly.

I have set a OnUpdateCommand function for the grid but it is seemingly never called, i also have an onItemCommand function which i can successfully use to intercept the 'Update' commandname, however when i try and get any column values i simply get either "" or "&nbsp" back instead.

 

<telerik:RadGrid ID="radgrvAffectedLocations" runat="server" MasterTableView-EditMode="InPlace" OnNeedDataSource="radgrvAffectedLocations_NeedDataSource" OnItemDataBound="radgrvAffectedLocations_ItemDataBound" OnUpdateCommand="radgrvAffectedLocations_UpdateCommand"  OnItemCommand="radgrvAffectedLocations_ItemCommand">
                                   <MasterTableView AutoGenerateColumns="False" TableLayout="Fixed">
                                       <Columns>
                                           <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                                          <telerik:GridBoundColumn DataField="ID" UniqueName="ID" ></telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn DataField="ServiceID" UniqueName="ServiceID"></telerik:GridBoundColumn>
                                          <telerik:GridTemplateColumn HeaderText="Location" UniqueName="Location">
                                               <ItemTemplate>
                                                   <asp:Label ID="lblLocation" Text='<%# Eval("Location") %>' runat="server" />
                                               </ItemTemplate>
                                               <EditItemTemplate>
                                                   <telerik:RadAutoCompleteBox ID="acLocationEdit" runat="server" AllowCustomEntry="false" TextSettings-SelectionMode="Single" InputType="Text" Width="100%">
                                                       <WebServiceSettings Path="Create.aspx" Method="GetLocationForAutoComplete" />
                                                   </telerik:RadAutoCompleteBox>
                                               </EditItemTemplate>
                                           </telerik:GridTemplateColumn>
                                           <telerik:GridTemplateColumn HeaderText="Service" UniqueName="Service">
                                               <ItemTemplate>
                                                   <asp:Label ID="lblAffectedServices" Text='<%# Eval("Service") %>' runat="server" />
                                               </ItemTemplate>                                                   
                                               <EditItemTemplate>
                                                   <div style="width:100%;">
                                                    <telerik:RadDropDownTree ID="ddlAffectedServicesEdit" Width="100%" CheckBoxes="SingleCheck" CheckNodeOnClick="true" runat="server" OnClientEntryAdding="DropDown_EntryAdding" DropDownSettings-Width="53%"></telerik:RadDropDownTree>
                                               </div>
                                               </EditItemTemplate>
                                           </telerik:GridTemplateColumn>
                                       </Columns>
                                   </MasterTableView>
                               </telerik:RadGrid>

That is my aspx page and if i try the following code in the code behind inside the onItemCommand:

if (e.CommandName == RadGrid.UpdateCommandName)
            {
                GridEditableItem editedItem = e.Item as GridEditableItem;
            }

Very simple code just to try and get some data in debug, if i breakpoint on the code above, my editedItem has count of 2 old values but if i try and get for example editedItem["ID"].Text then the value returned is ""

Any ideas?

Thanks,

Scott

Eyup
Telerik team
 answered on 12 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?