Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
134 views

Has anyone been able to get the Editor working well in MVC-2? Was it worth the effort?

I have a fairly complex applicational use for the editor, involving Rich Text, Images, Multimedia content, etc., but the Web site is written on MVC-2.
 
This would be a new customer for Telerik. I just need to show them that it wouldn't be any worse than using CKEditor, and can be a better solution.
Fred Chateau
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
154 views
Greetings,

XHTML Strict does not allow the "target" attribute inside of an anchor. Instead, I have used rel="external" combined with some javascript when trying to open links in a new window. I would like to modify the default link manager to do this. So, instead of being able to select a "target" in the link manager, I would like to choose a value for "rel".

I was able to successfully customize the link manager by route of the ExternalDialogsPath property in the radEditor so that the drop down menu values are correct. However, I am unable to figure out how to override the callback function when the anchor is pasted back into the editor. When inserting an anchor into the radEditor, I would like to change the default of "target":
var myCallbackFunction = function(sender, args) {  
      editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)); 
      //---------------------------------------------^ 
} 
 
to "rel":
var myCallbackFunction = function(sender, args) {  
      editor.pasteHtml(String.format("<a href={0} rel='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name)); 
      //-------------------------------------------^ 
} 

I am sure I am overlooking something simple but cannot find a solution online.

Thank you in advance for any help.
Darren
Darren
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
324 views

Consider the following definition for a column of a RadGrid:

 

<

 

 

telerik:GridDateTimeColumn DataField="p.AmendEffDate" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" HeaderStyle-Width="100px" FooterStyle-Width="100px" ItemStyle-Width="100px" HeaderText="Amend Date" SortExpression="p.AmendEffDate" UniqueName="AmendEffDate" PickerType="DatePicker" ></telerik:GridDateTimeColumn>

 

 



It works wonderfully except that when in edit mode, the editing cell size overlaps other cells. Like the cell wants to be larger but since it is only 100px, it just overlaps the neighboring cell. There is no EditStyle-Width property or anything. I'm pretty sure it is doing this because the cell wants to include the Time in the data. However, in this case, there is no time data. How do I resolve this issue? I need the cell to be 100px. No larger.
Matt Campbell
Top achievements
Rank 1
 answered on 20 Apr 2010
6 answers
290 views
Hello
I'm using for first time RadGrid with ObjectDataSource. I have read docs and seen samples but nothing that can help my issue. While SelectMethod is fired, UpdateMethod  is never fired. Also Updating event of ObjectDataSource and UpdateCommand of RagGrid are not fired. Simply it does not works. The same behaviour for InsertMethod.

Does anyone can suggest me a solution?
This is the code I used:

<asp:ObjectDataSource ID="objDataSourceGridSAL" runat="server" TypeName="xxx.ElencoTipologieInformazioni.Lavori_SAL_Controller"
                                        DataObjectTypeName="xxx.ElencoTipologieInformazioni.Lavori_SAL_Info"
                                        SelectMethod="FB_GetLavoriSAL" UpdateMethod="FB_UpdateLavoriSAL" OldValuesParameterFormatString="original_{0}">
                                        <SelectParameters>
                                            <asp:Parameter Name="pintCodOpera" Type="Int32" />
                                            <asp:Parameter Name="pintCodLavoro" Type="Int32" />
                                        </SelectParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="CodOpera" Type="Int32" />
                                            <asp:Parameter Name="CodLavoro" Type="Int32" />
                                            <asp:Parameter Name="Codice" Type="Int32" />
                                            <asp:Parameter Name="Percentuale" Type="Int32" />
                                            <asp:Parameter Name="DataRilevamento" Type="DateTime" />
                                            <asp:Parameter Name="Note" Type="String"  />
                                            <asp:Parameter Name="NoteTestoSemplice" Type="String" />
                                        </UpdateParameters>
                                    </asp:ObjectDataSource>
                                    <telerik:RadGrid runat="server" ID="RadGridSchedaLavori_SAL" DataSourceID="objDataSourceGridSAL"
                                        ShowFooter="True" AllowPaging="True" AllowFilteringByColumn="True"
                                        AutoGenerateColumns="False" AutoGenerateEditColumn="false" Skin="Office2007"
                                        GridLines="None" ShowGroupPanel="true" >
                                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                        <MasterTableView  DataSourceID="objDataSourceGridSAL" TableLayout="Fixed" ShowGroupFooter="true" GroupsDefaultExpanded="true"
                                            AllowSorting="true" CommandItemDisplay="Bottom" OverrideDataSourceControlSorting="true"
                                            DataKeyNames="CodOpera,CodLavoro,Codice" PageSize="3" AllowAutomaticUpdates="true">
                                            <NoRecordsTemplate>Nessun record presente!</NoRecordsTemplate>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="CodOpera" Visible="false" DataType="System.Int32"
                                                    UniqueName="CodOpera" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CodLavoro" Visible="false" DataType="System.Int32"
                                                    UniqueName="CodLavoro" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Codice" Visible="false" DataType="System.Int32"
                                                    UniqueName="Codice" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Percentuale" Visible="true" DataType="System.Int32" HeaderText="Percentuale"
                                                    UniqueName="Percentuale" ReadOnly="true">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridDateTimeColumn DataField="DataRilevamento" HeaderStyle-Width="40" HeaderText="Data Rilevamento"
                                                     DataType="System.DateTime" UniqueName="DataRilevamento" DataFormatString="{0:dd/MM/yyyy}">
                                                </telerik:GridDateTimeColumn>
                                                 <telerik:GridBoundColumn DataField="Note" Visible="true" DataType="System.String" HeaderText="Note"
                                                    UniqueName="Note" ReadOnly="false">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="NoteTestoSemplice" Visible="true" DataType="System.String" HeaderText="Note testo semlice"
                                                    UniqueName="NoteTestoSemplice" ReadOnly="false">
                                                </telerik:GridBoundColumn>
                                                
                                                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
                                            </Columns>
                                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" />
                                            <PagerStyle />
                                        </MasterTableView>
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="true" />
                                        </ClientSettings>
                                        <GroupingSettings ShowUnGroupButton="false" CaseSensitive="false" />
                                        <SortingSettings EnableSkinSortStyles="true" />
                                    </telerik:RadGrid>
 
Thank you
Avinash Thakur
Top achievements
Rank 1
 answered on 20 Apr 2010
1 answer
67 views
Hi,

I encounter the following problem for pages with a grid with data and at least one grouping row:

When the grid DO NOT have the focus and the user do a carrige return
  • the grid intersept the event and collapse (or expend) the first grouping row.
  • the keyboard event is consumed: (that is no more available for other controls)

How could I disable this behavior?

Thanks in advance.

Florian
Tsvetoslav
Telerik team
 answered on 20 Apr 2010
2 answers
120 views
I have a grid that I'm populating with the contents of datasource1. Because the select statement for datasource1 changes, I never know what columns I'm going to be getting when the grid is populated with data when the page loads. One unfortunate result of this is that the columns don't get named.

How would I go about assigning names to the columns? All I need to do is give the columns in the grid the same name as the columns in the select statement.

Thank you!

Bryan
bdrennen
Top achievements
Rank 1
 answered on 20 Apr 2010
5 answers
307 views
Hello all, first I am sorry if that question has already been asked and answered. If this is the case I would be grateful if someone can point me to the answer. Due to my work slow connection it take more then 2 minutes to get a page loaded and searching through is not an option at the moment.

Here is my problem, I have two radDateTimePicker, one for Starting Date and one for Ending Date. I have set the DateInput format as follow.

<telerik:RadDateTimePicker ID="rdtp_StartingDate" runat="server">                                                  
    <DateInput DateFormat="dd/MM/yyyy hh:mm tt" DisplayDateFormat="dd/MM/yyyy hh:mm tt" runat="server"></DateInput> 
    <Calendar DayCellToolTipFormat="dd/MM/yyyy" runat="server"></Calendar> 
</telerik:RadDateTimePicker> 
 

The culture of the two calendars is set from the codebehind, since the application I'm supporting, support two language.

When I retrieve the values from the database, the date input format is displayed correctly. When I click on the Calendar image to get the Calendar popup, I mouse over the dates and the tooltip is fine to. The problem arise when I click on a date, if the day I select is smaller then 12 it switch the format to default. i.e. selecting first of june will display "06/01/2009 12:00 AM" instead of "01/06/2009 12:00 AM" if I pick 21st of june it will display "21/06/2009 12:00 AM" which is the correct format.

Thank you in advance.
Martin
Telerik team
 answered on 20 Apr 2010
2 answers
181 views
I have a grid that has 2 labels in the CommandItemTemplate. I also have a RadWindow that I use for a user to set the upper and lower limit values to use on a couple of columns in the grid. When the RadWindow closes I want to take teh values from that window and update the text int he CommandItemTemplate.
My values are returning from the RadWindow correctly and they are being put into 2 variables - lowerLimit and upperLimit.
The label fields on the CommandItemTemplate are:

<

 

asp:Label ID="lblLLimit" runat="server" Text="= over 85%"></asp:Label>

 

<

 

asp:Label ID="lblULimit" runat="server" Text="= over 100%"></asp:Label>

 

How can I update the labels text to display the values returned from the RadWindow programatically?
Thank you very much for your help.
Chris

 

 

 

 

Chris LaFrancis
Top achievements
Rank 1
 answered on 20 Apr 2010
1 answer
102 views
I want to show other team mate my project but when try to open it on other system it give message error creating the controls.
Do i have to install telerik controls on there system also and also on the web hosting site too, please help me.
T. Tsonev
Telerik team
 answered on 20 Apr 2010
1 answer
144 views
Hi there,

I am dynamically loading the treenodes of RadTreeView from Xml.
I am able to succcessfully load them if its not a postback.
But, my issue is, since I am loading the treeview inside a usercontrol, OnNodeClick it is calling the page_load of Aspx and then comes back to the treeview usercontrol.

Instead, I want to avoid calling aspx page_load on nodeclick inside this usercontrol. Is there any way, I can handle this node_click event inside usercontrol itself?

Note: I am making use of RadAjaxmanager and updatedcontrol for treeview which is not refreshing the page though but still calling aspx page_load.

Thanks
T. Tsonev
Telerik team
 answered on 20 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?