Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
133 views
hi,
i face a problem with rad editor in IE 9.
currently i am using 2011.1.315.40 asp.net ajax version.i put a rad editor in jquery dialog but when i open the dialog i can't  change the content of rad editor and it become a read only.
i also used following syntax:
<meta http-equiv="X-UA-Compatible" content="IE=8" /> but it not work.
i also attached a snapshot.
please give me solution.
thanks in advance
Mahesh
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
63 views
Hi,
I am working on creating custom filtering column for RadGrid, my code is largely based on :
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid

But I would like to have a clear filter button attached to each column, and if the button is clicked it will only clear one column instead of all columns. Here is my overrided function 
protected override void SetupFilterControls(TableCell cell)
{
    base.SetupFilterControls(cell);
    cell.Controls.RemoveAt(0);
    RadComboBox combo = new RadComboBox();
    combo.ID = ("RadComboBox1" + this.UniqueName);
    combo.ShowToggleImage = false;
    //combo.Skin = "Office2007";
    combo.EnableLoadOnDemand = true;
    combo.AutoPostBack = true;
    combo.MarkFirstMatch = true;
    combo.Height = Unit.Pixel(100);
    combo.ItemsRequested += this.list_ItemsRequested;
    combo.SelectedIndexChanged += this.list_SelectedIndexChanged;
    cell.Controls.AddAt(0, combo);
 
    ImageButton button = new ImageButton();
    button.ImageUrl = "~/images/delete.gif";
    button.Click += this.button_Click;
    button.CssClass = "ClearButton";
    cell.Controls.AddAt(1, button);
 
    cell.Controls.RemoveAt(2);
}
What should I do inside button_Click handler?

TIA
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
55 views
Hi, I use the gria as like this example (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx) with an externale Usercontol for Add or Edit record.

My grid have many filters and the grid is not populate in page load but when I press a button for filter.

If I don't click the button I don't see the Grid... but in this scenario if I want insert a new record I must search before, populate the grid and after I can see the "Add New Record" button of the grid,

This is a way for see this button with the grid empty ?

Thanks,
Marco


Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
74 views
We are using VS2010 and ASP.NET 4, and the most recent Telerik RadControls for ASP.NET AJAX (Telerik.Web.UI_2011_2_915).  What I'm trying to sort out is whose "ScriptManager" to use and what the tradeoffs are.


First, of course, there's the asp:ScriptManager, then there's the AJAXControlToolkit:ToolkitScriptManager, and then there's the telerik:RadScriptManager.

Our website has evolved over time, with different developers implementing things, well, differently, and as a result we have examples of pages and usercontrols referencing each one of those.  I'd like to move the markup for the ScriptManager into our MasterPage.   Can you provide any guidance on what should be done here?  Why would we choose the RadScriptManager over the asp:ScriptManager?  Is there a downside?

We are moving more and more towards telerik-based grids and a few of the other controls, and I'm trying to move away from the AJAXControlToolkit altogether.  We are also looking to go towards the use of more jQuery, but it looks like telerik has its own version of that too.

But I find the Telerik online and installed documentation to be "mixed" bag of references.  And it's not clear to me what path we should take.   Any details you can provide would be greatly appreciated.

Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
129 views
Hi,

I want to Response.Redirect to another page when the user clicks the button and exports the list to excel. However, the user right now is sent to the other page before the exporting is completed and the list is never exported. So is there a way if I can check if my exporting is done and then transfer the user? There is an internal method IsExporting which could be useful, but there is no way to use this method? Anyone have any ideas?

I am using 2009 Q2 tools. 
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
99 views
Hi:
I have a chart with one of the axis is a numeric month, i.e. Jan 2009 = 2009*12+1, but I also have a column with a string alias (MonthName).  I would like to display the string, instead of the number.
Thanks,
Phil
Phil
Top achievements
Rank 2
 answered on 31 Oct 2011
1 answer
65 views

Hi everyone,

 

I have an issue regarding column editors. This is the scenario:

