Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Hey There,

I have a RadGrid which currently works with its GroupLoadMode set to SERVER. This way, I can preserve expanded and collapsed groups and set the grid back to the way it was after a postback was made to the server. However, I would like to change the GroupLoadMode to CLIENT in order to speed up the UI. The same code will still remain to put the grid back to its state it was before a postback was requested, but since I'm handling it on the client, I need to get the INDEX of the group that was just expanded (or the Expand/Collapse Button's ID) in order to add/remove that value from the hidden field where I save expanded group's IDs.

So what am I asking here: (a) Get the grouping index of the item being expanded on the client side, or (b) Get the ID of the expand/collapse button of the group on the client side.
Eyup
Telerik team
 answered on 07 Apr 2014
1 answer
47 views
Hello,

The requirement is : User can search in SharePoint 2010 custom search page with parameters like Agreement Name , Cost Center etc and get the search results in grid format , with a check box for the user to select multiple search results for further processing. The data source for these results is Oracle database , we will be using BCS (external list) to integrate the data. While searching on parameters like cost center , their data source is again oracle , which should give the user functionality to search & select from different cost centers by opening another page for cost center search. Can this be achieved using Telerik SPGrid Webpart or any other web part ?

Please find attached image file for reference.

Any thoughts or ideas !!!  
Marin
Telerik team
 answered on 07 Apr 2014
3 answers
194 views
Never Mind, I found I was using the wrong localization.

Can the "all day" label on the left side of the scheduler above the time of day column be changed?

Because "Localization-AdvancedAllDayEvent" does not change it!

Thanks
Princy
Top achievements
Rank 2
 answered on 07 Apr 2014
