Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
861 views

I am testing the ajax controls for a possible migration and I have a couple of doubts about the radgrid and raddosck

We are developing a dashboard screen that displays a differents panels. Some of the panels display charts and graphs, while others contain tables with aggregated data.

There is a lot of information being displayed on this page.

We want delay loads for each panels instead of waiting until all of the data for all of the panels has been processed before serving the page.

We´re using SqlDataSource to provide all the data, not webservice.

Now we use GridView a litle trick http://mattberseth.com/blog/2007/07/delay_load_an_updatepanel.html

Can we do this with radgrid and raddosck?

Thanks in advance


David
Attila Antal
Telerik team
 answered on 26 Sep 2017
0 answers
192 views
I am setting custom attributes value from client side in batch edit event like this:

               
///below function call when grid go to edit mode to view mode and below code for set from list box value to grid cell value.
               function GetEditorValue(sender, args) {
                   debugger;
                   if ($(args.get_cell()).find(".RadListBox").length > 0) {
                       var lb = $find($(args.get_cell()).find(".RadListBox").attr("id"));
                       var item = lb.get_selectedItem();
                       if (item != null) {
                           args.set_cancel(true);
                           args.set_value(item.get_text());
                           var cell = args.get_cell();
                           cell.setAttribute("searchboxresult", item.get_value());
                           //args.set_value(item.get_value());
                       } else {
                           args.set_cancel(true);
                           args.set_value("");
                       }
                   }
               }


Here I have set attribute value of searchboxresult to specific value which you can see here:

<td searchboxresult="109" style="width:200px;" class="rgSelectedCell  rgBatchChanged">
    <div style="">Headlights - Dual-Beam</div>
</td>

Now When I try to access this attribute at my server side on BatchEditCommand like this:

protected void accoADEGrid_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{
            foreach (GridBatchEditingCommand command in e.Commands)
            {
                   var i = command.item.cell[9].Attribute["searchboxresult"].ToString();
            }
}

 

I am getting value of i = 0; which is not as per client value and getting unchange value of attribute which is set on ItemDataBound.

Hardik
Top achievements
Rank 1
 asked on 26 Sep 2017
7 answers
232 views
Hi,

i have a problem with a radgrid that is losing the height when it is in a modal popup.
i have already add the css .rgDataDiv height: auto, but it get's passed by a inline style that has a height of 10px, and i can't find any thing that is putting that size to the grid.
in attach i will send the pictures of the error and style that it in the problem.

thanks
Stacy
Top achievements
Rank 1
 answered on 26 Sep 2017
3 answers
207 views

I have an issue where I have a popup window (windowmanager has height/width that are explicit, is a modal).

This popup contains a html table.  One tr is 20% wide, other is 80%. 

I have a grid in the 20% wide side (left side) and in IE and Chrome it is fine, but in firefox, the .rgDataDiv class is injecting a height of 10px.  In IE and Chrome, the value gets calculated fine.

No ajax.  Any ideas?

Changing AllowScroll="true" to "false" fixes the issue but I want the autoscroll to be true.

<table style="width: 100%; height: 88vh; border-spacing: 0; border-collapse: collapse; border: 0">
    <tr>
        <td width="20%">
            <RadGrid
                ID="PayrollProcessSummaryGrid"
                runat="server"
                GridLines="None"
                Height="100%"
                AutoAssignModifyProperties="true">
  
                <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="false">
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                    <Selecting AllowRowSelect="true" />
                    <ClientEvents OnRowClick="onRowClick" OnGridCreated="onGridCreated" OnCommand="onCommand" />
                </ClientSettings>
  
                <MasterTableView
                    AutoGenerateColumns="false"
                    CommandItemDisplay="Top"
                    AllowSorting="false">
  
                    <CommandItemTemplate></CommandItemTemplate>
  
                    <Columns>
                        <wasp:GridDateTimeControl DataField="field1" LabelText="*field1*" SortExpression="field1" niqueName="field1" />
                        <wasp:GridDateTimeControl DataField="field2" LabelText="*field2*" SortExpression="field2" niqueName="field2" />
                    </Columns>
                </MasterTableView>
  
            </RadGrid>
        </td>
        <td width="80%">
            <telerik:RadSplitter ID="RadSplitter" runat="server" Orientation="Horizontal" Height="100%" Width="100%" VisibleDuringInit="false" OnClientLoad="onClientLoad" BorderSize="0">
                <telerik:RadPane ID="RadPane" runat="server" Width="100%" />
            </telerik:RadSplitter>
        </td>
    </tr>
