Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
301 views
Hi,

I am  replacing ADO.NET data source  of Radscheduler with web service.
On  previous one, I had appointment template  that used custom attributes  inserted  on appointment data bound  event, how can I add custom attributes to  show appointment template  with this new databinding environment?

 protected void TicketsSchedule_AppointmentDataBound(object sender, SchedulerEventArgs e)
    {
      .....................
            e.Appointment.Attributes["MTaskID"] = row["MasterTaskID"].ToString();
            e.Appointment.Attributes["TaskID"] = row["SubTaskID"].ToString();
            e.Appointment.Attributes["ProjectID"] = row["ProjectID"].ToString();
.................



 <telerik:RadScheduler runat="server"  ID="RadScheduler1"    OnResourcesPopulating="RadScheduler1_ResourcesPopulating"  SelectedView="TimelineView"  EnableCustomAttributeEditing="True"   OnClientDataBound="onSchedulerDataBound"
                  OnClientAppointmentsPopulating="OnClientAppointmentsPopulating"  Width="1900px" Height="900px"    OverflowBehavior="Scroll"   OnClientResourcesPopulating="OnClientResourcesPopulating" 
                               AppointmentStyleMode="Default" >
                                <AppointmentTemplate >
                                    <div>
                                            <div id="ApptImageDiv" style="text-align:right; position:absolute; width:95%;" >
                                                 <asp:Image ID="ApptAttachmentImg" runat="server"  Width="16px" Height="17px"  CssClass="ShowAttachment"
                                                           
                                            />
                                    </div>

                                    <%#Eval("Subject") %>  
                                   </div>   
                            </AppointmentTemplate >
                            <DayView UserSelectable="True" GroupBy="TechName" GroupingDirection="Horizontal" />
                            <WeekView UserSelectable="True" GroupBy="TechName" GroupingDirection="Vertical"  />
          
Any idea?

Thanks,
Prava
Boyan Dimitrov
Telerik team
 answered on 03 Sep 2013
2 answers
171 views
We recently ported our application from a version of RadControls that was a couple of years old (and .NET 2.0) to the latest release (and .NET 4.0) and for the most part everything went just fine, but I've got this problem with RadToolTipManager that I can't even figure out where to begin looking.

The original app displays the tooltips fine, but in the ported version, there is a display anomaly that I could not figure out how to put into words, so please see the attached images.  Specifically, the incorrectly positioned visual geegaw that makes the tooltip look like a speech balloon instead of just a box.

There are no code/markup differences between the examples shown, except a few global tweaks to the CSS that are related to just our application, not to any Telerik specific CSS identifiers.

Edit : just FYI, it is happening every place that we use RadToolTipManager, not just the one screen that I took the images from.  In at least one of those screens, the tooltip is also not showing up with the yellow background it used to have, but otherwise has the same display anomaly described above.
Thomas Yanez
Top achievements
Rank 1
 answered on 03 Sep 2013
8 answers
216 views
Hello,

Do you have an example of how appointments get exported when bound to a web service?  I'm updating my code to use the WS approach and my previous setup didn't work (which, or course, was exporting the ICS from the server).

Thanks.
Plamen
Telerik team
 answered on 03 Sep 2013
2 answers
201 views
Hi

I have the following aspx code:
<telerik:RadScriptManager
        ID="RadScriptManager1"   
        runat="server"   
        CdnSettings-TelerikCdn="Enabled">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <p>Testataan yläteksti</p>
    <asp:Label ID="Polku1" runat="server" Text="Label"></asp:Label>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="500px"
                          Width="1160px" BackColor="#99CCFF" >
        <telerik:RadTileList ID="ValikkoTileList1" runat="server"
                             Skin="BlackMetroTouch" AutoPostBack="true"
                             OnTileClick="ValikkoTileList1_TileClick">
            <Groups>
                <telerik:TileGroup></telerik:TileGroup>
                <telerik:TileGroup></telerik:TileGroup>
                <telerik:TileGroup></telerik:TileGroup>
            </Groups>
 
        </telerik:RadTileList>
    </telerik:RadAjaxPanel>
    <asp:Label ID="Message1" runat="server" Text="Label"></asp:Label>
    <div runat="server" id="clickResult">
    </div>
    <p>Testataan alateksti</p>

In my c# code I create Tiles dynamically but I can not get into the event handler :
RadImageAndTextTile tile = new RadImageAndTextTile();
                tile.Name = "ValikkoTile" + counter.ToString();
                //tile.Shape = TileShape.Wide;
                tile.Height = 80;
                tile.Width = 250;
                //tile.Text = row.ValikkoNimi;
                tile.Badge.PredefinedType = TileBadgeType.Playing;
                tile.Title.Text = row.ValikkoNimi;
                tile.ImageUrl = "/Img/comment_32x32.png";
.........
tile.NavigateUrl = redirect;
                 
                 
                tile.PeekTemplate = new MyTemplate(text1, imgurl);
                tile.PeekTemplateSettings.Animation = PeekTemplateAnimation.Slide;
                tile.PeekTemplateSettings.AnimationDuration = 800;
  
                tile.PeekTemplateSettings.Easing = "easeInOutBack";
                               
                tile.PeekTemplateSettings.ShowInterval = 5000;
                tile.PeekTemplateSettings.CloseDelay = 5000;
                tile.PeekTemplateSettings.ShowPeekTemplateOnMouseOver = true;
                tile.PeekTemplateSettings.HidePeekTemplateOnMouseOut = true;
                if (counter <= grouping)
                {
                    ValikkoTileList1.Groups[0].Tiles.Add(tile);
                }
And here comes the event handler that never is being called:
protected void ValikkoTileList1_TileClick(object sender, TileListEventArgs e)
        {
            clickResult.InnerHtml = "Clicked tile name and URL: " + e.Tile.Name + "<br />" + e.Tile.NavigateUrl;
         
        }

When AutoPostback is set to false the tiles are redirecting according to NavigateUrl.
Thanks
Martin
Shinu
Top achievements
Rank 2
 answered on 03 Sep 2013
2 answers
300 views
Close button not visible when using skins Metro Touch. And the mouse over a small white circular ring appears ...
Good to see that you can close the dialog box :-)
Marin Bratanov
Telerik team
 answered on 03 Sep 2013
