Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
Hello friends,

I have already tried some stuff but I couldn't change the 'Count' footer text.

The counter has been added with the ShowFooter="True" tag and it seems to be working but I need to localize the "Count" word as attached.


<telerik:RadGrid ID="gdvPendenteAtendimento" runat="server" Width="99%" Height="480px"
                            PageSize="10" CellSpacing="0" GridLines="None" Skin="Office2010Silver" AllowPaging="true"
                            AllowSorting="true" AllowFilteringByColumn="true" OnItemDataBound="gdvPendenteAtendimento_ItemDataBound"
                            OnItemCommand="gdvPendenteAtendimento_ItemCommand" AlternatingItemStyle-CssClass="alt-color"
                            AutoGenerateColumns="False" ShowFooter="True" OnCustomAggregate="gdvPendenteAtendimento_CustomAggregate">


Any ideas?

Thanks in advance,
Will
Shinu
Top achievements
Rank 2
 answered on 30 May 2012
3 answers
101 views
My ajax loading panel always shows up beneath images in rad rotators (even though the loading panel has z value set to 99999).  Is there any way to get it to show over images of a rad rotator on the page?
Richard
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
256 views
There is a problem when i am try to pass this 
<asp:ControlParameter Name="Com_Name" PropertyName="SelectedValue" ControlD="comNameFilter" /> 
It says 

Could not find control 'comNameFilter' in ControlParameter 'Com_Name'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
Exception Details: System.InvalidOperationException: Could not find control 'comNameFilter' in ControlParameter 'Com_Name'.

and i try the other IDs which is fine.
Can any body please tell me how can i fixed it 
by finding the control Id of Combobox or any other way to do it?
Thanks very much
 


    <telerik:RadGrid ID="RGBranch" runat="server"
      AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None" OnNeedDataSource="RadGridList_NeedDataSource"
      Skin="Windows7" AllowFilteringByColumn="True" AllowMultiRowSelection="True" EnabledViewState="true"
      AutoGenerateColumns="False" OnDeleteCommand="RGBranch_DeleteCommand">
      <MasterTableView DataKeyNames="Com_ID,Branch_No" ClientDataKeyNames="Com_ID,Branch_No" >
        <Columns>
        <telerik:GridClientSelectColumn UniqueName="Selected" FilterControlAltText="Filter Selected Column">
        </telerik:GridClientSelectColumn>
          <telerik:GridBoundColumn DataField="Com_ID" Visible="false" />
          <telerik:GridBoundColumn DataField="Com_Name" HeaderText="Company">
          <FilterTemplate>
          <telerik:RadComboBox ID="comNameFilter" EnableLoadOnDemand="true" ShowToggleImage="false"
          EnableAutomaticLoadOnDemand="True" ItemsPerRequest="10" EnableVirtualScrolling="true" DataSourceID="DataSource"
           MarkFirstMatch="true" runat="server" DataTextField="Com_Name" DataValueField="Com_Name">
          </telerik:RadComboBox>
          </FilterTemplate>
          </telerik:GridBoundColumn>
          <telerik:GridBoundColumn DataField="Branch_No" HeaderText="Branch No" />
          <telerik:GridBoundColumn DataField="Branch_Name" HeaderText="Branch Name" />
          <telerik:GridCheckBoxColumn DataField="Is_Reservation_Enabled" HeaderText="Reservation"
            ItemStyle-Width="5%" />
          <telerik:GridCheckBoxColumn DataField="Is_Takeaway_Enabled" HeaderText="Takeaway"
            ItemStyle-Width="5%" />
          <telerik:GridBoundColumn DataField="Last_Update_Date" HeaderText="Last Update On" />
          <telerik:GridTemplateColumn AllowFiltering="false">
            <ItemTemplate>
              <asp:LinkButton ID="lbtnDel" OnClientClick="return confirm('Are you sure?')" runat="server"
                CommandName="Delete">Delete</asp:LinkButton>
            </ItemTemplate>
          </telerik:GridTemplateColumn>
        </Columns>
        <PagerStyle Mode="NextPrevAndNumeric"/>
      </MasterTableView>
      <ClientSettings>
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowDblClick="RowDblClick" />
      </ClientSettings>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="DataSource" connectionString="server=sql2008;database=QuoteNOWDB2;uid=sa;pwd=holiday" runat="server"
    SelectCommand = "select distinct LoginUserCom.Com_Name FROM LoginUserCom INNER JOIN Branch 
                     ON LoginUserCom.Com_ID = Branch.Com_ID where LoginUserCom.Com_Name = @Com_Name order by LoginUserCom.Com_Name"> 
    <SelectParameters>
                <asp:ControlParameter Name="Com_Name" PropertyName="SelectedValue" ControlID="comNameFilter" />
            </SelectParameters>    
    </asp:SqlDataSource>
Richard
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
93 views
I upgraded our ASP.NET AJAX controls from version 2009.3.1314.35 to 2011.1.519.35.  A customer still uses a Windows 2000 machine with IE6 (6.0.2600) installed. They are unable to use our site due to a javascript error:

'Sys.Application' is null or not an object


This does not occur on their machines with Windows XP with IE6, nor does it occur on the site when using the previous version installed (2009.3)

Any direction on what might be causing this would be helpful. 

EDIT: Further investigation shows that the Telerik.Web.UI.WebResource.axd is being loaded BEFORE the ASP.NET AJAX ScriptResource.axd when the page errors.  Why would this happen?
Stephen Wright
Top achievements
Rank 2
 answered on 29 May 2012
2 answers
178 views
Hi,

