Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
220 views
Hello All,
I whould like to share with u some trouble with using RadComboBox with CheckBoxes and Filter enabled. The problem is that after uncheck all items Combobox still show one item as checked. Version 
Here is my code:
<tr>
    <td class="adminTitle">Status</td>
    <td class="adminData">
        <telerik:RadComboBox EmptyMessage="Select Status" ID="ddlStatus" EnableCheckAllItemsCheckBox="true" Filter="Contains"
            CheckBoxes="true" runat="server" Width="298px" ToolTip="Select Status" />
    </td>
</tr>

Bind:
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {                           
         ddlStatus.SetEnumDataSource<WfApprovalStatus>(exceptOrders.Cast<int>().ToList());
    }
}
Error appear only when I check ONE item. 
Steps to reproduce:
1. Open page
2. Check only ONE item in combobox
3. Click in empty space of page (this will close combobox window)
4. Try to uncheck item
5. One more time in empty space
6. You will see that looks like item still left checked but if u open combo box you will see that is not. If u try to send form to server 1 item will be checked

If you remove using filter all works good.
Juan Carlos
Top achievements
Rank 1
 answered on 03 Jun 2016
4 answers
118 views

Hello

I have an issue with RadajaxManagerProxy in a Masterpage/contentpage setup. 
My goal is to enable/disable (save/update/email) buttons upon saving/updating a telerik report.

The code provided below works just fine when executed under no load.

But during the day with multiple users online, the script stops enabling/disabling the buttons. 
(savereport and other heavy rutines still works)

Is my approach incorrect for the task?
Any help would be highly  appreciated.

 

regards

Mark

Master.aspx----------------------------------------------------------------
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MP.master.cs" Inherits="MP" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        <Scripts>       
            <asp:ScriptReference Assembly="Telerik.Web.UI" 
                Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" 
                Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" 
                Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>                   
        </Scripts>  
    </telerik:RadScriptManager>
     
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>            
        </AjaxSettings>
    </telerik:RadAjaxManager>
    

 <telerik:RadAjaxLoadingPanel ID="generalRadAjaxLoadingPanel" runat="server"  Skin="Silk" InitialDelayTime="700" >
    </telerik:RadAjaxLoadingPanel>


    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

CP.aspx--------------------------------------------------------

<%@ Page Title="" Language="C#" MasterPageFile="~/MP.master" AutoEventWireup="true"
    CodeFile="CP.aspx.cs" Inherits="Default3" %>

    <%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=9.0.15.324, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
  

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="but_Update">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="but_Email" UpdatePanelCssClass="" />
                    <telerik:AjaxUpdatedControl ControlID="but_Save" UpdatePanelCssClass="" />
                    <telerik:AjaxUpdatedControl ControlID="ReportViewer1" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="but_Save">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="but_Email" UpdatePanelCssClass="" />
                    <telerik:AjaxUpdatedControl ControlID="but_Save" UpdatePanelCssClass="" />
                    <telerik:AjaxUpdatedControl ControlID="ReportViewer1" UpdatePanelCssClass="" LoadingPanelID="generalRadAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">

            $(document).ready(function () {

            });


            function OpenQuoteEmail() {
                alert('Email Dialog');
            }
           

        </script>
    </telerik:RadCodeBlock>
    <table runat="server" border="0" id="maintable" clientidmode="Static" style="width: 100%;">
        <tr>
            <td style="width: 250px;" valign="top">
                <table width="250" border="0">
                    <tr>
                        <td>
                            <asp:Button ID="but_Update" runat="server"  Text="Update"
                                Width="250px" OnClick="butUpdate_Click" TabIndex="109" />
                            <br />
                            <br />
                            <asp:Button ID="but_Email" runat="server"  Text="E-Mail" Width="250px"
                                ClientIDMode="Static" OnClientClick="OpenQuoteEmail(); return false;" TabIndex="110" />
                            <br />
                            <br />                           
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <asp:Button ID="but_Save" runat="server"  Text="Save"
                                            Width="110px" OnClick="butSave_Click" TabIndex="120" />
                                    </td>
                                    <td>
                                        <asp:Button ID="but_Cancel" runat="server"  Text="Close" Width="110px"
                                            OnClick="butCancel_Click" TabIndex="121" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top" style="height: 100%;">
                <div id="rp">
                    <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="1200px" Width="100%"
                        ShowParametersButton="False" ShowHistoryButtons="False" BorderColor="Gray" BorderStyle="Solid"
                        BorderWidth="1px" ViewMode="PrintPreview" ShowRefreshButton="False" ShowPrintPreviewButton="False"
                        TabIndex="99">
                    </telerik:ReportViewer>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>