20 answers
1.3K+ views
I have a user control that includes the following RadWindow declaration:

<telerik:RadWindowManager ID="rwmSelectImageManager" runat="server" SkinID="TelerikRadWindowManager"
  <Windows> 
    <telerik:RadWindow ID="rwSelectImage" runat="server" Behaviors="Move, Close, Resize, Maximize" 
      Title="Select Image" SkinID="TelerikRadWindow" Height="450px" Width="675px" Modal="True" 
      ClientCallBackFunction="CallBackFunction" > 
    </telerik:RadWindow> 
  </Windows> 
</telerik:RadWindowManager> 

The javascript which opens the RadWindow is being injected using RegisterClientScriptBlock in the Page_Load event.  Before injecting, I use the IsClientScriptBlockRegistered method to see if it needs to be added first to prevent multiple inclusions.

I am then placing this control into various custom DotNetNuke modules.  If the module does not have any postbacks, the RadWindow opens and closes as many times as you want based on clicking a LinkButton (part of the user control).  However, when the user control is placed in a module that has postbacks, the RadWindow will open and close many times, unti la postback occurs, then the window will no longer open when the LinkButton is pressed.  Instead, I get a the DNN progress indicator as if a postback is occuring (rather than the client side script normally called) and the window never shows.  Everything else in the module remains active.

Here's the javascript function that shows the RadWindow:

function ShowDialog() 
{  
  var oWnd = window.radopen(null, 'rwSelectImage');  
  oWnd.setUrl(oWnd.get_navigateUrl()); 

The DestroyOnClose is not set (and I believe the default value is False).  Also, here is the javascript called to close the RadWindow (it is inside of the aspx page loaded in the window:

function ImageClicked(imageName) 
  var oWindow = GetRadWindow(); 
     
  var arg = new Object(); 
  arg.SelectedImageName = imageName
             
  oWindow.Close(arg);        
}    


Can you please advise as to why it will no longer show the window after a postback occurs?  It will show again fine if I reload the page, but that is clearly not a solution ;-)

Thanks!

Michael



Marin Bratanov
Telerik team
 answered on 03 Sep 2013
1 answer
59 views
I had used client-side Expand/Collapse of groups function, is it possible to show header text again in each group ?

because it may be many rows in each group, it is hard to page up/down to look for the header.

 
Kostadin
Telerik team
 answered on 03 Sep 2013
