Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Hi!

I need to change to spanish the language of my grids. I've searched and came through the solution. However it doesn't work to me. I don't know if Im doing something wrong or it's my version that dont support that feature,  because im following the three steps:

1. Add RadGrid.Main.resx file to your application’s App_GlobalResources folder.

2. Create a language pack i.e. RadGrid.Main.<locale id>.resx and add it to App_GlobalResources folder.

3.Set the culture to use on the RadGrid.

My language pack is named "RadGrid.Main.es-GT.resx" and the culture is "es-GT". I even tried with french(fr-FR) and still nothing. The language pack is configured as the required languge.

I hope I find some help here.

Regards,

Jacobo.
Konstantin Dikov
Telerik team
 answered on 14 Aug 2013
6 answers
151 views

Hello,

We have an application built with default page, which includes iframe for content pages.

Every page in our application is in master page.

Also, most our page built with user controls.

Now, we are calling in code behind from our user controls to a script which has a radalert statement.

Actually we saw that when there is an asp updatepanel in our user control, the radalert doesn’t work.

Calling the same script from the page's code behind, which  has no update panel, works.

We tried also to use the sys.application.add_load and sys.application,remove statements, but nothing works.

 

Do  you have any solution using radalert with update panel on pages?

One mention: we use the update panel with triggers. If u have another control which makes the same work as the update panel, and can be used with radalert, so we will preciate if you explain us the control and how to use it.

 

Thanks,

gila

 

Abdul
Top achievements
Rank 1
 answered on 14 Aug 2013
2 answers
378 views
Hi,

I'm trying to style the Filter TextBox of the RadGrid to ensure that it is sized dynamically based on the column size, as the user can resize the columns at run time. For this purpose, i'm overriding the .rgFilterBox class.

.RadGrid_Office2010Silver .rgFilterBox
{
    width: 60%;
}

But, this override is only working on the Columns that are of 'String' datatype and not on the columns that are of Int32 or DateTime datatype. Here is the HTML generated.

<td style="white-space: nowrap;">
  <span style="width: 160px;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_ExecutionID_wrapper" class="riSingle RadInput RadInput_Office2010Silver">
    <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_ExecutionID" class="riTextBox riEnabled" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RNTBF_ExecutionID" alt="Filter ExecutionID column" type="text">
      <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_ExecutionID_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_ExecutionID_ClientState" value='{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minValue":-70368744177664,"maxValue":70368744177664,"lastSetTextBoxValue":""}' type="hidden" autocomplete="off">
        <link class="Telerik_stylesheet" rel="stylesheet" type="text/css" href="/WebResource.axd?d=TXcIPBwelNNJhd9osKEgZ1rgDNwSIT7J2Ywq_SZFmBjIREnAgV5VheKkhOCs164FjgLFqPNP6aBvaYiiUZzm0BGwQKQ1XtI3Dm8uoriG4YmIXRanCztklNPa9nwg92ZHd_DLUedlKO-L5z_rFNC11w2&t=635115496953713232">
          <link class="Telerik_stylesheet" rel="stylesheet" type="text/css" href="/WebResource.axd?d=jetM8ByDnMWx_zwPTqqCl79yyZ7gcmoXn8h0lFYvJHGNeEk4kCfx7VdkPW_TVdpSyLhbpArTtkVE_E99Xejj6hI4bR7BDPBYcv7mQNFSj21lZA3EsuAQcyYz_GZzehcJNOdtbfBtakXnOhdagt8MAAFcS3ZAlYsKjaN4uru9gps8OQNz2sHvHXKc2rAhMnoE0&t=635115496249932861">
  </span>
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_ExecutionID" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "ExecutionID", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExecutionID','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExecutionID" value="" type="button">
</td>
<td style="white-space: nowrap;">
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_FilterTextBox_ExecutionCode" class="rgFilterBox" onkeypress="if((event.keyCode == 13)) return false;" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$FilterTextBox_ExecutionCode" alt="Filter ExecutionCode column" size="10" type="text">
    <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_ExecutionCode" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "ExecutionCode", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExecutionCode','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExecutionCode" value=" " type="button">
