Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
213 views
We are trying to figure out a way to implement the RadEditor so that the CSS classes defined in the html content of the editor render correctly when in the Design View.

For example, we create our RadEditor as follows

 
        <div class="content"
            <telerik:RadEditor ID="RadEditor1" ToolsFile="~/RadControlsXML/Editor/ToolsFile.xml" runat="server" Width="665px" AllowScripts="true"
              <DocumentManager DeletePaths="/AssetsClient/Documents/" UploadPaths="/AssetsClient/Documents/" ViewPaths="/AssetsClient/Documents/" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.ppt" MaxUploadFileSize="2147483647" /> 
              <ImageManager DeletePaths="/AssetsClient/Images/" UploadPaths="/AssetsClient/Images/" ViewPaths="/AssetsClient/Images/" /> 
            </telerik:RadEditor> 
        </div> 

In the CSS file that defines the site's layout, here are some samples of styles we have defined:

div#content h1            { font-weight:lighter;text-transform:uppercase;font-weight:bold;clear:both;color:#fff;font-size:2.3em;letter-spacing:-1px;} 
div#content h1.OneInTitle { background:url(/Assets/Img/BG/OneInTitle.gif) 0 0 no-repeat;float:left;height:69px;line-height:64px;padding-left:1.6em;margin:0 0 1em -20px;width:709px;} 
div#content h2            { color:#000;font-weight:lighter;font-size:22px;clear:both;letter-spacing:-2px;line-height:1.8em;margin:1em 0;text-transform:uppercase;border-bottom:1px solid #cb0406;}

Finally, here is is a sample of the content HTML within the editor:

<h1 class="OneInTitle">Meet Our Team</h1> 
<h2>Welcome to Our Site!</h2> 

While in design mode, we are expecting these styles to be applied, but they are not.  If we place the HTML content in a label wrapped by a <div id="content"></div> on the exact same page, the styles are applied correctly, so we know its not an issue with our stylesheets or links.  How can we get the design view to render the styles as expected?  Is there another method we have to take to get this to work?


Rumen
Telerik team
 answered on 12 Mar 2010
6 answers
198 views
If I only use the DateView to selected a date (eg. 19 Nov 2008), the textbox will display 19/11/2008 00:00 in which the time will be default 00:00 if I haven't specific it, how can I set this default value to a specific time.(eg. 23:59)
Sebastian
Telerik team
 answered on 12 Mar 2010
1 answer
42 views
I used the upgrade wizard to go to Q1 2010, but it didn't change the files for RadEditor in the App_GlobalResources directory.  Is it supposed to?
Andrey
Telerik team
 answered on 12 Mar 2010
1 answer
212 views
Hi,

I have 2 RadDatePicker controls in Sharepoint application Page within a RadTab, what happens is that when i set the DatePopupButton visible=false the alignment of one of the RadDatePicker changes while the other RadDatePicker is fine. Ideally i dont want to show the DatePopupButton for both and use the onclick client event to show the calendar in IE.

This behaviour is only in IE, in firefox its fine.

I am using Telerik.Web.UI (2009.3.1314.35)

Please do check out the attachments for a clearer view of the problem.

Please advice how to resolve.

Thanks
Dimo
Telerik team
 answered on 12 Mar 2010
1 answer
82 views
I have a quick question. I have a column whose text is coming from my objects Item property like:  myObject.Item("corn_acres")

Is there a way to use that for the sort expression of my column, something like Item("corn_acres"). Is there any way to have the grid sort that column so i do not have to sort the collection myself?

thanks!
Veli
Telerik team
 answered on 12 Mar 2010
4 answers
391 views
I have a radCombobox inside the itemTemplate of RadGrid. I want to bind the radcombobox in the CodeBehind . so I tried using the following Code

Protected

 

Sub RadGrid1_EditCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.EditCommand

 

If e.Item.ItemType = GridItemType.AlternatingItem Or e.Item.ItemType = GridItemType.Item Then  

 