I have a radgrid with 3 columns. Two of them are GridDateTimeColumns, the other is a GridNumericColumn.

In edit mode (using“PopUp”) I select both dates. As soon as I select the second date I want to calculate the difference between these two dates and place the result (in years) into the NumericColumn. But I do not want to do this in the server side (SelectedDateChanged event). Instead, I want to perform this functionality in the client side in order to make it more “Dynamic” to the user.

I understand I have to program this within the ItemCreated event and include a javascript function in my aspx.

My problem is that I have not been able to find an attribute that I can add to the second GridDateTimeColumnEditor in order to fire an event as soon as I select the date from the calendar.

This is what I have so far but does not work as I expected: (the Onclick or Onblur events force me to place focus on the dateinput of the second datepicker in order to fire the calculation. I want this to happen as soon as I select the date.)

C#:

protected void RgridSigPoros_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && (e.Item.IsInEditMode))
    {
        GridEditableItem item = e.Item as GridEditableItem;
  
        GridDateTimeColumnEditor editorFechaFuga = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("FechaFuga");
        GridDateTimeColumnEditor editorFechaFabrica = (GridDateTimeColumnEditor)item.EditManager.GetColumnEditor("FechaFabrica");     
        GridNumericColumnEditor editorTiempoUso = (GridNumericColumnEditor)item.EditManager.GetColumnEditor("TiempoUso");
          
        editorFechaFabrica.PickerControl..Attributes.Add("onfocus", "return CalculateDiffDate('" + editorFechaFuga.PickerControl.ClientID + "','" + editorFechaFabrica.PickerControl.ClientID + "','" + editorTiempoUso.NumericTextBox.ClientID + "')");
        editorTiempoUso.NumericTextBox.Enabled = false;
    }
}

javascript
function CalculateDiffDate(DPoroID, DFabricaID, CTotalID)
{      
    var DatePoro = $find(DPoroID).get_selectedDate(); 
    var DateFabrica = $find(DFabricaID).get_selectedDate();  
    var TiempoUso = $find(CTotalID);   
        
    //Set 1 day in milliseconds  
    var one_day=1000 * 60 * 60 * 24 ;
    //Calculate difference btw the two dates, and convert to years
    var total = Math.ceil((DatePoro.getTime()-DateFabrica.getTime())/(one_day))/365;
  
    TiempoUso.set_value(total);
}

I hope my question is clear enough and looking forward to hearing from you guys real soon.

Thanks in advance,

Miguel
Pavlina
Telerik team
 answered on 31 Oct 2011
0 answers
123 views
I installed the trial of RadEditor for SharePoint 2010 on a publishing site. At least, I think I have--used the following 2 installers:
  • Telerik.Web.UI_2011_2_712_Trial
  • Telerik_AJAX_Controls_For_Sharepoint2010_2011_2_712_Trial

When editing a publishing page, I expected that the RadEditor would be available within the Page Content rich-text field. However, only the default SharePoint ribbon is available.

"Use RadEditor to edit HTML fields" is enabled on the Manage Site Features screen and I am able to use the RadEditor web part within a web part zone.

Are there any installation steps that I overlooked? Are there detailed installation and configuration instructions available?

Edit: I just found http://www.telerik.com/help/aspnet-ajax/moss-sp2010-using-radeditor-in-web-content-management-scenario.html -- after registering the assembly and adding the control to the page layout, they RadEditor appears as expected.
Chris
Top achievements
Rank 1
 asked on 31 Oct 2011
2 answers
113 views
Hi,

I need to localize my Rad ListBox for 3 languages. It's all good except to tooltips for buttons. I found this article that explains how tooltips can be set in JavaScript but I need to use resource files for that.