1 answer
93 views
i have to add new items in radDropdownlist in jquery(its in schedular's edit form). i tried but not able to bind value for the text.
Aneliya Petkova
Telerik team
 answered on 07 Apr 2014
12 answers
893 views
Hi,

I'm having troubles using the export on my detail tables. In my page I've placed one RagGrid with a MasterTableView, in it is a detailTable and in there is another detailTable. I've set some export settings in the grid, like IgnorePaging = "true", and enabled the commandItemDisplay for the masterViewTable and for both detailTables.

The export of the Master works as expected, only the master table data ingnoring paging. However when pressing one of the export buttons on one of the two detail grids, the settings are ignored and the export only contains the visible records of the detailpage. This is the code (there is no code behind for the export).

<telerik:RadGrid GridTableView="true" ID="grdBuyer" runat="server" Visible="false"
            AutoGenerateColumns="false"
            AllowPaging="true"
            PageSize="10"
            AllowSorting="true"
 
            PagerStyle-AlwaysVisible="true"
 
            OnNeedDataSource="grdBuyer_NeedDataSource"
            OnItemCommand="grdGeneral_ItemCommand"
            OnDetailTableDataBind="grdBuyer_DetailTableDataBind"
          >
  
            <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true" HideStructureColumns="true" />
            <MasterTableView DataKeyNames="buyer_member_id" CommandItemDisplay="Top">
              <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
              <Columns>
                <telerik:GridBoundColumn DataField="buyer_member" HeaderText="Buyer" />
                <telerik:GridButtonColumn DataTextField="revenue" HeaderText="Revenue" CommandName="show_stats_rev" DataTextFormatString="$ {0:n2}">
                  <ItemStyle Width="150" />
                </telerik:GridButtonColumn>
                <telerik:GridButtonColumn DataTextField="imps" HeaderText="Impressions" CommandName="show_stats_imps" DataTextFormatString="{0:n0}">
                  <ItemStyle Width="150" />
                </telerik:GridButtonColumn>
                <telerik:GridButtonColumn DataTextField="ecpm" HeaderText="eCPM" CommandName="show_stats_ecpm" DataTextFormatString="$ {0:n2}">
                  <ItemStyle Width="100" />
                </telerik:GridButtonColumn>
              </Columns>
               
              <DetailTables>
                <telerik:GridTableView DataKeyNames="buyer_member_id,country" Name="country" PageSize="5" CommandItemDisplay="Top" CanRetrieveAllData="true">
                  <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
                  <Columns>
                    <telerik:GridBoundColumn DataField="name" HeaderText="Country" />
                    <telerik:GridButtonColumn DataTextField="revenue" HeaderText="Revenue" CommandName="show_stats_country_rev" DataTextFormatString="$ {0:n2}">
                      <ItemStyle Width="150" />
                    </telerik:GridButtonColumn>
                    <telerik:GridButtonColumn DataTextField="imps" HeaderText="Impressions" CommandName="show_stats_country_imps" DataTextFormatString="{0:n0}">
                      <ItemStyle Width="150" />
                    </telerik:GridButtonColumn>
                    <telerik:GridButtonColumn DataTextField="ecpm" HeaderText="eCPM" CommandName="show_stats_country_ecpm" DataTextFormatString="$ {0:n2}">
                      <ItemStyle Width="100" />
                    </telerik:GridButtonColumn>
                  </Columns>
                  <DetailTables>
                    <telerik:GridTableView DataKeyNames="buyer_member_id,country,size" Name="size" PageSize="5" CommandItemDisplay="Top">
                      <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
                      <Columns>
                        <telerik:GridBoundColumn DataField="size" HeaderText="Size" /> 
                        <telerik:GridButtonColumn DataTextField="revenue" HeaderText="Revenue" CommandName="show_stats_country_size_rev" DataTextFormatString="$ {0:n2}">
                          <ItemStyle Width="150" />
                        </telerik:GridButtonColumn>
                        <telerik:GridButtonColumn DataTextField="imps" HeaderText="Impressions" CommandName="show_stats_country_size_imps" DataTextFormatString="{0:n0}">
                          <ItemStyle Width="150" />
                        </telerik:GridButtonColumn>
                        <telerik:GridButtonColumn DataTextField="ecpm" HeaderText="eCPM" CommandName="show_stats_country_size_ecpm" DataTextFormatString="$ {0:n2}">
                          <ItemStyle Width="100" />
                        </telerik:GridButtonColumn>
                      </Columns>
                    </telerik:GridTableView>
                  </DetailTables>
                </telerik:GridTableView>
              </DetailTables>
 
            </MasterTableView>
          </telerik:RadGrid>

Could someone please help me how to use these export settings for the detailtables?

Thanks,
Danny
Shinu
Top achievements
Rank 2
 answered on 07 Apr 2014
1 answer
154 views
Hi, 

We are using the rad scheduler for appointments.  If the user want's to delete the appointment, it is displaying "Are you sure you want to delete the appointment".

But we need custom message based on the appointment type. 

 For Example: 
1.  Appointment Type #1 :  Message #1 
2.  Appointment Type #2 :  Message #2.


Please help me.

Thanks,
Praveen
Plamen
Telerik team
 answered on 07 Apr 2014
1 answer
72 views
I have a radgrid which has a mastertableview, with editmode is set to ‘batch’, in one column I have a GridTemplateColumn with an EditItemTemplate.  The EditItemTemplate has a button that displays a popup RadWidow from which the user can search and select the value for the column. The problem I am having is that when a new row is added the search button is displayed but when it is selected and the poup widow is displayed all new rows disappear, including any values entered in other columns. 

Is there a way to display a popup RadWindow from which a value can be selected without losing the new row?
Terry
Top achievements
Rank 1
 answered on 07 Apr 2014
3 answers
100 views
I have created a Nested grid having MasterTableView and one DetailTable. I am using BatchEdit functionality. I used Telerik.Web.UI.dll version "2013.2.611.45" earlier when created it. It was working fine but when I upgraded my Telerik.Web.UI.dll to version "2013.2.717.45" , when I click on row for editing it I gets error:
Error: Unable to get property '_data' of undefined or null reference.

Please get this issue resolved.

Thanks.
Imran
Angel Petrov
Telerik team
 answered on 07 Apr 2014
4 answers
70 views
Hello,
I'm using a ajax radgrid with an edit form (templated) into a popup (EditMode="PopUp"). Recently we updated our website from .NET 3.5 to .NET 4.0 so lots of configuration have changed (application pool, etc). My new radgrid is perfectly working on our test platform, but on another server the popup is not showing when I click on "Add new record" button.

I tried to switch to EditMode="EditForms", to see if it changed anything on this server. When clicking on the add button, the form is displayed apparently correctly on the top of the radgrid. But I noticed that the validators controls didn't perform client side validation.

When looking at the response of the server (with firebug) when clicking on the add button, it seems that some code is missing at the end of the response : the code that perform the client side validation. Could this explain why the popup is not showing in EditMode="PopUp" mode ? Some missing javascript code ?

Please note that the radgrid is working correctly on another server, so I'm pretty sure this is a telerik configuration issue. But I don't know where and what to check.
I'm available if you need another details about the problem. Thanks in advance for your help.
Angel Petrov
Telerik team
 answered on 07 Apr 2014
1 answer
100 views
I added Rad Content Menu to Rad grid but when i right click on Grid rows i don't see the menu coming up. Do i have to enable anything ? Please let me know.

Here is my code:

<script type="text/javascript">
         function RowContextMenu(index, e)
         {
           
             
             var menu = $find("<%=RadMenu1.ClientID %>");
             
              var evt = eventArgs.get_domEvent();
             var menuItem = menu.findItemByText("View");
            menuItem.set_navigateUrl("SalesDashboard.aspx?userType=VP&amp;MetricYear=2014&amp;SalesPerson=IACORP\Jeff.Rodgers");
            menu.show(evt);
            }
     </script>
                                                    

  <telerik:RadGrid ID="RadGrid1" Width="60.5%" runat="server" OnNeedDataSource="radGrid_NeedDataSource"            
                         AutoGenerateColumns="false" GroupingSettings-GroupByFieldsSeparator="" AllowMultiRowEdit="true" OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender" ClientSettings-ClientEvents-OnColumnContextMenu="true" >
            <MasterTableView ShowGroupFooter="false" EditMode="InPlace" DataKeyNames="SalesPerson">
                                  
                <Columns>              
                            
                 <telerik:GridBoundColumn UniqueName="Jt.Calls" DataField="Jt. Calls" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  ColumnGroupName="Monthly Activity" HeaderText="Jt. Calls" />
                 <telerik:GridBoundColumn UniqueName="Demos" DataField="Demos" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"  ColumnGroupName="Monthly Activity" HeaderText="Demos" />
                 
                </Columns>

                </MasterTableView>
          <ClientSettings>
            <ClientEvents OnRowContextMenu="RowContextMenu" />           
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        </telerik:RadGrid>
   
 <telerik:RadContextMenu ID="RadMenu1" runat="server" Skin="Vista" EnableRoundedCorners="true" EnableShadows="true" OnItemClick="RadMenu1_ItemClick">
        <Targets>
               <telerik:ContextMenuControlTarget ControlID="RadGrid1" />
          </Targets>
            <Items>
             <telerik:RadMenuItem Text="View"  />
     
            </Items>
</telerik:RadContextMenu>                        






Plamen
Telerik team
 answered on 07 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?