Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
We've noticed what must be a bug in the RadPanelBar, sometimes it seems like the Designer does not update the ContentTemplate, but instead simply adds another ContentTemplate to the markup code, after the previous one. We noticed this bug when we could never see any of the changes we made to a RadPanelBar (it contained just text which was edited), and when we examined the HTML markup, we noticed that there were 2 ContentTemplates, one with the new text and one with the old. Removing the one with the old solved the problem. 
Peter
Telerik team
 answered on 27 Mar 2012
3 answers
231 views
How could I use in a WebService to load the childs of the parent with RadTreeNodeData like ToolTip, Expanded and AllowEdit?

All other properties (eg: Text, Value) are in the RadTreeNodeData object like RadTreeNode.

eg:

Telerik.Web.UI.RadTreeNode node = new Telerik.Web.UI.RadTreeNode();
node.Text = "new node";
node.Value = "25";
node.ToolTip = row["Tooltip"].ToString();


RadTreeNodeData nodeData = new RadTreeNodeData();
nodeData.Text = "new node";
nodeData.Value = "25";
??nodeData.ToolTip??

regards
Thomas
Plamen
Telerik team
 answered on 27 Mar 2012
1 answer
130 views
Hi,

I want to close the edit form (which is a template) server-side in some event handlers. How can I achieve this?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
116 views
hi, i'm create a RadDock dynamically of this form:

Protected Function creardock() As RadDock
        Dim newdock As New RadDock

        newdock.UniqueName = Guid.NewGuid().ToString().Replace("-", "a")
        newdock.ID = String.Format("RD{0}", newdock.UniqueName)
        newdock.EnableAnimation = True
        newdock.EnableDrag = True
        newdock.DockMode = DockMode.Docked
        newdock.DockHandle = DockHandle.Grip
        newdock.Resizable = False
        newdock.Width = Unit.Percentage(50)
        newdock.AutoPostBack = True
        newdock.Collapsed = False
        newdock.Skin = "Black"
        AddHandler newdock.DockPositionChanged, New DockPositionChangedEventHandler(AddressOf RadDock_DockPositionChanged)

        Return newdock
    End Function


this is a function that i need register for each raddock created:

    Protected Sub RadDock_DockPositionChanged(ByVal sender As Object, ByVal e As DockPositionChangedEventArgs)
        Dim docksel As RadDock = DirectCast(sender, RadDock)
        docksel.DockZoneID = e.DockZoneID
        docksel.Index = e.Index

        lbl.Text = "dock_zone_obj: " & docksel.DockZoneID & " - dock_zone_des: " & e.DockZoneID & "<br />" & _
                   "dock_index_obj: " & docksel.Index & " - dock_index_des: " & e.Index
    End Sub


Each raddock that is returned for the function creardock(), i need add to a raddockzone that too is created dynamically, the problem is that the event RadDock_DockPositionChanged not being registered, the addition to the raddockzone is as follows:

Dim mizona As RadDockZone = crearradzone()

Dim midock As RadDock = creardock()
 mizona.Controls.Add(midock)

this is the function that return the new raddockzone

 Protected Function crearradzone() As RadDockZone
        Dim newraddockzone As New RadDockZone()
        newraddockzone.MinWidth = Unit.Percentage(98)

        Return newraddockzone
    End Function

note that the creation of the Raddockzone and the Raddock depend on a dynamic creation of tables rows and columns have many records in a DB, the only fixed in the file .aspx is a RadDockLayout and a panel which I add the table or tables dynamically created

help me, i need know if there is any mistake in any function in my code, thanks.
Pero
Telerik team
 answered on 27 Mar 2012
4 answers
284 views
Hi,

I need to be able to add several rows to a RadGrid when I click on the Add button I have defined in the CommandItemTemplate.

The radgrid is using InPlace editing. The template has an "Add" button and a textbox next to it that specifies the number of rows to add.

So let's say I specified 5 in the textbox, I clicked on the Add button, and the ItemCommand or ButtonClick events are fired. How can I add 5 rows to the grid in my code-behind?

I tried to catch the Command in the ItemCommand event and then calling MyGrid.MasterTableView.InserItem() inside a for loop, but it doesn't work.

Thank you.
Enoch
Top achievements
Rank 1
 answered on 27 Mar 2012
7 answers
1.0K+ views
Correct me if I'm wrong, but It seems that using the RadFilterSqlQueryProvider to generate a SQL where clause, which is then used in a query that gets executed against your database, is extremely vulnerable to SQL injection attacks.  A user could type an entire SQL statement into a filter field editor, and the RadFilterSqlQueryProvider will simply inject that directly into the where clause verbatim.

If this is true, is there any way to protect against this? Is the only alternative to create your own QueryProvider to generate a parameterized query instead?

Thanks,

Chris
Radoslav
Telerik team
 answered on 27 Mar 2012
8 answers
248 views
Hello Everyone! 
I wanted to know if anyone could help me with a confusion that I have about custom filters, there are different steps when it is a Web application and it is not a website, because when I try to register  MyCustomeFilter.cs into my .aspx, does not recognize it and I get error.

I would greatly appreciate
if you help me
Please



I wish you a nice day....

Antonio Stoilkov
Telerik team
 answered on 27 Mar 2012
1 answer
157 views
hello,
    I have an iframe and a radwindow on my page,when I drag the window, the content within iframe became invisiable until I drop the window, it confuse me a lot. 


    
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <iframe src="http://www.telerik.com" width="600px" height="400px"></iframe>
    </div>
    <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="True">
    </telerik:RadWindow>
    </form>
Princy
Top achievements
Rank 2
 answered on 27 Mar 2012
1 answer
94 views
I am having problems locating controls in Advanced Insert Template using regular document.getElementById. Basically I have 2 dropdowns on my AdvancedInsertTemplate form and after a user selects something in first dropdown I need javascript to change the selection of the 2nd dropdown. How can this be accomplished? Thanks
Plamen
Telerik team
 answered on 27 Mar 2012
2 answers
283 views
Hi Telerik team,

I'm facing a problem with the raddatepicker, raddatetimepicker and radtimepicker controls in your recent release 2012.1.215.35. With release 2011.3.1305.35 there was no such problem.

Please take a look at this page: http://www.sabiotec.de/Telerik/datepicker.aspx. I hope this page helps to clearify the issue.

I implemented a custom date picker control which inherits from your raddatepicker. The intention is to provide a set of keyboard shortcuts in order to easily change the selecte date. I.e., when the user focuses the date picker control and presses the "v" key, the previous day is set, pressing the "n" key sets the next day, pressing "h" sets the current day and so forth. I use javascript code to determine the appropriate date value and set it using the set_selectedDate() method.

This works fine. The problem is that after setting the date value, it is displayed in the wrong format, and I don't konw how to change this format (I tried "DateFormat", "DisplayDateFormat", "Culture", but to no avail).

For instance, without being focused the date is displayed correctly in German format, like "23.03.2012". After focusing the picker control and pressing the "v" key (which sets the previous day), the date is displayed like "2012-03-22-00-00-00". When the picker control looses the focus, the date is displayed correctly again like "22.03.2012".

The problem becomes more severe for the radtimepicker control, which indicates an error after setting the date value (because on invalid data input).

Thank your for your assistance!
Roland
Roland Klug
Top achievements
Rank 1
 answered on 27 Mar 2012
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?