CP.cs---------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        but_Email.Enabled = false;
        but_Email.ToolTip = "Please save document before opening email dialog";

    }


    protected void butSave_Click(object sender, EventArgs e)
    {
        but_Save.Enabled = false;
        but_Email.Enabled = true;
        but_Email.ToolTip = "";

       // SavePrintSettings();
       // SaveReports();
       
    }

    protected void butUpdate_Click(object sender, EventArgs e)
    {      
        but_Save.Enabled = true;
        but_Email.Enabled = false;
        but_Email.ToolTip = "Save before opening email dialog";

        // LoadReport();
    }

    protected void butCancel_Click(object sender, EventArgs e)
    {

    }
}

Maria Ilieva
Telerik team
 answered on 03 Jun 2016
1 answer
288 views

Is it possible to extract the edited row from a RadGrid into a DataTable object?

The examples I've seen online show how to extract the data into a HashTable, but once you do that, you lose the data type (string, datetime, ect). We're building a generic grid that can display different tables, so we don't want to have to hard code the columns/data types. If the data is in a DataTable, then it can be passed directly to a SQL stored procedure that accepts a Table Value Parameter.

Viktor Tachev
Telerik team
 answered on 03 Jun 2016
6 answers
439 views

Hi All,

Appearently, .doc upload on Editor - MS Word-like Experience, does not work properly. 

Although it was defined to use LoadDocxContent, I'm getting error while trying to upload. Could you please help ? .docx documents work fine on async. upload.

case ".doc":
case ".docx":
   RadEditor1.LoadDocxContent(e.File.InputStream);
   break;

Ianko
Telerik team
 answered on 03 Jun 2016
1 answer
125 views

There is a requirement to display the pager according to the attached file.

Is there any pager style or CSS so that we can customize the pager style?

Kostadin
Telerik team
 answered on 03 Jun 2016
3 answers
306 views
Is there a way to get a list of values in all cells that are in a named column or row.  Similar functionality to what is in spreadprocessing named ranges.
Ivan Danchev
Telerik team
 answered on 03 Jun 2016
1 answer
141 views

Current we are doing server side biding in radgrid and using radpersistencemanager.

Now we want to do client side data bind in radgrid.

Please let us know how to use radpersistencemanager in this case?

Is their way to do persistence if we can not use radpersistencemanager?

 

Daniel
Telerik team
 answered on 03 Jun 2016
3 answers
143 views

What is the default setting for RenderMode? Is there any reason why you not just set RenderMode to "Auto"?

 

mgm

Rumen
Telerik team
 answered on 02 Jun 2016
1 answer
163 views

A client site is running our ASP.NET 3.5 web-application which includes the Report Viewer control for reporting. They have recently upgraded to IE11, which must be run in native/standards mode.

In order to get the print function of the Report Viewer control working, we have upgraded the Report Viewer control to the 2012 version and have applied patches / updates as per instructions here:
https://blogs.msdn.microsoft.com/selvar/2013/12/20/reportviewer-2012-control-not-showing-print-icon-when-viewed-from-ie-11-desktop-mode/

Part of these instructions are to remove any browser files, however we are currently using the RadHiddenFieldPageStateCompression utility to compress viewstate (specified as per Telerik documentation in the Default.browser file).

If we remove the Default.browser file, the Report Viewer print function operates correctly, but viewstate compression no longer works. Adding the Default.browser file back in, hides the print button on the Report Viewer control.

Is there any way that we can retain viewstate compression and use the SSRS 2012 Report Viewer print function?

Thanks.

 

Maria Ilieva
Telerik team
 answered on 02 Jun 2016
2 answers
254 views

Hi

Is it possible to disable the possibilty to drag and drop between multiple grids on one page?
The only method I've found to disallow drag and drop between mutliple grids is to check if the source and target grid are the same on dropping otherwise canceling.

 

Maxim
Top achievements
Rank 1
 answered on 02 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?