</td>
<td style="white-space: nowrap;">
  <span style="width: 160px;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_CampaignID_wrapper" class="riSingle RadInput RadInput_Office2010Silver">
    <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_CampaignID" class="riTextBox riEnabled" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RNTBF_CampaignID" alt="Filter CampaignID column" type="text">
      <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_CampaignID_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RNTBF_CampaignID_ClientState" value='{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minValue":-70368744177664,"maxValue":70368744177664,"lastSetTextBoxValue":""}' type="hidden" autocomplete="off">
  </span>
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_CampaignID" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "CampaignID", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_CampaignID','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_CampaignID" value="" type="button">
</td>
<td style="white-space: nowrap;">
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_FilterTextBox_CampaignName" class="rgFilterBox" onkeypress="if((event.keyCode == 13)) return false;" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$FilterTextBox_CampaignName" alt="Filter CampaignName column" size="10" type="text">
    <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_CampaignName" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "CampaignName", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_CampaignName','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_CampaignName" value=" " type="button">
</td>
<td style="white-space: nowrap;">
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_FilterTextBox_MarketName" class="rgFilterBox" onkeypress="if((event.keyCode == 13)) return false;" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$FilterTextBox_MarketName" alt="Filter MarketName column" size="10" type="text">
    <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_MarketName" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "MarketName", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_MarketName','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_MarketName" value=" " type="button">