</table>
Stacy
Top achievements
Rank 1
 answered on 26 Sep 2017
8 answers
439 views
Hello

I am using a web service like the demo to populate the items in the RadComboBox on demand. This is all working find when i am running the program through VS2010 but is failing when I try through IIS.

Also it works for Http and does not work for Https so I think the solution lies there somewhere. 

Here is my .aspx:

<telerik:RadComboBox AutoPostBack="true" ID="txtGelPackProdCode" runat="server" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Enter here..." onselectedindexchanged="txtGelPackProdCode_SelectedIndexChanged">
<WebServiceSettings Path="MasterFormulaWebService.svc" Method="LoadProductData" />
</telerik:RadComboBox>

this is the svc method:

public RadComboBoxData LoadProductData(RadComboBoxContext context)
       {
           string text = context.Text.Trim() + '%';
 
           DataTable data = ProductDAO.ViewData2(text, "RadCombo");
 
           List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(context.NumberOfItems);
           RadComboBoxData comboData = new RadComboBoxData();
 
           try
           {
               int itemsPerRequest = 10;
               int itemOffset = context.NumberOfItems;
               int endOffset = itemOffset + itemsPerRequest;
               if (endOffset > data.Rows.Count)
               {
                   endOffset = data.Rows.Count;
               }
               if (endOffset == data.Rows.Count)
               {
                   comboData.EndOfItems = true;
               }
               else
               {
                   comboData.EndOfItems = false;
               }
               result = new List<RadComboBoxItemData>(endOffset - itemOffset);
               for (int i = itemOffset; i < endOffset; i++)
               {
                   RadComboBoxItemData itemData = new RadComboBoxItemData();
                   itemData.Text = data.Rows[i]["prod_code"].ToString().Trim();
                   itemData.Value = data.Rows[i]["name"].ToString().Trim();
                   result.Add(itemData);
               }
               if (data.Rows.Count > 0)
               {
                   comboData.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString());
               }
               else
               {
                   comboData.Message = "No matches";
               }
           }
           catch (Exception e)
           {
               comboData.Message = e.Message;
           }
           comboData.Items = result.ToArray();
           return comboData;
       }


and this is the webconfig:

<system.serviceModel>
    <behaviors>
      <endpointBehaviors>
        <behavior name="Reena.Master.MasterFormulaWebServiceAspNetAjaxBehavior">
          <enableWebScript />
        </behavior>
      </endpointBehaviors>
    </behaviors>
      <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
        multipleSiteBindingsEnabled="true"
          
 
      />
       
    <services>
      <service name="Reena.Master.MasterFormulaWebService">
        <endpoint address="" behaviorConfiguration="Reena.Master.MasterFormulaWebServiceAspNetAjaxBehavior"
          binding="webHttpBinding" contract="Reena.Master.MasterFormulaWebService" />
      </service>
    </services>
      <bindings>
          <webHttpBinding>
              <binding name="webBinding">
                  <security mode="None">
                  </security>
              </binding>
          </webHttpBinding>
      </bindings>
  </system.serviceModel>


What am I doing wrong? Thanks
Scott
Top achievements
Rank 1
 answered on 26 Sep 2017
11 answers
716 views
Hi All,

I have Radgrid for which i am using custom paging,and i need to give export to excel functionality for this Grid, and i am using RadGrid the Export to excel functionality, but it is not working some times , some times means 
when the page load without giving any filter to grid this export to excel functionality is working , but when i give any column filter that time it is not working properly , even my grid is showing 100 records with 10 pages but when i click export button it is exporting only first page records (my Radgrid page size is 10 records per page.), even though i given IgnorePaging = True in Export setting.
but when i tried for the RadGrid where custom paging is not implimented for that RadGrid it is working

