Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
313 views
Will a standard custom validator work within a RadAjaxPanel?

I have a screen with a RadSplitter containing multiple radcombo boxes, custom validators, and the usual javascript code for the validators

Until now they've been working perfectly.

I've just enclosed the entire splitter in a RadAjaxPanel.  

All the server-side code is working normally but the custom validators appear to have failed completely.  The Javascript functions are not being called.  
Boris
Top achievements
Rank 1
 answered on 30 Apr 2014
1 answer
81 views
In the Scheduler, when you hover your mouse over an appointment it shows a delete image. This is nice, but I want the same functionality with an edit image. I know I can implement a click or double click client event to handle editing, and in fact have already done so with double click, but to make it more clear to end users I would also like an edit image. They are also used to having this from an old scheduler control we are looking to migrate away from another vendor to use the telerik scheduler control.

I don't mind rolling my own solution, but any help you can provide if you have done this regarding css and client scripts that I can use would be great. Ultimately I think this should be built into the control itself as I can't imagine I am the only one wanting this.

Also, I know I can put my own image in an appointment template which may be what I end up having to do, but again I want it to look nice and appear right next to the delete image when you hover the mouse over the appointment.
Plamen
Telerik team
 answered on 30 Apr 2014
1 answer
652 views
When I add the code for a registered trademark symbol (®) provided by you guys at Telerik in this post http://www.telerik.com/support/kb/details/adding-special-characters-in-html-code I am getting inconsistent displays. When I enter the character code (® or ®) it instead puts in this different symbol Ã† once published.

Any idea why I can't get a simple Registered Trademark symbol to appear correctly? This is very frustrating since it is a very simple and straight forward part of HTML coding. Any help would be greatly appreciated.

Thanks,
KC Painter
Rumen
Telerik team
 answered on 30 Apr 2014
1 answer
148 views
Hello,

I'm using a radtreeview that is being populated by my database.  On initial load it loads the starting options. When a node is expended the the _NodeExpand event is fired.  This populates the next level of nodes.  Some of these nodes have checkbox code within the html that is loaded.  That all displays and works fine until I go to a different starting option node and expand it.  This cases the page to reload and my checkboxes disappear but the original nodes are expanded.  How can I prevent the reloading of this page so my users can open all different nodes and see the checkboxes?  

Thank you
Boyan Dimitrov
Telerik team
 answered on 30 Apr 2014
7 answers
115 views
Hi Telerik,
This part of Recurrence's panel didn't validate the empty cell. It's good in validating zero!
ctl00_MainContent_RadScheduler1_Form_AppointmentRecurrenceEditor_RangeOccurrences_wrapper
I try to reproduce this logic on http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx... and it's ignore this selected radio button and set "No end data".

  How can I repair such wrong behavior?
Plamen
Telerik team
 answered on 30 Apr 2014
3 answers
392 views
Have Pdf-DefaultFontFamily='Arial Unicode MS' set in <ExportSettings>. 

Works fine when exporting on local machine.   When I deploy and run from azure website, export appears to be in Times New Roman.

Any suggestions?

Regards

Glenn
Daniel
Telerik team
 answered on 30 Apr 2014
5 answers
217 views
Hello all,

I was wondering if it is possible to achieve a notification about required fields. I was adapting the example at https://demos.telerik.com/aspnet-ajax/notification/examples/waiariasupport/defaultcs.aspx (the primary feature here is checking if there are errors, not the ARIA-support).

At least, I got stuck with the client having to call "showNotification()". In the example it is done by a simple button underneath the form, but in my example I'm using a relatively complex RadGrid with EditMode set to PopUp.

All in all, I want the following features:

- adding or editing a dataset should open a modal popup with edit fields in it, including buttons "update" and "cancel" (done by RadGrid EditMode="popup")
- show a RadNotification if the first two fields (shortname and definition) are empty, DO NOT close the form
- if at least the two fields are given, insert / update the dataset

I hope you can help me and I am really looking forward to a nice solution,

regards

Jan
Jan
Top achievements
Rank 1
 answered on 30 Apr 2014
9 answers
239 views
I have the following User Control:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="test.ascx.cs" Inherits="_Controls_test" %>
<asp:Button ID="btnText" runat="server" Text="test" OnClick="btnTest_Click" />
protected void btnTest_Click(object sender, EventArgs e)
  {
    CommandEventArgs args = new CommandEventArgs("TestEvent", "bubbled up!");
    RaiseBubbleEvent(null, args);
  }

Then a parent page:
<telerik:RadScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadAjaxPanel ID="UpdatePanel1" runat="server" LoadingPanelID="UpdateProgress1">
      This is a test page:<br />
      <asp:Literal ID="litTest" runat="server" />
      <br /><br /><br />
      <uc1:testUC ID="testUC1" runat="server" />
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="UpdateProgress1" runat="server" />
protected override bool OnBubbleEvent(object source, EventArgs args)
  {
    if (args != null)
    {
      CommandEventArgs e = (CommandEventArgs)args;
      if (e.CommandArgument != null)
      {
        litTest.Text += e.CommandName + " = " + e.CommandArgument.ToString() + "<br />";
        return true;
      }
    }
 
    return false;
  }