So my ListBox controls looks like this:

 <table style="vertical-aligntop;">
                                        <tr>
                                            <td style="vertical-aligntop;">
                                                <label> 
                                                    <asp:Literal ID="Literal1" runat="server" meta:resourceKey="RadPanelLeftLabel" />
                                                </label>                                                    
                                                    <br />
                                                <telerik:RadListBox runat="server" ID="RadListBoxSource" Height="200px" Width="200px"
                                                   AllowTransfer="true" TransferToID="RadListBoxDestination"  
                                                    TransferMode="Copy" AllowReorder="false" SelectionMode="Multiple" 
                                                    EnableDragAndDrop="true"  ButtonSettings-TransferButtons="TransferFrom,TransferAllFrom"
                                                    OnClientTransferred="ShowHideValidationMessage" 
                                                    AutoPostBackOnTransfer="true" OnTransferred="SortDestinationListBox" />                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                            </td>
                                            <td style="vertical-aligntop;">
                                                <label>
                                                 <asp:Literal ID="Literal2" runat="server" meta:resourceKey="RadPanelRightLabel" />
                                                    </label>
                                                    <br />
                                                <telerik:RadListBox runat="server" 
                                                ID="RadListBoxDestination" Height="200px" Width="200px"
                                                AllowReorder="false" AllowDelete="true" />     
                                                                                                                                                                                      
                                                <asp:Label ID="lblRadListBoxDestinationEmpty" 
                                                runat="server" Font-Bold="true" ForeColor="Red" 
                                                meta:resourceKey="lblRadListBoxDestinationEmpty"
                                                Visible="false"/>
 
                                            </td>
                                        </tr>
                                    </table>


Can you please show me how I can localize tooltips for transfer buttons with resource files much like I did for say titles above listboxes.

Thanks!

brian
Top achievements
Rank 1
 answered on 31 Oct 2011
1 answer
71 views
Hello Team,
I have added a RadScheduler and a RadToolTipManager to a page. The RadScheduler OverflowBehavior="Expand" and Width="100%" to create that effect in the scheduler. When mouse over one of the appointment of the top of the scheduler the RadToolTipManager shows the tooltip over the appointment but when it's in one of the bottom the page is scrolled up and then I have to scroll it down in order to see the tooltip. Is there any solution to avoid the page scrolls up when mouse over an appointment in the bottom of the scheduler?.

<

 

 

asp:UpdatePanel runat="server" ID="EventUpdatePanel" UpdateMode="Conditional">

 

 

 

<ContentTemplate>

 

 

 

    <telerik:RadScheduler ID="EventScheduler" runat="server" 
                        OverflowBehavior="Expand" 
                        width="100%"         
                        Skin
="Web20" 
                        
ReadOnly="true" 
                        DataKeyField="EventId" 
                        EnableEmbeddedSkins="false" 
                        DataSubjectField="Subject" 
                        DataStartField="StartTime" 
                        DataEndField="EndTime" 
                        DataDescriptionField="Description" 
                        TimelineView-UserSelectable="false" 
                        ShowAllDayRow="true" 
                        ShowFullTime="false" 
                        FirstDayOfWeek="Monday" 
                        LastDayOfWeek="Friday" 
                        SelectedView="MonthView" 
                        MonthView-VisibleAppointmentsPerDay="4" 
                        RowHeight="30px" 
                        OnAppointmentCommand="EventScheduler_AppointmentCommand">

 

 

 

        <AppointmentTemplate>

 

 

 

          <div>

 

            <%

 

#Eval("Subject") %>

 

 

 

            <br />

 

 

 

          </div>

 

 

 

        </AppointmentTemplate>

 

 

 

    </telerik:RadScheduler>

 

 

 

    <telerik:RadToolTipManager runat="server" ID="EventToolTipManager" 
        
Width="320" Height="210"

 

 

 

        Animation="Fade" 
        HideEvent="LeaveToolTip" 
        Text="Loading..." 
        RelativeTo="Element" 
        Position="TopLeft"

 

 

 

        OnClientBeforeShow="clientBeforeShow" 
        EnableShadow="true" 
        OnAjaxUpdate="EventToolTipManager_AjaxUpdate" />

 

 

 

</ContentTemplate>

 

</

 

 

asp:UpdatePanel>

 



Regards,

Juan
Peter
Telerik team
 answered on 31 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?