</td>
<td style="white-space: nowrap;">
  <div style="width: 85%; display: inline-block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_wrapper" class="RadPicker RadPicker_Office2010Silver">
    <input style="margin: 0px 0px -1px -1px; padding: 0px; border: 0px currentColor; width: 1px; height: 1px; overflow: hidden; float: right; display: block; visibility: hidden;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate" class="rdfd_ radPreventDecorate" title="Visually hidden input created for functionality purposes." name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFScheduledStartDate" value="" type="text">
      <table style="width: 100%;" class="rcTable rcSingle" cellSpacing="0" summary="Table holding date picker control for selection of dates.">
        <caption style="display: none;">
          RadDatePicker
        </caption>
        <thead style="display: none;">
          <tr>
            <th scope="col"></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="width: 100%;" class="rcInputCell">
              <span style="width: 100%; display: block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_dateInput_wrapper" class="riSingle RadInput RadInput_Office2010Silver">
                <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_dateInput" class="riTextBox riEnabled" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFScheduledStartDate$dateInput" alt="Filter ScheduledStartDate column" type="text">
                  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_dateInput_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_dateInput_ClientState" value='{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00","lastSetTextBoxValue":""}' type="hidden" autocomplete="off">
              </span>
            </td>
            <td>
              <a id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_popupButton" class="rcCalPopup" title="Open the calendar popup." href="#">Open the calendar popup.</a>
            </td>
          </tr>
        </tbody>
      </table>
      <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFScheduledStartDate_ClientState" value='{"minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00"}' type="hidden" autocomplete="off">
 
  </div>
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_ScheduledStartDate" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "ScheduledStartDate", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ScheduledStartDate','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ScheduledStartDate" value="" type="button">
</td>
<td style="white-space: nowrap;">
  <div style="width: 85%; display: inline-block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_wrapper" class="RadPicker RadPicker_Office2010Silver">
    <input style="margin: 0px 0px -1px -1px; padding: 0px; border: 0px currentColor; width: 1px; height: 1px; overflow: hidden; float: right; display: block; visibility: hidden;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate" class="rdfd_ radPreventDecorate" title="Visually hidden input created for functionality purposes." name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFExpectedDeliveryDate" value="" type="text">
      <table style="width: 100%;" class="rcTable rcSingle" cellSpacing="0" summary="Table holding date picker control for selection of dates.">
        <caption style="display: none;">
          RadDatePicker
        </caption>
        <thead style="display: none;">
          <tr>
            <th scope="col"></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="width: 100%;" class="rcInputCell">
              <span style="width: 100%; display: block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_dateInput_wrapper" class="riSingle RadInput RadInput_Office2010Silver">
                <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_dateInput" class="riTextBox riEnabled" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFExpectedDeliveryDate$dateInput" alt="Filter ExpectedDeliveryDate column" type="text">
                  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_dateInput_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_dateInput_ClientState" value='{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00","lastSetTextBoxValue":""}' type="hidden" autocomplete="off">
              </span>
            </td>
            <td>
              <a id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_popupButton" class="rcCalPopup" title="Open the calendar popup." href="#">Open the calendar popup.</a>
            </td>
          </tr>
        </tbody>
      </table>
      <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedDeliveryDate_ClientState" value='{"minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00"}' type="hidden" autocomplete="off">
 
  </div>
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_ExpectedDeliveryDate" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "ExpectedDeliveryDate", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExpectedDeliveryDate','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExpectedDeliveryDate" value="" type="button">
</td>
<td style="white-space: nowrap;">
  <div style="width: 85%; display: inline-block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_wrapper" class="RadPicker RadPicker_Office2010Silver">
    <input style="margin: 0px 0px -1px -1px; padding: 0px; border: 0px currentColor; width: 1px; height: 1px; overflow: hidden; float: right; display: block; visibility: hidden;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate" class="rdfd_ radPreventDecorate" title="Visually hidden input created for functionality purposes." name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFPromiseDate" value="" type="text">
      <table style="width: 100%;" class="rcTable rcSingle" cellSpacing="0" summary="Table holding date picker control for selection of dates.">
        <caption style="display: none;">
          RadDatePicker
        </caption>
        <thead style="display: none;">
          <tr>
            <th scope="col"></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="width: 100%;" class="rcInputCell">
              <span style="width: 100%; display: block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_dateInput_wrapper" class="riSingle RadInput RadInput_Office2010Silver">
                <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_dateInput" class="riTextBox riEnabled" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFPromiseDate$dateInput" alt="Filter PromiseDate column" type="text">
                  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_dateInput_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_dateInput_ClientState" value='{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00","lastSetTextBoxValue":""}' type="hidden" autocomplete="off">
              </span>
            </td>
            <td>
              <a id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_popupButton" class="rcCalPopup" title="Open the calendar popup." href="#">Open the calendar popup.</a>
            </td>
          </tr>
        </tbody>
      </table>
      <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFPromiseDate_ClientState" value='{"minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00"}' type="hidden" autocomplete="off">
 
  </div>
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_PromiseDate" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "PromiseDate", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_PromiseDate','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_PromiseDate" value="" type="button">
</td>
<td style="white-space: nowrap;">
  <div style="width: 85%; display: inline-block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_wrapper" class="RadPicker RadPicker_Office2010Silver">
    <input style="margin: 0px 0px -1px -1px; padding: 0px; border: 0px currentColor; width: 1px; height: 1px; overflow: hidden; float: right; display: block; visibility: hidden;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate" class="rdfd_ radPreventDecorate" title="Visually hidden input created for functionality purposes." name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFExpectedContactDate" value="" type="text">
      <table style="width: 100%;" class="rcTable rcSingle" cellSpacing="0" summary="Table holding date picker control for selection of dates.">
        <caption style="display: none;">
          RadDatePicker
        </caption>
        <thead style="display: none;">
          <tr>
            <th scope="col"></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td style="width: 100%;" class="rcInputCell">
              <span style="width: 100%; display: block;" id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_dateInput_wrapper" class="riSingle RadInput RadInput_Office2010Silver">
                <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_dateInput" class="riTextBox riEnabled" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$RDIPFExpectedContactDate$dateInput" alt="Filter ExpectedContactDate column" type="text">
                  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_dateInput_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_dateInput_ClientState" value='{"enabled":true,"emptyMessage":"","validationText":"","valueAsString":"","minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00","lastSetTextBoxValue":""}' type="hidden" autocomplete="off">
              </span>
            </td>
            <td>
              <a id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_popupButton" class="rcCalPopup" title="Open the calendar popup." href="#">Open the calendar popup.</a>
            </td>
          </tr>
        </tbody>
      </table>
      <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_ClientState" name="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_RDIPFExpectedContactDate_ClientState" value='{"minDateStr":"1900-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00"}' type="hidden" autocomplete="off">
 
  </div>
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_ExpectedContactDate" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "ExpectedContactDate", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExpectedContactDate','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_ExpectedContactDate" value="" type="button">
</td>
<td style="white-space: nowrap;">
  <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_FilterTextBox_Programmer" class="rgFilterBox" onkeypress="if((event.keyCode == 13)) return false;" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$FilterTextBox_Programmer" alt="Filter Programmer column" size="10" type="text">
    <input id="ctl00_MainContent_ContentGrid_ctl00_ctl02_ctl02_Filter_Programmer" class="rgFilter" title="Filter" onclick="$find("ctl00_MainContent_ContentGrid")._showFilterMenu("ctl00_MainContent_ContentGrid_ctl00", "Programmer", event); return false;__doPostBack('ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_Programmer','')" name="ctl00$MainContent$ContentGrid$ctl00$ctl02$ctl02$Filter_Programmer" value=" " type="button">
