Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
85 views
Hi there,

We are using the RadEditorProvider in our DNN site, and in the RadEditor's config file, we have the ContentFilters property set to "None". When in the editor, it still seems to be changing text while toggling between HTML and design views. The text it is changing is "<!-->", it is changing it to "<!---->". Any ideas on how to absolutely stop changing any text between views? We are using the RadEditorProvider version 4.9.1 and DNN 4.9.4. The version of the Telerik.Web.UI file is 2009.3.1103.20. Any assistance would be so greatly appreciated!

Regards,

Marco
Marco
Top achievements
Rank 1
 answered on 15 Feb 2011
2 answers
115 views
I have not been able to get the right search to answer this question.  Quite simply I want the imageurl to display on the right not the left.   The formatting looks messy because the image url comes and goes misaligning the text.

I have tried to implement the ItemTemplate   but cannot get a sample that binds to RadCombo  which is loaded dynamically creating combo items on the fly with search criteria.

protected void ddl_ItemsLoad(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            const int ItemsPerRequest = 40;...

I load up the items like this...   I also apply a search criteria on result to subset my response back.

                RadComboBoxItem item = new RadComboBoxItem(name, row["ID"].ToString());
                if (Manufacturer)
                    item.ImageUrl = "~/images/Manufacturer.png";
                result.Add(item);

I just cannot get the right magic to show the layout the way I want.   It works perfectly showing the image on the left, not where I want it.
Ken
Top achievements
Rank 1
 answered on 15 Feb 2011
0 answers
91 views
I have a tree view on my screen
<telerik:RadTreeView ID="RadTreeView1" runat="server" >
             <DataBindings>
              <telerik:RadTreeNodeBinding Depth="0" Expanded="true" />
          </DataBindings>
</telerik:RadTreeView

And I am adding the data from the code behind

var nData = from p in db.PeforrmanceDatas
        where p.PerformanceGroup.FundFamilyID == Int32.Parse(Request.QueryString["ffid"])
                        select new
                        {                            
                            p.PerformanceGroup.PerformanceGroupName,
                            p.Class,
                            p.ClassID
                        };
  
            RadTreeView1.DataTextField = "Class";
            RadTreeView1.DataFieldID="ClassID";
            RadTreeView1.DataFieldParentID = "PerformanceGroupName";
            RadTreeView1.DataSource = nData;
            RadTreeView1.DataBind();


If I do not include the DataFieldParentID it will load a single level tree but when I add the hierarchy it will not load the treeview.
Eric Klein
Top achievements
Rank 1
 asked on 15 Feb 2011
6 answers
139 views
Hello!

I have a radgrid, which has a user control as edit form. On the grid page i have a radajaxmanager.
In the user control i would like to use javascript functions (button->onclientclick). Therefor i have a radscriptblock.
The javascript in the user control causes an error because of the radajaxmanager (The javascript function has only an alert for testing). If i remove the radajaxmanager, everything works fine.
If searched a lot in the forum and testet  a view things without success.
Please can someone help me out of this problem?
Thank you!
Travis
Top achievements
Rank 1
 answered on 15 Feb 2011
2 answers
121 views
I'm trying to populate a dropdownlis using the selectedindexchanged event of another dropdownlist. the ddl i'm trying to put data in is enclosed in a radgrid. how to do i access the ddl to bind data to it programmatically? i'm attaching my code below, but

DropDownList channels = (DropDownList)RadGrid1.MasterTableView.FindControl("ddlChannels");

is the line of code causing my problem.

any help would be appreciated. thanks.

    <telerik:RadGrid id="RadGrid1" runat="server"
        AllowSorting="True" DataSourceID="SqlDataSource1"
        GridLines="None" AutoGenerateColumns="False" AllowPaging="True"
        PageSize="20" OnItemDeleted="RadGrid1_ItemDeleted" OnItemCreated="RadGrid1_ItemCreated" OnNeedDataSource="RadGrid1_NeedDataSource"
        OnItemInserted="RadGrid1_ItemInserted" OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemUpdated="RadGrid1_ItemUpdated">
<MasterTableView datakeynames="ChannelId,FmisServerId,PriorityId,StatusLevelId" CommandItemDisplay="TopandBottom" datasourceid="SqlDataSource1">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column">
        </telerik:GridEditCommandColumn>
        <telerik:GridBoundColumn DataField="IpAddress"
            FilterControlAltText="Filter IpAddress column" HeaderText="FMIS Server"
            SortExpression="IpAddress" UniqueName="IpAddress">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ChannelSubId"
            FilterControlAltText="Filter ChannelSubId column" HeaderText="Channel ID"
            SortExpression="ChannelSubId" UniqueName="ChannelSubId" DataType="System.Int32">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings EditFormType="Template">
    <FormTemplate>
        <table border="0" cellpadding="1" cellspacing="2" width="100%" rules="none" style="border-collapse: collapse; background: white;" id="table1">
            <tr>
                <td>FMIS Server:</td>
                <td>
                    <asp:DropDownList ID="ddlFmisServer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFmisServer_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Channel ID:</td>
                <td>
                    <asp:DropDownList ID="ddlChannels" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </formtemplate>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:MgmtServerConnectionString %>"
         
        SelectCommand="SELECT Channel.ChannelId, Channel.IsActive, Channel.IsAvailable, Channel.Timeout, Channel.ChannelSubId, FmisServer.IpAddress, Priority.Description, StatusLevels.StatusLevel, FmisServer.FmisServerId, StatusLevels.StatusLevelId, Priority.PriorityId FROM Channel INNER JOIN FmisServer ON Channel.FmisServerId = FmisServer.FmisServerId INNER JOIN Priority ON Channel.PriorityId = Priority.PriorityId INNER JOIN StatusLevels ON Channel.StatusLevelId = StatusLevels.StatusLevelId ORDER BY FmisServer.IpAddress, Channel.ChannelSubId">
    </asp:SqlDataSource>
protected void ddlFmisServer_SelectedIndexChanged(object source, EventArgs e)
{
 
    DropDownList fmisServers = (DropDownList)source;
 
    if (fmisServers != null)
    {
        int intIndex = fmisServers.SelectedIndex;
 
        try
        {
            // call a method that returns all channel ids and sub ids as a dataset
            DataSet dsChannelSubIds = new DataSet();
            string strErrorText = string.Empty;
            MgmtServerAdmin.App_Code.AdminLibrary.GetAllChannelsbyFmisServer(intIndex, out dsChannelSubIds, out strErrorText);
 
            DropDownList channels = (DropDownList)RadGrid1.MasterTableView.FindControl("ddlChannels");
 
            // clear list to guard against duplicate entries
            channels.Items.Clear();
 
            // bind new DropDownList to the dataset
            channels.DataSource = dsChannelSubIds;
            channels.DataTextField = "ChannelSubId";
            channels.DataValueField = "ChannelId";
            channels.DataBind();
 
        }
        catch (Exception ex)
        {
            //SaveErrorTrackingOnTable(MgmtServerLib.Library_ValidateRequestError_Error, ex.Message);
            throw ex;
        }
    }
}
areen
Top achievements
Rank 1
 answered on 15 Feb 2011
2 answers
61 views
I have a radgrid control using the vista skin. It has Scrolling enabled but it has some gray space or extra padding under the header before the first row. I also turned on filtering put the padding is still there under the filter section. Any thoughts on what causes this?

Robert Verderber
Top achievements
Rank 2
 answered on 15 Feb 2011
6 answers
706 views
Hello!

I have again, a problem with the RadListView Control. This time, it looks pretty simple but i don't understand why id doesn't work.
So, to be short this is the problem:

I have a Radlistview, and in the ItemTemplate, i have all sort of things, labels, updatePanels, tables, etc. The RadListView works fine, but when i try to acces ANY element inside using
Dim Label1 as New Label = DirectCast(RadListView1.FindControl("LabelID_Here"), Label)
I get Label as Nothing, or any other elements for that matter.  Trust me i have tried different ways to access the controls but none succeeded(I also tried TryCast, and other methods suggested on the web).
The problem is that i try to update a panel wich is inside the RadListView, and i can't find it. From what i have seen the FindControl Method only works on RadListView related events such as ItemDataBound, preRender and so on. The problem is that i need the panel to update every 10 seconds or so, so this is unacceptable. 

What is the solution to accessing different controls inside the RadListView ?

Thank you,

and hope for a quick reply,

Tudorel.
Diptesh
Top achievements
Rank 1
 answered on 15 Feb 2011
5 answers
202 views
I posted this in an older thread but wanted to start a new one so I can mark as answer and talk about the version etc.

I am using the rotator in IE 8.0.7600, Chrome 4.1.249, FireFox 3.5.7.

Not doing anything odd, using Visual Studio 2008 and my rotator is in a MasterPage.

Here is the rotator:
            <telerik:RadRotator     
                ID="RadRotator1"     
                runat="server"   
                DataSourceID="xmlDataSource1" RotatorType="SlideShow" ScrollDuration="1000"   
                Width="700px" ItemWidth="700px" ItemHeight="168px" Height="168px">    
                <SlideShowAnimation Duration="3000" Type="CrossFade" />   
                <ItemTemplate>   
                   <img src="\\lancpa-iis1\Images\rotator\<%# XPath("Image") %>" alt="RFIImage"/>     
                </ItemTemplate>   
            </telerik:RadRotator>   
            <asp:XmlDataSource ID="xmlDataSource1"     
                XPath=""   
                runat="server"     
                DataFile="RotatorImages.xml">    
            </asp:XmlDataSource>    
 

Would like to get this fixed as soon as possible.  I know my FireFox and Chrome are a little outdated so going to run those updates to see if anything changes but I figured it would work in older versions anyways.

Thank You,

Coty
Tsvetie
Telerik team
 answered on 15 Feb 2011
2 answers
228 views
Hi,

I have a case where I don't know which columns that should be generated for a grid until I am in NeedDataSource.
Then I tried to add the columns in that event. I would really like to use the built in EnableColumnViewState since that simplifies a lot, but the problem is that some (most?) properties are lost on postback, for example the HeaderText of the column in the following sample:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication4.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <script runat="server">
        Sub rg_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rg.NeedDataSource
            rg.Columns.Clear()
            Dim col As New Telerik.Web.UI.GridBoundColumn()
            col.DataField = "Col2"
            col.HeaderText = "My header text"
            rg.Columns.Add(col)
             
            Dim dt As New System.Data.DataTable()
            dt.Columns.Add("Col1", GetType(String))
            dt.Columns.Add("Col2", GetType(String))
            For i As Integer = 0 To 10
                dt.Rows.Add({"Row" & i, "Data"})
            Next
            rg.DataSource = dt
        End Sub
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="false">
        </telerik:RadGrid>
        <asp:Button ID="aaa" runat="server" Text="Postback" />
    </div>
    </form>
</body>
</html>

From what I can see in your source code it should work, but it doesn't, or am I missing something?

Regards
Caesar
Caesar
Top achievements
Rank 1
 answered on 15 Feb 2011
1 answer
156 views
Hi, I've searched for the validation term and i'm finding nothing in the results. Is the slider css valid? I'm using a default skin and it will not validate using the w3c validation page, I'm xhtml valid but would like to add the css validation.

This is a Sitefinity based site that I've just uploaded a couple of weeks back, although I do also have the Premium collection independently, the url if a Telerik member of staff would like to use the w3c validation service is at http://www.oaksoft.co.uk to view the results, the errors are virtually all linked to the radslider, I believe,

thanks for any assistance you can give,
regards,
John C.

P.S. Please forgive the freaky amount of time my site takes to load, asp.net is cycling down and taking around 40 seconds to spool back up, the site is quick thereafter, I'm talking to my hoster re this matter...
Tsvetie
Telerik team
 answered on 15 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?