Dim item As Telerik.Web.UI.GridDataItem

item = e.Item

 

Dim radCombo As RadComboBox

radCombo = item(

"DropdownColumn").FindControl("radCombo")

 

 

 

radCombo.DataSource = objDetailDal.GetAccSAPDetails(objDetailInfo).Tables(0)

radCombo.DataBind()

End If  

 

End Sub 

 

telerik:GridTemplateColumn HeaderText="Sap material Item " UniqueName="DropdownColumn" >

 

<ItemTemplate>

 

<asp:Label ID="lblItemNo" Width="150px" runat="server" CssClass="label" Text='<%# DataBinder.Eval (Container.DataItem, "ITEM") %>'></asp:Label  

 

 

</ItemTemplate>

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="radCombo" runat ="server" />
</EditItemTemplate>

 

 

 

 

 

 

</telerik:GridTemplateColumn>
But the Find Control method returns null values.

Kindly help me

 

 

 

 

 

 

Saravanan
Top achievements
Rank 1
 answered on 12 Mar 2010
1 answer
135 views
adAjaxManager/RadAjaxManagerProxy refreshing the whole page for first click of any control attached with it and not showing odingPanel. from second click onwards it's behavior is normal as it is refreshing the content under updatedControls also showing the LoadingPanel. I am using Telerik.Web.UI(2009.2.826.20)

I have gone throough all the examples given for RadAjaxManager/RadAjaxManagerProxy and applied everything in my project.

Please tell me if I am missing anything. my code is as follows...

In First Attempt
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="ddlOrganization">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="ddlTaskList">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="btnSearch">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" LoadingPanelID="ralPanel" />
                                    <%--<telerik:AjaxUpdatedControl ControlID="lblNoRecords" LoadingPanelID="ralPanel" />--%>
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="btnClear">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="searchFeilds" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>

In Second Attempt
ASPX

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="ddlOrganization">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="ddlTaskList">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="btnSearch">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid3" LoadingPanelID="ralPanel" />
                                    <%--<telerik:AjaxUpdatedControl ControlID="lblNoRecords" LoadingPanelID="ralPanel" />--%>
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="btnClear">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="searchFeilds" LoadingPanelID="ralPanel" />
                                    <telerik:AjaxUpdatedControl ControlID="errCtrl" LoadingPanelID="ralPanel" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
.CS
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
        {
            if (e.Argument == "Refresh")
            {
                BtnSearch_Click(sender, e);
            }
        }

Regards,
Nishant Sagar
Veli
Telerik team
 answered on 12 Mar 2010
1 answer
73 views
Hi everyone

How can I create a RadGrid with years on the y axis and months on the x-axis that shows the sales per month per year and sum them up, like on the attached screenshot?

From my datasource I get the year, month, and value columns.

Kind regards
Claus Pedersen
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2010
1 answer
55 views
Hi,

I am trialing RadScheduler for a potential client.

We are using WebService bindings for speed, and groupings for the layout, so WeekView, Monthview and Timeline all fail to work properly. One obvious question, is when is Date,Resource grouping likely to be working in WeekView, Monthview and Timeline Views?

For now, My Client has asked if we can reorganise the Day view so that the time axis is horizontal, and the resource grouping is vertical - i.e. a full transpose of what is seen when the resource grouping is horizontal.

Does anybody know if this is possible?

Mark
T. Tsonev
Telerik team
 answered on 12 Mar 2010
4 answers
157 views
Hi there,

I have the following a RadGrid bound to a Java script array. I am trying to subscribe to the RowCreated event using the add_rowCreated() method of the grid. Unfortunately the handler doesn't seem to be called at all although rows get created. Is it an intended behavior or a bug? And does it have anything to do with rows not being applied item styles as they are defined in the markup?

Thank you in advance,
Valery.
Rosen
Telerik team
 answered on 12 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?