</td>

I noticed that the Filter TextBoxes of Numeric and Date Columns do not use the .rgFilterBox style class. I tried overriding .riTextBox class, but that does not work.

Please suggest, how can I apply Width:60% style on Numeric and DateTime column FilterTextBoxes.

Thanks,
Nishant
Venelin
Telerik team
 answered on 14 Aug 2013
1 answer
148 views
Hi,
I shall have to pass bulk data between page to radwindow and vice versa. A sample application code is below. In this by using PreviousPageType' data transferred (Click on Ordinary Button). But in radwindow it shows the error 'Object reference not set to an instance of an object.'(Click on Popup button). How to achieve this method in radwiondow?.



Default.aspx
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadScriptBlock ID="RadScriptBlock" runat="server">
        <script type="text/javascript">
            function btnShowPopup_Clicked(sender, args) {
                var winSearch = radopen("DefaultPopup.aspx");
                if (winSearch) {
                    winSearch.hide();
                    winSearch.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close | Telerik.Web.UI.WindowBehaviors.Move)
                    winSearch.add_close(searchWindow_OnClientClose);
                    winSearch.set_height(400);
                    winSearch.set_width(780);
                    winSearch.set_visibleStatusbar(false);
                    winSearch.set_destroyOnClose(true);
                    winSearch.set_modal(true);
                    winSearch.set_title("Popup");
                    winSearch.center();
                    winSearch.show();
                }
            }
            function RadWindow_Close(sender, args) {
                var manager = sender.get_windowManager();
                if (manager)
                    manager.removeWindow(sender);
            }
            function searchWindow_OnClientClose(oWnd, args) {
                var arg = args.get_argument();
                if (arg) {
                    var ajaxManager = $find("<%= radAjaxManager.ClientID %>");
                    if (ajaxManager)
                        ajaxManager.ajaxRequest(arg);
                }
            }
        </script>
    </telerik:RadScriptBlock>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="radAjaxManager" runat="server" UpdatePanelsRenderMode="Inline"
        OnAjaxRequest="radAjaxManager_AjaxRequest">
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Center"
        InitialDelayTime="300">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadWindowManager ID="radWinManager" runat="server" DestroyOnClose="True">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Style="display: none;" OnClientClose="RadWindow_Close">
                <Shortcuts>
                    <telerik:WindowShortcut CommandName="CommandName" Shortcut="" />
                </Shortcuts>
            </telerik:RadWindow>
        </Windows>
        <Shortcuts>
            <telerik:WindowShortcut CommandName="CommandName" Shortcut="" />
        </Shortcuts>
    </telerik:RadWindowManager>
    <asp:TextBox ID="txtFirst" runat="server"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="Ordinary" OnClick="Button1_Click" />
    <telerik:RadButton ID="btnShowPopup" runat="server" Text="Popup" AutoPostBack="false"
        OnClientClicked="btnShowPopup_Clicked">
    </telerik:RadButton>
</asp:Content>
Default.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected void Button1_Click(object sender, EventArgs e)
        {
            this.Name = this.txtFirst.Text;
            Server.Transfer("~/DefaultPopup.aspx");
        }
       // public string Name { get; set; }
 
        protected void radAjaxManager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
 
        }
 
 
         public string Name { get { return Convert.ToString(ViewState["SName"]); } set { ViewState["SName"] = value; } }
    }
}


DefaultPopup.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultPopup.aspx.cs" Inherits="WebApplication1.DefaultPopup" %>
 
<%@ PreviousPageType VirtualPath="~/Default.aspx" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
        </script>
    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadWindowManager ID="radWinManager" runat="server" DestroyOnClose="True"
            KeepInScreenBounds="true">
        </telerik:RadWindowManager>
    </div>
    </form>