5 answers
510 views
How can I avoid the update of the example "Grid - Attachment Column" that must upload a new file if I want to change for example UploadDate or UploadedBy?
Kostadin
Telerik team
 answered on 03 Sep 2013
5 answers
2.5K+ views
Hi

I am trying to open a radwindow from C# on click of a button. I tried several codes available in the internet to invoke the js defined in the aspx page to open the radwindow but every time I get a js function undefined error. Please someone help me with a full solution.

Thanks in advance.
Ben
Shinu
Top achievements
Rank 2
 answered on 03 Sep 2013
1 answer
298 views

Hello ,All

I am working  Multiple telerik:RadAjaxPanel in every Panel wise

my page design is one Panel and under telerik:RadAjaxPanel and complete Panel tab

another same Panel2 and under telerik:RadAjaxPanel and complete Panel and so on.. different 14 Panel but currently I show only 2 panel

 

When I write my code in telerik:RadAjaxPanel panel and when I submit my data is also check validation and all are working fine, but when bind grid in current panel and I click on edit button fire then different telerik:RadAjaxPanel validation not working because both are different panel and telerik:RadAjaxPanel

So I am setting on AjaxSetting every button click event like save , cancel and grid ..but there are not proper scenario ,because page coding line is very long and every button click event on setting on Ajax Setting

<telerik:AjaxSetting AjaxControlID="btnGrievancesSave">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />

<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />

<telerik:AjaxUpdatedControl ControlID="tblGrievances" />

</UpdatedControls>

</telerik:AjaxSetting>

can you give me proper solution and best way to optimum my page code not write every click event code 