if You have any solution regarding this please help me to sharing.

My code is below
<telerik:RadGrid ID="rg_PlannedOrders" runat="server" OnNeedDataSource="rg_PlannedOrders_NeedDataSource" AllowMultiRowSelection="true"
                         AllowCustomPaging="true" OnDeleteCommand="rg_PlannedOrders_DeleteCommand" OnItemDataBound="rg_PlannedOrders_OnItemDataBound"
                         OnItemCommand="rg_PlannedOrders_ItemCommand" OnPageIndexChanged="rg_PlannedOrders_PageIndexChanged" PageSize="50" >
                           <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" HideStructureColumns="false"  FileName = "PlannedOrderExc">
                                <Excel Format="Biff" />
                   </ExportSettings> 
                        <MasterTableView CommandItemDisplay="Top" AllowMultiColumnSorting="true" AutoGenerateColumns="false">

   
CS side code is 

protected void rg_PlannedOrders_ItemCommand(object sender, GridCommandEventArgs e)
     {
         try
         {
             switch (e.CommandName)
             {
 case RadGrid.ExportToExcelCommandName:
                     rg_PlannedOrders.AllowCustomPaging = false;
                     ((GridColumn)rg_PlannedOrders.Columns.FindByUniqueName("DeleteCommandColumn")).Visible = false;
                     ((GridColumn)rg_PlannedOrders.Columns.FindByUniqueName("CheckBoxSelect_Detail")).Visible = false;
                     ((GridColumn)rg_PlannedOrders.Columns.FindByUniqueName("History")).Visible = false;
                     ((GridColumn)rg_PlannedOrders.Columns.FindByUniqueName("TemplateColumn_IsConsolidate")).Visible = false;
                     ((GridColumn)rg_PlannedOrders.Columns.FindByUniqueName("Temp_IsContractMRP")).Visible = false;

                     break;


                 default:

                     break;

                        
}
             string RgInvantoryCache = GetSearchCacheName();
             GridSettingsPersister.SaveGridSettings(rg_PlannedOrders, e, RgInvantoryCache);

         }
         catch (Exception oException)
         {  }

Thanks 
saikumar
Top achievements
Rank 1
 answered on 26 Sep 2017
1 answer
598 views

I am showing a RadTreeView on my page and it has a context menu associated with each node.  When you right click on any node, an option is displayed called "Export".  This export will run a stored procedure and bring data from the database.  I want to export this date to a .txt file.  This is enforced by my business requirements so exporting it to Excel or PDF is not an option!!  I also need to be able to prompt the user for location of where they want to save this file and what they want to name it.  Does telerik have any controls that will help me accomplish these tasks?  I have looked into the ClientExportManager and the export functionalities of the RadGrid and TreeList, but nothing exports data to text file that I can see.

 

thanks

 

doug

Peter Milchev
Telerik team
 answered on 26 Sep 2017
3 answers
131 views
My customer would like the default focus set so when they click the add new record button the focus is set to the first textbox on the input line so they can begin typing without having to click the field first. Is this possible? I don't see any settings that would suggest so. Perhaps a sneaky code behind trick? Any tips greatly appreciated.

~Mike
Swati
Top achievements
Rank 1
 answered on 26 Sep 2017
0 answers
105 views
Any ideas?  Map loads, in IE, but no bubbles.... Works fine in Chrome, Firefox latest versions.  Currently using IE 11 on Windows 7.
Logan Marshall
Top achievements
Rank 2
Iron
 asked on 25 Sep 2017
2 answers
168 views
Hello,
        I am using RadImageAndTextTile.I want to hide Title text and title image when peek template is visible.Please suggest me how could I achieve this?
Thank you
Debasish
Top achievements
Rank 1
 answered on 25 Sep 2017
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?