Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
183 views
I have a problem with filtering checklist of columns, 
I really should be placed as, selecting the filter options and pressing apply the filter does not send parameters to service SVC 

could tell me what am I doing wrong?

ASP
<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"  
            GridLines="None" AllowFilteringByColumn="true" FilterType="CheckList"
            AllowPaging="true" PagerStyle-AlwaysVisible="true" AllowSorting="true" Skin="Simple"    
            Width="1080px" Height="600px" EnableLinqExpressions="true">
<MasterTableView EnableHeaderContextMenu="true" AutoGenerateColumns="false"  
    CheckListWebServicePath="../../MovimientoWcfService.svc"
     DataKeyNames="MovimientoId" ClientDataKeyNames="MovimientoId" PageSize="20">
    <Columns> 
        <telerik:GridBoundColumn FilterDelay="200" HeaderText="Código" UniqueName="ClientId" DataField="ClientId">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn FilterDelay="200" DataField="FamiliaNombre"  HeaderText="FAMILIA" FilterCheckListWebServiceMethod="LoadFamilia" UniqueName="FamiliaNombre" >
        </telerik:GridBoundColumn>
 </Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"></Scrolling>
    <Resizing ResizeGridOnColumnResize="true" ShowRowIndicatorColumn="true" AllowResizeToFit="true" />
    <DataBinding Location="~/MovimientoWcfService.svc" SelectMethod="GetDataAndCount" SortParameterType="Linq"
         FilterParameterType="List" >
    </DataBinding>
</ClientSettings>
</telerik:RadGrid>  
   
//C# SVC
 [OperationContract]
        public RadListBoxItemData[] LoadFamilia(Dictionary<string, object> context)
        {
            var be = new BeFamilia { Eliminado = false, Activo = true };
            var beList = new List<BeFamilia>();
            var bl = new BlFamilia();
            beList = bl.Select(be);
            var allFamilies = (from fa in beList
                               orderby fa.Descripcion
                               select new RadListBoxItemData
                               {
                                  Value = fa.FamiliaId.ToString(),
                                   Text = fa.Descripcion
                               }).Distinct();

            return allFamilies.ToArray<RadListBoxItemData>();
            
        }



Maria Ilieva
Telerik team
 answered on 14 Oct 2014
1 answer
141 views
I was having trouble implementing a WCF Service for getting HTML chart data on the client side based on the example in the Demo "HtmlChart - Client-side Binding".

The trouble spot was in the setServiceDataInChart function. The demo site source code is:

function setServiceDataInChart(sender, args)
{
     //Get the returned data
     var newData = args.get_content();
  
     //get a reference to the RadHtmlChart
     var chart = getChartReference();
  
     //Set the new datasource to the RadHtmlChart
     chart.set_dataSource(newData);
  
     //Repaint the RadHtmlChart
     chart.repaint();
  
     //Avoid raising the OnClientResponseEnded client-side event
     //avoid setting the received data as content for the RadXmlHttpPanel
     args.set_cancel(true);
  
     logEvent("<strong>Data from the WCF service:</strong>" + newData);
}


I got two different errors when the code got to "chart.repaint();"

First problem was that my WCF service was not serving data back until I changed the OperationContract WebInvoke BodyStyle to WebMessageBodyStyle.WrappedRequest. This caused the second problem, namely, the value of newData returned was now wrapped, so I had to specify

chart.set_dataSource(newData.d);

in the setServiceDataInChart function.
Danail Vasilev
Telerik team
 answered on 14 Oct 2014
1 answer
141 views
Hi,
My case, radgrid disappeared after BatchEditCommand logic
I want to know BatchEditCommand Exception logic
When DB is Exception, my solution is not New rebind, but user's Modified data

Thank you~!