</body>
</html>

DefaultPopup.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace WebApplication1
{
    public partial class DefaultPopup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write("Data from PreviousPage:" + PreviousPage.Name);
        }
    }
}

Thanks & Regards
Anzar. M
Marin Bratanov
Telerik team
 answered on 14 Aug 2013
3 answers
192 views
When I put these 4 tiles in a tooltip they turn into a stack of 1 colum 4 rows.  But I want 2 rows 2 columns which work fine if I take the TileList out of the Tooltip.  Its only when I put the RadTileList in the RadToolTip that they begin to stack no mater what I set the row count or how many tiles I add its always just 1 column of tiles.  It is possible to put multiple column tiles in a tooltip?  Here is the code like I said outside the tooltip no problem once inside it goes to 1 column not matter how wide or high I make the tooltip.

Thanks for looking.

<%@ Page  %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
    <title>Large structured drop-down ASP.NET Menus | RadMenu demo</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
        <table class="auto-style19">
            <tr>
                <td class="auto-style20">&nbsp;</td>
                <td>
 
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/assign.gif" />

                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style20">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>

        <telerik:RadToolTip ID="ttAddCompGrid" runat="server" HideEvent="LeaveToolTip" RelativeTo="Element" Skin="MetroTouch" Style="z-index: 20" TargetControlID="image1" BackColor="#FFFF66">
            <telerik:RadTileList ID="RadTileList1" runat="server" BackColor="#003366" Skin="Sitefinity" TileRows="2">
                <Groups>
                    <telerik:TileGroup>
                        <telerik:RadImageAndTextTile BackColor="#00CDFF" ImageUrl="tiles/tileManage.jpg" Shape="Wide">
                            <Title Text="Employee Plan Assignments"></Title>
                            <Badge ImageUrl="images/style7/tiny_user.png" />
                            <PeekTemplate>
                                <div style="width: 310px; height: 110px; vertical-align: top; padding: 1px; background-color: #C3F5FF; color: #000000; font-size: 14px; font-family: Arial, Helvetica, sans-serif;">
                                    <table style="width: 310px; height: 110px">
                                        <tr>
                                            <td>
                                                <asp:Image ID="Image2" runat="server" ImageAlign="TextTop" ImageUrl="~/Images/Style7/user.png" />
                                            </td>
                                            <td>Assign Employee Compensation Plans
                                                <ul class="b" style="font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: x-small; font-weight: normal;">
                                                    <li>Assign Compensation Plans</li>
                                                    <li>Set Begin and End dates</li>
                                                    <li>Make Manual Adjustments</li>
                                                    <li>Edit Employee Details</li>
                                                </ul>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Slide" CloseDelay="0" Easing="easeInSine" HidePeekTemplateOnMouseOut="true" ShowInterval="0" ShowPeekTemplateOnMouseOver="true" />
                        </telerik:RadImageAndTextTile>
                        <telerik:RadImageAndTextTile BackColor="#FF1969" ImageUrl="tiles/tilePlans.jpg" NavigateUrl="http://www.google.com" Shape="Wide">
                            <Title Text="Manage Compensation Plans"></Title>
                            <Badge ImageUrl="images/style7/tiny_plans.png" />
                            <PeekTemplate>
                                <div style="width: 310px; height: 110px; vertical-align: top; padding: 1px; background-color: #FA8AAF; color: #000000; font-size: 14px; font-family: Arial, Helvetica, sans-serif;">
                                    <table style="width: 310px; height: 110px">
                                        <tr>
                                            <td>
                                                <asp:Image ID="Image3" runat="server" ImageAlign="TextTop" ImageUrl="~/Images/Style7/plans.png" />
                                            </td>
                                            <td>Compensation Plan Management
                                                <ul class="b" style="font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: x-small; font-weight: normal;">
                                                    <li>Create Plan Components</li>
                                                    <li>Assign Bonus Thresholds</li>
                                                    <li>Combine components to generate plans</li>
                                                    <li>Modify Plan Details</li>
                                                </ul>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="fade" CloseDelay="0" Easing="swing" HidePeekTemplateOnMouseOut="true" ShowInterval="0" ShowPeekTemplateOnMouseOver="true" />
                        </telerik:RadImageAndTextTile>
                        <telerik:RadImageAndTextTile BackColor="#642D7D" ImageUrl="tiles/tileBatchRun.jpg" Name="BatchRun" Shape="Wide">
                            <Title Text="IPP Batch Run"></Title>
                            <Badge ImageUrl="images/style7/tiny_build.png" />
                            <PeekTemplate>
                                <div style="width: 310px; height: 110px; vertical-align: top; padding: 1px; background-color: #9B78AA; color: #000000; font-size: 14px; font-family: Arial, Helvetica, sans-serif;">
                                    <table style="width: 310px; height: 110px">
                                        <tr>
                                            <td>
                                                <asp:Image ID="Image4" runat="server" ImageAlign="TextTop" ImageUrl="~/Images/Style7/build.png" />
                                            </td>
                                            <td>Calculate IPP Compensation
                                                <ul class="b" style="font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: x-small; font-weight: normal;">
                                                    <li>Based on individual Year and Period</li>
                                                    <li>Calculate IPP Bonus by User and Plan</li>
                                                </ul>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Slide" CloseDelay="0" Easing="easeInSine" HidePeekTemplateOnMouseOut="true" ShowInterval="0" ShowPeekTemplateOnMouseOver="true" />
                        </telerik:RadImageAndTextTile>
                        <telerik:RadImageAndTextTile BackColor="#FFD700" ImageUrl="tiles/tileReporting.jpg" Shape="Wide">
                            <Title Text="View Summary Reports"></Title>
                            <Badge ImageUrl="images/style7/tiny_money.png" />
                            <PeekTemplate>
                                <div style="width: 310px; height: 110px; vertical-align: top; padding: 1px; background-color: #FAF096; color: #000000; font-size: 14px; font-family: Arial, Helvetica, sans-serif;">
                                    <table style="width: 310px; height: 110px">
                                        <tr>
                                            <td>
                                                <asp:Image ID="Image5" runat="server" ImageAlign="TextTop" ImageUrl="~/Images/Style7/money.png" />
                                            </td>
                                            <td>Calculate IPP Compensation
                                                <ul class="b" style="font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: x-small; font-weight: normal;">
                                                    <li>View Summary Report by Year and Period</li>
                                                    <li>Itemized by Job Description</li>
                                                    <li>Total Year-to-date Budget</li>
                                                </ul>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Fade" CloseDelay="0" Easing="swing" HidePeekTemplateOnMouseOut="true" ShowInterval="0" ShowPeekTemplateOnMouseOver="true" />
                        </telerik:RadImageAndTextTile>
                    </telerik:TileGroup>
                </Groups>
            </telerik:RadTileList>
        </telerik:RadToolTip>

    </form>