I have a RadWindow maximized that opens up a SQL Server Reporting Services report on a Sharepoint server.  In IE7 or IE8 (only browsers I have tested) when the browser is in normal state (say with height of 800px) and opens a report that uses the SSRS drill down feature, the maxmized RadWindow will shift up and the top bar of the RadWindow will disappear when the + button is pressed on the report and subsequently expands.  See screenshots for before and after.     If I min/max browser or resize it, the RadWindow will snap back into its proper maximized position.   Below is my RadWindowManager.  Opened with window.radopen
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
      KeepInScreenBounds="True"
                    Behaviors="Close" DestroyOnClose="True" style="z-index: 9000"  
                Title="Open Report"
                InitialBehaviors="Maximize" Height="25px" MinHeight="20px" >
  </telerik:RadWindowManager>


Daniel
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
238 views
Hi Team,

I have RadNumericTextBox on my page with Client-Event OnValueChanged.
I've defined a client-side function to handle the event. Whenever I change value, It fires the event correctly but when try to set the value to textbox using sender.set_value() method it sets the value and fires the event again. Is this the expected behavior for RadNumericTextBox ?
Please note that I display a confirmation message to user which is being displayed twice now, I know we can trick the javascript to display message only once but I dont understand why this event fires twice.
Any clue will be appreciated.

Thanks

Tejas
Tejas
Top achievements
Rank 1
 answered on 29 May 2012
5 answers
204 views
I have implemented an advanced insert/edit form following the demo.  My insert form comes up as expected however my Edit template never comes up.  If I double click on an existing appointment or right click and do edit nothing happens.  I've wired up both OnClientFormCreated and OnFormCreated  I see both called on the insert but not on edit.  Is there anything else I could debug to try and find out why the edit form won't display.


<telerik:RadScheduler ID="radSchedulerMain" Height="100%" runat="server" EnableExactTimeRendering="true" ShowAllDayRow="False" ShowHeader="true" ShowFooter="False"  StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" OverflowBehavior="Expand" EnableDescriptionField="False" WorkDayStartTime="00:00"  WorkDayEndTime="23:59" OnClientFormCreated="schedulerFormCreated2"
              SelectedView="WeekView" ShowFullTime="True" ProviderName="TestSchedulerDataProvider" MinutesPerRow="60" TimeLabelRowSpan="1" onappointmentspopulating="radSchedulerMain_AppointmentsPopulating" OnAppointmentUpdate="radSchedulerMain_AppointmentUpdate" OnAppointmentInsert="radSchedulerMain_AppointmentInsert" OnAppointmentDelete="radSchedulerMain_AppointmentDelete" OnFormCreated="radSchedulerMain_FormCreated" OnNavigationComplete="radSchedulerMain_NavigationComplete"  >
    <AdvancedForm Modal="True"></AdvancedForm>
    <TimelineView UserSelectable="false" />
    <DayView EnableExactTimeRendering="true" />
    <WeekView EnableExactTimeRendering="true"  />
    <MonthView ReadOnly="True" />
    <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>      
    <TimeSlotContextMenus>
        <telerik:RadSchedulerContextMenu ID="schedulerMainTimeSlotContextMenu" runat="server">
            <Items>
                <telerik:RadMenuItem Text="New Schedule Segment" Value="CommandAddAppointment" />                         
            </Items>
        </telerik:RadSchedulerContextMenu>
    </TimeSlotContextMenus>
    <Localization AdvancedEditAppointment="Edit Schedule Segment" AdvancedNewAppointment="New Schedule Segment" />
    <AppointmentTemplate>
        <div>
            <%#Eval("Subject")%> <%#Eval("Description")%>
        </div>
    </AppointmentTemplate>
    <AdvancedEditTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
        />
    </AdvancedEditTemplate>
    <AdvancedInsertTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
        />
    </AdvancedInsertTemplate>
</telerik:RadScheduler>
acola
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
121 views
I'm finally biting the bullet and converting over from the old asp.net controls to asp.net for ajax, and one thing is vexing me.

In the old world, we took advantage of the fact that the title on a radwindow was rendered out verbatim to stick spans and the like into the Title on an as-needed basis from c# code for styling (ie, stylesheets will not work) and in a couple of cases, an onclick javascript function... something like:
if (someCondition)
  Title = "<span style='color:red'>" + blah + "</span>";
else if (someOtherCondition)
  Title = "<span style='color:green' onclick='doSomething();'>" + blah + "</span>";
else
  Title = blah;

In asp.net for ajax, though, it looks like the title is now being rendered after a run through Server.HtmlEncode.

Researching shows that maybe it's related to PITS entry 2541 and this thread : http://www.telerik.com/community/forums/aspnet-ajax/window/html-element-is-rendered-in-page-title.aspx

Am I looking at having to use set_title() in javascript to deal with this, or is there a property I can set on the Window/WindowManager declaration to make the window take the page's title verbatim, without running it through Server.HtmlEncode?
jf820
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
122 views
I am using Resources in the Timeline view to display names of the doctors. When users drag-and-drop the appointments in the Timeline view and lets say move the appointment from Dr. John Doe (DocId: 10) to Dr. Jane Doe (DocId: 11) slot the doctor's ID does not update properly. In the radSchedule1_AppointmentUpdate event I do the following:

Dim docid As Integer = e.ModifiedAppointment.Attributes.Item("DocId")

However, the DocId value always remains the same (10 in this case). What could be wrong? Thanks
Ilya
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
109 views
Hello,

I have an error when I want to export my scheduler to PDF.
There is a XmlException (a screenshot is attached).
The message is :

System.Xml.XmlException: There are multiple root elements

Do you know this issue ?

Peter
Telerik team
 answered on 29 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?