<%@ Page Title="" Language="C#" MasterPageFile="~/DCenter/MasterPage/ClientDetail.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="DCenter.ClientDetailCenter.WebForm2" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentPlaceHolder" runat="server">
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <telerik:RadAjaxManager ID="AM" runat="server" DefaultLoadingPanelID="RALoading">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="grdMainSSNWindows">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdMainSSNWindows" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnRetrive">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tblCourtOrder" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnGrievancesSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="tblGrievances" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnNVSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="tblNewViolation" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RALoading" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <style type="text/css">
        .maindrc
        {
            width: 98%;
            margin: 15px auto;
            padding: 10px;
            position: relative;
            min-height: 99%;
            background: #f5f4f4;
            padding-bottom: 30px;
        }
 
        .left_menu
        {
            width: 15%;
            height: auto;
            border: 1px solid #b5b5b5;
            border-radius: 5px;
        }
 
        .right_menu
        {
            width: 84%;
            height: auto;
            border: 1px solid #b5b5b5;
            border-radius: 5px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        var ActiveTabIndex = 1;
 
        function ShowPanel(index) {
            var values = document.getElementById("ctl00_AdminContentPlaceHolder_hdnname").value;
 
            ActiveTabIndex = index;
            document.getElementById("ctl00_AdminContentPlaceHolder_hdnPanel").value = ActiveTabIndex;
            var i;
            for (i = 1; i <= 2; i++) {
                document.getElementById("ctl00_AdminContentPlaceHolder_pnl" + i).style.display = (i == index) ? "block" : "none";
            }
 
        }
        function validationFunction(source, args) {
            if (args.Value == "Select Prerequest") {
                args.IsValid = false;
            } else {
                args.IsValid = true;
            }
        }
    </script>
    <div class="maindrc">
        <asp:Panel ID="pnlValidatorSummary" runat="server">
        </asp:Panel>
        <table cellspacing="0" cellpadding="5" width="100%">
            <tr>
                <td class="left_menu" valign="Top">
                    <table cellspacing="0" cellpadding="0" align="center" style="width: 100%">
                        <tr>
                            <td style="text-align: center; font: bold 15px arial; padding-bottom: 5px; padding-top: 5px; background: #c7c7c7; vertical-align: top">Client
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <ul id="css3menu1" class="topmenu">
                                    <li class="topfirst"><a href="#" id="Menu1" onclick="javascript:ShowPanel(1);">
                                        <img src="../Images/personal_info.png" />
                                        New Violation</a></li>
                                    <li class="toplast"><a href="#" id="Menu14" onclick="javascript:ShowPanel(2);">
                                        <img src="../Images/Grievances.png" />Grievances</a></li>
                                </ul>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 1%"></td>
                <td class="right_menu" style="vertical-align: top;">
                    <table cellspacing="0" cellpadding="0" align="center" width="100%">
                        <tr>
                            <td style="text-align: center; border: 1px solid #eee; padding-bottom: 5px; padding-top: 5px;">
                                <table id="tblCourtOrder" runat="server" align="center" cellspacing="2" cellpadding="2"
                                    style="width: 98%;">
                                    <tr>
                                        <td colspan="7" align="left" class="header_title">Select Client
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" align="left">
                                            <div class="hrstyle">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top" align="right">
                                            <asp:Label ID="lblName" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td valign="top" align="left">
                                            <telerik:RadTextBox ID="txtCase" runat="server" MaxLength="14">
                                            </telerik:RadTextBox>
                                        </td>
                                        <td valign="top" align="right">
                                            <asp:Label ID="lblBookingNbr" runat="server" CssClass="labelText" Text="SSN #: "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td valign="top" align="left">
                                            <telerik:RadMaskedTextBox Mask="###-##-####" runat="server" ID="txtSSN" AutoPostBack="true">
                                            </telerik:RadMaskedTextBox>                                         
                                          
                                        </td>
                                        <td valign="top" align="right">
                                            <asp:Label ID="lblRetiveDateofBirth" runat="server" CssClass="labelText" Text="Date Of Birth : "></asp:Label>
                                        </td>
                                        <td valign="top" align="left">
                                            <telerik:RadDatePicker ID="dtRetrivreDateofBirth" runat="server" Width="90px" DateInput-DateFormat="M/dd/yyyy"
                                                Culture="en-US" MinDate="1900-01-01">
                                            </telerik:RadDatePicker>
                                        </td>
                                        <td
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%" valign="top" align="right">
                                            <asp:Label ID="lblLastName" runat="server" CssClass="labelText" Text="Last Name : "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td style="width: 15%" valign="top" align="left">
                                            <telerik:RadTextBox ID="txtLastName" runat="server" MaxLength="100">
                                            </telerik:RadTextBox>
                                            <asp:RegularExpressionValidator ID="revlastname" runat="server" Display="none" ValidationGroup="vsError"
                                                ErrorMessage="Last Name Only Character Words Allow" ControlToValidate="txtLastName"
                                                ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                        </td>
                                        <td style="width: 15%" valign="top" align="right">
                                            <asp:Label ID="lblFirstName" runat="server" CssClass="labelText" Text="First Name : "></asp:Label>
                                            <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                        </td>
                                        <td style="width: 20%" valign="top" align="left">
                                            <telerik:RadTextBox ID="txtFirstName" runat="server" MaxLength="100">
                                            </telerik:RadTextBox>
                                            <asp:RegularExpressionValidator ID="revfirstname" runat="server" Display="none" ValidationGroup="vsError"
                                                ErrorMessage="First Name Only Character Words Allow" ControlToValidate="txtFirstName"
                                                ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                        </td>
                                        <td style="width: 12%" valign="top" align="right">
                                            <asp:Label ID="lblMiddleName" runat="server" CssClass="labelText" Text="Middle Name : "></asp:Label>
                                        </td>
                                        <td style="width: 10%" valign="top" align="left">
                                            <telerik:RadTextBox ID="txtMiddleName" runat="server" MaxLength="100">
                                            </telerik:RadTextBox>
                                            <asp:RegularExpressionValidator ID="revmiddlename" runat="server" Display="none"
                                                ValidationGroup="vsError" ErrorMessage="Middle Name Only Character Words Allow"
                                                ControlToValidate="txtMiddleName" ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
                                        </td>
                                        <td
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" align="left"
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="7" align="right">
                                            <telerik:RadButton ID="btnRetrive" runat="server" Text="Retrive" OnClientClick="BeginLoad();" OnClick="btnRetrive_Click" ValidationGroup="vsError">
                                            </telerik:RadButton>
                                              
                                            <telerik:RadButton ID="btnClearSerach" runat="server" CausesValidation="false" Text="Clear">
                                            </telerik:RadButton>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 5px;"></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel ID="pnl1" runat="server" Style="display: none;">
                                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RALoading">
                                        <table id="tblNewViolation" runat="server" align="center" cellspacing="2" cellpadding="2"
                                            style="width: 98%;">
                                            <tr>
                                                <td colspan="2" align="left" class="header_title">New Violation
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblPreDefinedNotes" runat="server" CssClass="labelText" Text="Pre Defined Notes : "></asp:Label>
                                                    <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmbPreDefinedNotes" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbPreDefinedNotes_SelectedIndexChanged">
                                                    </telerik:RadComboBox>
                                                    <asp:CustomValidator ID="CustomValidator6" ErrorMessage="Please Select Pre Defined Notes"
                                                        SetFocusOnError="true" ControlToValidate="cmbPreDefinedNotes" ValidateEmptyText="true"
                                                        runat="server" ClientValidationFunction="validationFunction" Display="none" ValidationGroup="vsViolation"></asp:CustomValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%" valign="top" align="right">
                                                    <asp:Label ID="lblShortDescription" runat="server" CssClass="labelText" Text="New Violation : "></asp:Label>
                                                    <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtShortDescription" TextMode="MultiLine" runat="server" Height="100px" Width="493px">
                                                    </telerik:RadTextBox>
                                                    <asp:RequiredFieldValidator ID="reqShortDescription" runat="server" ValidationGroup="vsViolation"
                                                        SetFocusOnError="true" ErrorMessage="Please Enter New Violation" Display="none" ControlToValidate="txtShortDescription"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblResolutions" runat="server" CssClass="labelText" Text="Case # : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmcCase" runat="server" Visible="false">
                                                    </telerik:RadComboBox>
                                                    <telerik:RadTextBox ID="txtNCCase" runat="server" MaxLength="200" Visible="false">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblPre" runat="server" CssClass="labelText" Text="Services : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmcServices" runat="server">
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
 
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <telerik:RadButton ID="btnNVSave" runat="server" Text="Save" ValidationGroup="vsViolation" OnClick="btnNVSave_Click">
                                                    </telerik:RadButton>
                                                    <telerik:RadButton ID="btnNVCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnNVCancel_Click">
                                                    </telerik:RadButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="7" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                    <asp:ValidationSummary ID="vsViolation" runat="server" ShowSummary="false" ShowMessageBox="true"
                                                        HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                                                        ValidationGroup="vsViolation" CssClass="errormessage"></asp:ValidationSummary>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4" align="left">
                                                    <telerik:RadGrid ID="grdViolation" runat="server" AllowPaging="True" AllowSorting="True"
                                                        AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                        OnNeedDataSource="grdViolation_NeedDataSource" OnItemCommand="grdViolation_ItemCommand">
                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                        <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace" DataKeyNames="NewViolationPK">
                                                            <CommandItemSettings ShowAddNewRecordButton="false" />
                                                            <Columns>
                                                                <telerik:GridTemplateColumn HeaderText="CaseNo" ItemStyle-HorizontalAlign="Left" SortExpression="CaseNoFK">
                                                                    <ItemTemplate>
                                                                        <%# Eval("CaseNoFK") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Pre Defined Notes" ItemStyle-HorizontalAlign="Left" SortExpression="PreDefinedNotesFK">
                                                                    <ItemTemplate>
                                                                        <%# Eval("PreDefinedNotesFK") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Services" ItemStyle-HorizontalAlign="Left" SortExpression="ServicesFK">
                                                                    <ItemTemplate>
                                                                        <%# Eval("ServicesFK") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                    UniqueName="editdetail">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("NewViolationPK") %>'
                                                                            CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridButtonColumn ConfirmText="Delete this Violation?" ConfirmDialogType="RadWindow"
                                                                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                    UniqueName="DeleteColumn">
                                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                </telerik:GridButtonColumn>
                                                            </Columns>
                                                            <EditFormSettings>
                                                                <EditColumn Visible="false"></EditColumn>
                                                            </EditFormSettings>
                                                        </MasterTableView>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </telerik:RadAjaxPanel>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center; border: 1px solid #eee; padding-bottom: 5px; padding-top: 5px;">
                                <asp:Panel ID="pnl2" runat="server" Style="display: none;">
                                    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RALoading">
                                        <table id="tblGrievances" runat="server" align="center" cellspacing="2" cellpadding="2"
                                            style="width: 98%;">
                                            <tr>
                                                <td colspan="2" align="left" class="header_title">Grievances
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%" valign="top" align="right">
                                                    <asp:Label ID="Label40" runat="server" CssClass="labelText" Text="Short Description : "></asp:Label>
                                                    <span style="color: Red; font-size: 12px; font-weight: bold">*</span>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtGRShortDesc" runat="server" Width="493px" MaxLength="500">
                                                    </telerik:RadTextBox>
                                                    <asp:Panel ID="Panel2" runat="server" Width="25px">
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ValidationGroup="vsGrievances" SetFocusOnError="true"
                                                            ErrorMessage="Please Enter Short Description" Display="none" ControlToValidate="txtGRShortDesc"></asp:RequiredFieldValidator>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="lblFullDescription" runat="server" CssClass="labelText" Text="Full Description : "></asp:Label>
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtFRFullDescription" runat="server" Width="493px" MaxLength="500">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="Label41" runat="server" CssClass="labelText" Text="Pre Defined Notes : "></asp:Label>
 
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadComboBox ID="cmdGRPreDefinedNotes" runat="server">
                                                        <Items>
                                                            <telerik:RadComboBoxItem Text="All" Value="0" Selected="true" />
                                                            <telerik:RadComboBoxItem Text="All Pre Defined Notes" Value="1" />
                                                        </Items>
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" align="right">
                                                    <asp:Label ID="Label42" runat="server" CssClass="labelText" Text="Resolutions : "></asp:Label>
 
                                                </td>
                                                <td valign="top" align="left">
                                                    <telerik:RadTextBox ID="txtGRResolutions" runat="server" TextMode="MultiLine" Width="310px" Height="100px" MaxLength="500">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left">
                                                    <div class="hrstyle">
                                                    </div>
 
                                                    <asp:ValidationSummary ID="vsGrievances" runat="server" ShowSummary="false" ShowMessageBox="true"
                                                        HeaderText="Verify the following fields :" BorderWidth="1" BorderColor="DimGray"
                                                        ValidationGroup="vsGrievances" CssClass="errormessage"></asp:ValidationSummary>
 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <telerik:RadButton ID="btnGrievancesSave" runat="server" ValidationGroup="vsGrievances" Text="Save" OnClick="btnGrievancesSave_Click">
                                                    </telerik:RadButton>
                                                    <telerik:RadButton ID="btnGrievancesCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnGrievancesCancel_Click">
                                                    </telerik:RadButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="left" style="vertical-align: top;">
 
                                                    <telerik:RadGrid ID="grdGrievances" runat="server" AllowPaging="True" AllowSorting="True"
                                                        AutoGenerateColumns="False" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false"
                                                        OnNeedDataSource="grdGrievances_NeedDataSource" OnItemCommand="grdGrievances_ItemCommand">
                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                        <MasterTableView Width="100%" CommandItemDisplay="None" EditMode="InPlace">
                                                            <CommandItemSettings ShowAddNewRecordButton="false" />
                                                            <Columns>
                                                                <telerik:GridTemplateColumn HeaderText="Short Description" ItemStyle-HorizontalAlign="Left" SortExpression="ShortDescription">
                                                                    <ItemTemplate>
                                                                        <%# Eval("ShortDescription") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Full Description" ItemStyle-HorizontalAlign="Left" SortExpression="FullDescription">
                                                                    <ItemTemplate>
                                                                        <%# Eval("FullDescription") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Resolutions" ItemStyle-HorizontalAlign="Left" SortExpression="Resolutions">
                                                                    <ItemTemplate>
                                                                        <%# Eval("Resolutions") %>
                                                                    </ItemTemplate>
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center" HeaderText="Action"
                                                                    UniqueName="editdetail">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%#Eval("DRCGrievancesPK") %>'
                                                                            CommandName="Edit" Text="Edit"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridButtonColumn ConfirmText="Delete this Grievances?" ConfirmDialogType="RadWindow"
                                                                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                    UniqueName="DeleteColumn">
                                                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                                </telerik:GridButtonColumn>
                                                            </Columns>
                                                            <EditFormSettings>
                                                                <EditColumn Visible="false"></EditColumn>
                                                            </EditFormSettings>
                                                        </MasterTableView>
                                                    </telerik:RadGrid>
                                                </td>
                                            </tr>
                                        </table>
                                    </telerik:RadAjaxPanel>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="7" align="center">
                                <asp:Label ID="lblCourtMsg" runat="server" Visible="false" ForeColor="Red" Font-Size="10pt"></asp:Label>
                                <asp:HiddenField ID="hdnNameFK" Value="0" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
                <asp:HiddenField ID="hdnname" Value="0" runat="server" />
                <asp:HiddenField ID="hdnPanel" runat="server" Value="1" />
            </tr>
        </table>
 
    </div>
</asp:Content>
Angel Petrov
Telerik team
 answered on 03 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?