</body>
</html>

Marin Bratanov
Telerik team
 answered on 14 Aug 2013
2 answers
163 views
How do I implement many to many editing in radgrid using entity framework and declarative techniques? I have looked all over for examples.

my case is very simple with the following tables: Student, Class, StudentClass with StudentClass being strictly defined by Student.ID, and Class.ID

Entity framework turns this into Students with a Classes navigation property and Classes with Students navigation property.

In radgrid I want to display the classes for a given student, thus creating a localized master-detail or 1 to many view. unfortunately I can't pull it off, perhaps because not fully understanding the navigation properties and independent association, StudentClass.

I created an EntityDataSource against Students. I associated it with the StudentCourseRadGrid. in Master table View --> Columns, I have a bound ID (Student) column, and a dropdown Courses column. After that, things fall apart. Once I select the student, its id appears in the grid, but not his courses.

And then, of course, I want to be able to crud the StudentClass relationship. I fully expect to handle the radgrid_insert event which I have done easily in 1 to many scenarios.

this is the section giving me the most difficulty - it is wrong - very wrong.

<telerik:GridDropDownColumn DataSourceID="Students"
         FilterControlAltText="Filter Materials column" HeaderText="Courses"
         ListTextField="Course.Name" ListValueField="Course.ID"
         UniqueName="Courses" DataField="ID">
</telerik:GridDropDownColumn>

I have tried many other permutations involving DataSourceID, ListTextField, ListValueField, and DataField, using Courses reversed with Students,without success. The only examples I have seen are hierarchical but I don't consider my situation hierarchical and it only confuses matters.

