Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
241 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
876 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
190 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
120 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
65 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
243 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
3 answers
167 views
Hi Telerik Team,

My RadGrid have 5 columns ( 4 GridBoundColumn, 1 template column with RadComboBox control).
I change page size of my RadGrid to 2k records anh it's too slow to render my Radgird.

View source of the page, each RadComboBox will be added a script bellow:

Sys.Application.add_init(function() 
$create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":0,"_height":0,"_isAspNet35":true,"_skin":"Web20","_uniqueId":"rdgDemo1$ctl00$ctl200$txtProjectPaid_20101","clientStateFieldID":"rdgDemo1_ctl00_ctl200_txtProjectPaid_20101_ClientState","collapseAnimation":"{\"duration\":450}","expandAnimation":"{\"duration\":450}","itemData":[]}, null, null, $get("rdgDemo1_ctl00_ctl200_txtProjectPaid_20101"));
});

So, if my radgrid have 2k records, my page will have 2k above script.  It's very slow....

Could you give me any solutions to solve this?

Thanks!
Dimitar Terziev
Telerik team
 answered on 27 Mar 2012
1 answer
60 views
Hello,
I have set the height of radDock using $telerik.getViewPortSize() in JavaScript since the height of rad dock is not occupying the height of form. I cannot hard Code the height since it is not compatible on changing screen resolution. Everything works fine expect for on IE7. It causes some unpleasant UI effects which can be observed in the attached file. I have added a div around the Rad Dock Layout which surrounds the Rad dock and finally the rad grid. My main target is to provide full length to rad dock to capture the whole screen. Providing height in percentage was also not suitable. How can these components be rectified? Thanks in advance.
Bozhidar
Telerik team
 answered on 27 Mar 2012
1 answer
164 views
I am using RadControls for ASP.NET AJAX Q1 2012 in my current project.

I have a web page which has a RadNumericTextBox  as follows:

<telerik:RadNumericTextBox ID="rntbInitialLevel" MaxLength="4" MinValue="0" MaxValue="100" Type="Number" Width="35" runat="server">
    <NumberFormat DecimalDigits="1" />
</telerik:RadNumericTextBox>

The valid value that can be entered on the RadNumericTextBox ranges from 0.10 to 100.0.

I would like to disallow the user from entering a blank, "0", "00", "000", "0000", "0.0", "0.00", "00.0"

Can you please show me how to do this?

Thanks,
Herman
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2012
2 answers
126 views
Hi,

I wonder if RadStyleSheetManger could combine css files for non-RadControl pages?

Also, Could we use RadStyleSheetManager work with the App_Themes folder ( the ASP.NET folder for .skin)?

Thanks

Ping
Johnnelvine
Top achievements
Rank 1
 answered on 27 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?