When the button is clicked, the OnBubbleEvent is not fired - if I replace the RadAjaxPanel with an UpdatePanel, it fires (twice, strangely?). If I remove the UpdaetPanel and have it post back, it also fires twice. WHat do I need to do to get this working in RadAjaxPanel?
Maria Ilieva
Telerik team
 answered on 30 Apr 2014
5 answers
540 views
I'm having trouble writing a pdf file to the browser when a user clicks a linkbutton inside a radgrid detailview gridtableview gridtemplatecolumn.  The grid is also wrapped in an update panel. The click event fires and the bytes are written to the response without error.  However the browser's file download dialog never appears.

Any insights would be greatly appreciated.

<asp:UpdatePanel ID="updatePanel" ClientIDMode="Static" runat="server">
            <ContentTemplate>
    <telerik:RadGrid ID="rgDocuments" runat="server" Width="100%" ShowStatusBar="False" AutoGenerateColumns="False"
        AllowSorting="False" AllowMultiRowSelection="False" AllowPaging="False" Skin="EACS" EnableEmbeddedSkins="false"
        OnDetailTableDataBind="rgDocuments_DetailTableDataBind" OnNeedDataSource="rgDocuments_NeedDataSource"
        OnPreRender="rgDocuments_PreRender">
        <MasterTableView Width="100%" DataKeyNames="DOCUMENT_AUTHOR_ID" AllowMultiColumnSorting="True">
            <DetailTables>
                <telerik:GridTableView DataKeyNames="DOCUMENT_AUTHOR_ID,DOCUMENT_AUTHOR_CATEGORY_ID" Name="Categories" Width="100%" >
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="DOCUMENT_ID,PARENT_DOCUMENT_ID" Name="ParentDocuments" Width="100%">
                            <DetailTables>
                                <telerik:GridTableView DataKeyNames="DOCUMENT_ID,FILENAME,TITLE" Name="Documents" Width="100%">                           
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="DOCUMENT_ID" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="FILENAME" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn HeaderText="Section Title">
                                            <ItemTemplate>
                                                   <asp:LinkButton ID="btnDocument" runat="server" OnClick="btnDocument_Click" Text='<%# Eval("Title") %>'></asp:LinkButton>
                                              </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
                            <Columns>
                                <telerik:GridBoundColumn DataField="DOCUMENT_ID" Visible="false">
                                </telerik:GridBoundColumn>                               
                                <telerik:GridBoundColumn HeaderText="Document Title" DataField="TITLE" >
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridBoundColumn DataField="DOCUMENT_AUTHOR_CATEGORY_ID" Display="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Category" DataField="DISPLAY_VALUE">
                        </telerik:GridBoundColumn>
                    </Columns>
                </telerik:GridTableView>
            </DetailTables>
            <Columns>
                <telerik:GridBoundColumn DataField="DOCUMENT_AUTHOR_ID" Visible="false"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Author Name" DataField="DISPLAY_VALUE"></telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    </ContentTemplate>
    </asp:UpdatePanel>

protected void btnDocument_Click(object sender, EventArgs e)
        {
            LinkButton lb = (LinkButton)sender;
            GridDataItem item = (GridDataItem)lb.NamingContainer;
            if (item != null)
            {
                string documentUploadPath = ConfigurationManager.AppSettings["DocumentUploadPath"].ToString();               
                string filename = documentUploadPath + item.GetDataKeyValue("FILENAME").ToString();
                string title = documentUploadPath + item.GetDataKeyValue("TITLE").ToString();
 
                if (File.Exists(Server.MapPath(filename)))
                {
                    System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
 
                    byte[] bytes = File.ReadAllBytes(Server.MapPath(filename));
 
                    response.Clear();
                    response.AddHeader("Content-Type", "binary/octet-stream");
                    response.AddHeader("Content-Disposition",
                        "attachment; filename=" + title + ".pdf;");
                    response.Flush();
                    response.BinaryWrite(bytes);
                    response.Flush();
                    response.End();
                }
            }
        }

Stephen
Top achievements
Rank 1
 answered on 30 Apr 2014
1 answer
157 views
Hi, I am using 2013 Q3 version.  I have a problem as follows:

In client side, I have defined RadGrid and the corresponding ClientSettings as follows:
<telerik:RadGrid runat="server" ID="OrgGrid" AutoGenerateColumns="False" AllowSorting="True" AllowFilteringByColumn="True"
                         AllowPaging="True" AllowCustomPaging="true" CellSpacing="0" EnableLinqExpressions="false"
                         EnableViewState="true" ShowGroupPanel="True">
            <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" ReorderColumnsOnClient="true">
                <Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="true" />
                <ClientEvents OnColumnResized="OnColumnResized" />
            </ClientSettings>
      ....

I would like to know the way to set the textbox width in the FilteringItem in OnColumnResized event.  I tried the following but it doesn't return anything to me in the textbox.
            function OnColumnResized(sender, eventArgs) {
                var _OrgGrid = $find("<%= OrgGrid.ClientID %>");
                var _MasterTableView = _OrgGrid.get_masterTableView();
                var _filterRow = $telerik.$(_OrgGrid.get_element()).find("rgFilterRow");
                var _textbox = $telerik.findElement(_filterRow[0], "OrgCode");
                _textbox.width = eventArgs.get_gridColumn().get_element().offsetWidth - 40;

                return false;
            }  

Thanks.
Emily



Princy
Top achievements
Rank 2
 answered on 30 Apr 2014
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?