Any help is appreciated.

PS - after thinking about this, I believe that I tried to oversimplify the problem. 1 dataset is required to display the Student, 1 dataset - perhaps a navigation property though not sure how - is needed for the student's Classes, and 1 dataset is required to provide domain values for the StudentClass relationship should tuples be added. it will require more custom coding than wanted, but it is the logical, approach. I would be interested in something more efficient but for now I don't see it.




Tsvetoslav
Telerik team
 answered on 14 Aug 2013
20 answers
2.3K+ views
i have edit/delete auto-generated coluns activated but it shows as a text edit and delete and automatically retrives the info.
how can i have instead of the texto na icon.

i tried this but this gives me na js error saying that need page eventvalidation true.

so there must be a way to but na image in edit delete instead of text

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" CellSpacing="0" GridLines="None" Skin="Metro" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" OnItemDataBound="RadGrid1_ItemDataBound">
        <ClientSettings AllowColumnHide="True" AllowKeyboardNavigation="True">
            <Selecting AllowRowSelect="True" />
            <KeyboardNavigationSettings AllowActiveRowCycle="True" AllowSubmitOnEnter="True" />
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
<MasterTableView >
 
    <Columns>
 
         <telerik:GridButtonColumn ConfirmText="Apagar utilizador?" ConfirmDialogType="RadWindow"
 
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
 
                    UniqueName="DeleteColumn">
 
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
 
                </telerik:GridButtonColumn>
 
         <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
 
                    <ItemStyle CssClass="MyImageButton"></ItemStyle>
 
                </telerik:GridEditCommandColumn>
    </Columns>
 
 
      <EditFormSettings ColumnNumber="2" CaptionDataField="UserName" CaptionFormatString="Editar propriedades do utilizador {0}"
 
                InsertCaption="New Product">
 
                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
 
                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
 
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3"
 
                    Width="100%"></FormMainTableStyle>
 
                <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px">
 
                </FormTableStyle>
 
                <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
 
                <EditColumn ButtonType="ImageButton"  UpdateText="Actualizar"
 
                    UniqueName="EditCommandColumn1" CancelText="Cancelar">
 
                </EditColumn>
 
                <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
 
            </EditFormSettings>
 
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
     </EditFormSettings>
 
 
   
 
 
 
<PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="True"></PagerStyle>
</MasterTableView>
 
<PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="True"></PagerStyle>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
    </telerik:RadGrid>
Troika
Top achievements
Rank 1
 answered on 14 Aug 2013
2 answers
605 views
Hi,
please help me with the following aspx radgrid that when I click the delete button it removes the row from the grid (visually) but not from the database. there is not postback, just client side deleteion
thank you!

  CodeBehind="seasonsList.aspx.cs" Inherits="RadControlsWebApp2.seasonsList" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdateInitiatorPanelsOnly="True">
    </telerik:RadAjaxManager>
    <p>
         </p>
    <asp:Panel ID="Panel2" runat="server" Height="91px" Style="margin-right: 243px; padding-right: 100px;"
        Width="750px">
        <div>
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="true"
                AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" CellSpacing="0"
                DataSourceID="SqlDataSource1" GridLines="None" Skin="Office2007">
                 
                <SortingSettings SortToolTip="לחץ כאן כדי למיין" />
                <ExportSettings>
                    <Pdf PageHeight="297mm" PageWidth="210mm" PaperSize="A4" />
                </ExportSettings>
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="seasonID" DataSourceID="SqlDataSource1">
                 
                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" CancelText="ביטול" EditText="עריכה"
                            FilterControlAltText="Filter EditCommandColumn column" meta:resourceKey="GridEditCommandColumnResource1"
                            UpdateText="עדכון" EditImageUrl="Images/edit.png" HeaderStyle-BorderStyle=None>
                        </telerik:GridEditCommandColumn>
                        <telerik:GridClientDeleteColumn ButtonType="ImageButton" ConfirmText="האם אתה בטוח שברצונך למחוק?"
                        Display="true" ImageUrl="Images/delete.gif" HeaderStyle-BorderStyle=None ConfirmTitle="מחיקה">
                         
                        </telerik:GridClientDeleteColumn>
                        <telerik:GridBoundColumn DataField="seasonID" DataType="System.Int32" FilterControlAltText="Filter seasonID column"
                            HeaderText="קוד עונה" ReadOnly="true" SortExpression="seasonID" UniqueName="seasonID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="seasonName" FilterControlAltText="Filter seasonName column"
                            HeaderText="שם עונה" SortExpression="seasonName" UniqueName="seasonName">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                    <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                </MasterTableView>
                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:tm2013ConnectionString %>"
                DeleteCommand="DELETE FROM [tblseasons] where [seasonID]=@seasonID"
                UpdateCommand="UPDATE [tblseasons] SET [seasonName]=@seasonName where [seasonID]=@seasonID"
                SelectCommand="SELECT [seasonID], [seasonName] FROM [tblseasons]">
                <DeleteParameters>
                    <asp:Parameter Name="seasonID" Type="Int32" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="seasonName" Type="String" />
                    <asp:Parameter Name="seasonID" Type="Int32" />
                </UpdateParameters>
            </asp:SqlDataSource>
        </div>
        <telerik:RadButton ID="addNewSeason_btn" runat="server" Text="הוסף עונה חדשה" OnClick="addNewSeason_Click">
        </telerik:RadButton>
               
    </asp:Panel>
    </asp:Panel>
