Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
159 views
Does RadEditor has any builtin option to help avoiding xss etc.

I tried two code blocks below. one with javascript and other with iframe.

<script type="text/javascript">
alert("HI");
</script>

<iframe src=http://www.google.com height="200" width="200"/>

javascript did not get executed but I got iframe in the page. Normally I would do HtmlEncode and HtmlDecore. But If I need to keep tags like bold , italic etc, how can I do that?
Rumen
Telerik team
 answered on 18 May 2009
1 answer
69 views
Can you please respond to my threads, one posted over 7 hours ago.
Yavor
Telerik team
 answered on 18 May 2009
1 answer
102 views

As mentioned in http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/radfileexplorer-very-slow.aspx
when is the treeview option only expected to be available?  FileExplorer seems to work very well, other than it's a bit slow with several images in the source directory.
Fiko
Telerik team
 answered on 18 May 2009
1 answer
105 views
As part of an internal project where a user might type a letter using RadEditor, I've been asked if it's possible to indicate to that user if the text they're typing is going onto a second page (assuming an A4 page as set within the browser with intent to print).

The system being replaced, which is rather old, accomplished this through word counting, but this simply isn't practical with the new system. Is there anything in RadEditor that can accomplish this?

Also, where Paragraph tags are used, is there an option to change the space between paragraphs to single line rather than double, or have I missed something in the browser settings/basic HTML?
Georgi Tunev
Telerik team
 answered on 18 May 2009
2 answers
140 views
I have a PanelBar that has a treeview in a template on each PanelBarItem.

At the moment, all of the TreeViews are databound when the PanelBarItems are databound.

I'd like to delay the binding of the TreeViews 'til the relevant PanelBarItem has been expanded. I thought that the most obvious way to do this would have been in the ItemClicked event but I'm struggling to get it to work.

So, there are 2 questions:
  1. Is this possible and,
  2. how?

TIA
--
Stuart
Paul
Telerik team
 answered on 18 May 2009
1 answer
131 views

I have a nested splitter pane and a tab strip located in the lower tab.  With ScrollChildren = true, I'm getting what looks like 17px of margin at the bottom of my screen whenever a tab is added to the tab strip in Firefox.  Other browsers seem to work fine.  If i remove all the tabs, leaving the tab strip, then the white space disappears.

I've attached a cut down version of my code below.
 

<telerik:RadSplitter ID="RadSplitter1" runat="server" BorderSize="0" Height="100%" Width="100%" >                 
    <telerik:RadPane ID="RadPane1" runat="server" Height="100%" > 
      
        <telerik:RadSplitter ID="RadSplitter2" runat="server" Orientation="Horizontal" Width="100%" Height="100px" BorderSize="0" > 
            <telerik:RadPane ID="RadPane2" runat="server">  
            </telerik:RadPane> 
 
            <telerik:RadPane ID="RadPane3" runat="server" Height="26px">  
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" ScrollChildren="true">  
                    <Tabs> 
                        <telerik:RadTab Text="Tab 1"></telerik:RadTab> 
                    </Tabs> 
                </telerik:RadTabStrip> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
 
    </telerik:RadPane> 
</telerik:RadSplitter> 

 

I have seen other threads with similar problems, but the solutions for those dont appear to be applicable to this issue.

Thanks in advance.

Paul
Telerik team
 answered on 18 May 2009
0 answers
95 views
Hi All,

      In my application i used two radpane and one splitterbar control.when i resize the left pane from default width and collapse it again expand the splitterbar i want to set the left-side pane width as default width and right-side pane should be fill in remaining free space.

How to implement this ?

Thanks in advance.
GAnesh
Top achievements
Rank 1
 asked on 18 May 2009
1 answer
134 views
Hello:

I need to manually set the maxvalues for the charts. In order to do this, I need to set Autoscale to false. However, the problem is now the step is all out of whack. Actually, the step seems to always default to 1. The problem is, the maxvalue for the chart could be anything from 8 to 57 to 347. Is there a way to calculate the step based on the max value, so that it is similar to the Autostep function? Or so that it simulates the Autoscale function in regards to setting the step? We do not have the Autostep function available in this version of the radchart.

Any help with this would be very much appreciated.

Thank you.

Sincerely,

Jeff
Dwight
Telerik team
 answered on 18 May 2009
2 answers
64 views
Hi,

I put two RadGrid on the form. Is it possible to remove grid from the from.

If i used visible=false, i will hide. But i want to remove completely.

Thanks.

Regards
Syed Arshad
Syed
Top achievements
Rank 1
 answered on 18 May 2009
1 answer
92 views
Hello,

I've got a nested grid that looks like this...

        <telerik:RadGrid ID="gridAllocations" runat="server" ShowHeader="false" 
            DataSourceID="dsComponentAllocationGroups"> 
            <MasterTableView AutoGenerateColumns="False" DataSourceID="dsComponentAllocationGroups" DataKeyNames="AllocationGroupID" HierarchyDefaultExpanded="True"> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridTemplateColumn DataField="AllocationGroupDescription"  
                        HeaderText="AllocationGroupDescription"  
                        SortExpression="AllocationGroupDescription"  
                        UniqueName="AllocationGroupDescription"> 
                        <ItemTemplate> 
                            <asp:label runat="server" ID="lblAllocationTitle" Text='<%# Eval("AllocationGroupDescription") & " - Your allocation is " & Decimal.Round(Eval("Allocation"),1) & " units."%>' Font-Bold="true"></asp:label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                <DetailTables> 
        <telerik:GridTableView runat="server" Name="gridParentItems" AutoGenerateColumns="False" ShowHeader="true"  
            DataSourceID="dsFinalItems" GridLines="None" Skin="Default" 
             DataKeyNames="ConferenceSubmissionItemID,ConferenceSubmissionItemSponsorshipID"> 
            <RowIndicatorColumn Visible="False"> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn Visible="False" Resizable="False"> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <ParentTableRelation> 
                <telerik:GridRelationFields MasterKeyField="AllocationGroupID" DetailKeyField="AllocationGroupID" /> 
            </ParentTableRelation> 

I have a button in the gridParentItems grid, and when I click it I want to get the ConferenceSubmissionItemSponsorshipID for the given item. I then use this code to allow a user to change the order of an item in the db...

    Protected Sub lnkMoveDown_Click(ByVal sender As Object, ByVal e As System.EventArgs) 
        Try 
            Dim curGridItem As GridItem = CType(CType(sender, LinkButton).Parent.Parent, GridItem) 
            Dim sponsorID As Integer 
            Dim itemsGrid As Telerik.Web.UI.GridTableView 
            itemsGrid = Me.gridAllocations.MasterTableView.DetailTables(0) 
            sponsorID = itemsGrid.DataKeyValues(curGridItem.ItemIndex)("ConferenceSubmissionItemSponsorshipID") 
            Dim curSponsor As New ISAConferenceSubmissionItemSponsor(sponsorID) 
            curSponsor.ChangeComponentOrder(CInt(Me.lblActiveComponent.Text), CInt(CType(sender, LinkButton).CommandArgument) + 1) 
            Me.gridAllocations.DataBind() 
        Catch 
        End Try 
    End Sub 

The problem is that the itemsGrid.DataKeyValues has a count of 0. I know that the ConferenceSubmissionItemSponsorshipID is there - it'll show in the table if I add it as a column, so I can't figure out why it's not filling.

Does anybody have any ideas - I'm probably missing something obvious here, but it would really be helpful if I could figure this out because I use similar code in a few other places on the page and am having the same problems there...

Thanks,

Mike
Princy
Top achievements
Rank 2
 answered on 18 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?