protected void RadGrid1_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{    
     foreach (GridBatchEditingCommand command in e.Commands)    
     {        
          Hashtable newValues = command.NewValues;        
          Hashtable oldValues = command.OldValues;        

          // Oracle DB Insert/Update/Delete...

          If(DB Exception)
          {
              // Rollback();
              return; //  Grid disppeard 
          }
     }

     //Commit(); // even in that case, Grid disappear
}
Viktor Tachev
Telerik team
 answered on 14 Oct 2014
6 answers
129 views
Hello,

Is it possible to add custom options to the zoom dropdown tool?
vkucherov
Top achievements
Rank 1
 answered on 14 Oct 2014
1 answer
175 views
Hello Team,
                    I am facing an issue with RadAsyncUpload when i upload a file we used to get green mark as symbol of successfully inserted int database,but now we are facing an issue, as we upload a file we getting a red symbol mark after we upload,but uploaded file is not saved and also getting red mark.Help me out from this issues ?? 
Plamen
Telerik team
 answered on 14 Oct 2014
3 answers
115 views
I am finding serious problems with your controls. I have found two already (how many more are there?) that don't scroll inside a window. The Button control is one and the other is the ColorPicker.This is a serious issue.  IN IE, and yes I'm using IE 11, your Button control is not scrolling and neither is your ColorPicker. I have tried setting the position to relative and it still doesn't work. I am using v.2013.3.1114.40 in VS 2013. I would appreciate any advice you can give to fix this issue.
Bozhidar
Telerik team
 answered on 14 Oct 2014
3 answers
72 views
When compatibility mode for IE11 is turned off, I cannot click on links when in Preview mode.

I have been forced to set it to run under IE10. 

<meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1" />

Is this going to be fixed?
Ianko
Telerik team
 answered on 14 Oct 2014
1 answer
116 views
Here's some layout code on one of my pages:
<telerik:RadPane ID="radPaneMain" runat="server" CssClass="paneMain" OnClientResized="radPaneMain_Resized">
  <asp:MultiView ID="multiViewMain" runat="server">
    <asp:View ID="View1" runat="server">
      <%-- Note: In order for ScrollBars to function, the dimensions of the Panel (Div) have to be explicitly set.
           Since the width of panelMucking can change, we're going to explicitly set the Width in code. The actual
           turning on/off of the scrollbars is handled directly by the 'DrawFlowChartShapes' method --%>
      <asp:Panel ID="panelMucking" runat="server" CssClass="smallText" ScrollBars="None" EnableViewState="false" style="position:relative" />
    </asp:View>
  </asp:MultiView>
</telerik:RadPane>

The only pertinent thing you need to know about the paneMain CSS Class is that:  height: 100%

Shown in the attachments are two screenshots.  The first is the normal, standard appearance.  However, when the flowchart objects get too big to fit in the available space then, in code, I turn the scrollbar(s) of panelMucking on.  The second screenshot shows the problem that occurs however.  Notice how things are shifted to the right and down a little - when I don't want them to be.

Any advice on how to resolve this?

Note: The app will be run exclusively on IE11.

Robert
Vessy
Telerik team
 answered on 14 Oct 2014
1 answer
71 views
I have the following code inside the radEditor, and try to save it.  Upon submitting the HTML, the body onLoad function is stripped from it.  I have attempted to remove all filters, and separately tried disabling the ConvertToXhtml filter.  No options work so far.  Any ideas?

<html>
<head></head>
<body onLoad="if (window.FormChanged){FormChanged()}">
 
</body>
</html>
Ianko
Telerik team
 answered on 14 Oct 2014
1 answer
159 views
I am trying to paste in the following code to the radEditor.  My company uses it for customers to design their own HTML pages.  Upon inserting the following code and saving it, the onLoad event is removed from the HTML.
<html>
<head></head>
<body onLoad="if (window.FormChanged){FormChanged()}">
 
</body>
</html>

What would cause this?  I have tried disabling all the filters with the EditorFilters.None option.  No dice.  I have disabled the ConvertToXhtml filter as well.  Still nothing.

Any help would be appreciated.

Ianko
Telerik team
 answered on 14 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?