</asp:Content>
Tal
Top achievements
Rank 1
 answered on 14 Aug 2013
1 answer
68 views
Hello,

I'm using the css found here: http://www.telerik.com/support/kb/aspnet-ajax/scheduler/auto-expand-the-height-of-the-appointment.aspx to have appointments expand to show the whole appointment subject in the month view. This works perfectly on my local machine but whenever I put the application onto a remote server I get some odd behavior. If there are appointments present on a month view and I move my mouse over any part of the actual calendar a scrollbar appears even though I have the scheduler set to Auto-Expand Mode true. Any suggestions?

Thanks,
Matt
Boyan Dimitrov
Telerik team
 answered on 14 Aug 2013
3 answers
216 views
I'm using an ASP.Net RadDateTimePicker (2013.2.717.35) and trying to set the displayDateFormat as the user is selecting a new date or time.  If the time is 00:00:00 (midnight) then I want to display only the date.  Once the user selects a time other than 00:00:00, then I want to show the date and time.  I'm trying to set this format in a JavaScript function that is wired up to the ClientEvents.OnDateSelected event.

The issue I'm having is that the formatting of the date/time value isn't applied to the date/time the user just selected.  It gets applied to the next date/time the user selects. For example, when the user clicks on the calendar icon and selects an initial date, the value is, for example, "08/06/2013 12:00AM".  The ClientEvents.OnDateSelected fires, I see that the time selected is midnight so I execute the following JavaScript to hide the time portion:
sender.get_dateInput().set_displayDateFormat("MM/dd/yyyy");

After the OnDateSelected event finishes, the "12:00 AM" is still visible.  If the user then clicks on the clock icon and chooses a time other than midnight, then the following JavaScript line is executed in the OnDateSelected event:
sender.get_dateInput().set_displayDateFormat("M/d/yyyy h:mm tt");

At that point, the user sees the formatting selection from the previous event firing, which is "08/06/2013".

How can I correctly intercept the date/time the user selected and apply the proper formatting immediately?

Here is a sample page that I'm working with:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
        function g(sender, eventArgs){
            if ((eventArgs._newValue.indexOf("12:00 AM") > 0) || (eventArgs._newValue.indexOf("AM") < 0 && eventArgs._newValue.indexOf("PM") < 0)) {
                //Set date format to date only
                sender.get_dateInput().set_dateFormat("M/d/yyyy h:mm tt");
                sender.get_dateInput().set_displayDateFormat("MM/dd/yyyy");
            }
            else {
                //Set date format to include time
                sender.get_dateInput().set_dateFormat("M/d/yyyy h:mm tt");
                sender.get_dateInput().set_displayDateFormat("M/d/yyyy h:mm tt");
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager ID="rsm" runat="server"></telerik:RadScriptManager>
        <telerik:RadDateTimePicker ID="cal" runat="server" ClientEvents-OnDateSelected="g"></telerik:RadDateTimePicker>
    </div>
    </form>
</body>
</html>
Vasil
Telerik team
 answered on 14 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?