Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Hi,

I have created a new skin using the Visual Style Builder. As the base skin I have selected the Telerik skin. Using the Hue and Saturation function in the Shift Colors tab I changed the green Telerik color to some kind of purple (our company color (www.smallweb.nl)).

Now I have downloaded my new skin and I am testing the skin in a test web project. I notice that not all controls are part of the new skin. How can I add the missing controls into my new skin and change the colors to the purple I am using at the other controls?

Thx,
Danny
Alex Gyoshev
Telerik team
 answered on 12 Oct 2009
2 answers
268 views
Hi

I want to find if
LEFT CTRL key 
LEFT SHIFT key
RIGHT CTRL key
RIGHT SHIFT key
has been pressed while clicking on the row in the grid

i am using this code in javascript, but does not get fired 

function

OnKeyPress(sender, eventArgs) {

 

 

var key = eventArgs.get_keyCode();

 

 

alert("here");

 

alert(

"Key code: " + eventArgs.get_keyCode());

 

alert(

"Is Shift pressed: " + eventArgs.get_IsShiftPressed());

 

alert(

"Is Ctrl pressed: " + eventArgs.get_IsCtrlPressed());

 

alert(

"Is Alt pressed: " + eventArgs.get_IsAltPressed());

 

alert(

"Is Left Alt: " + eventArgs.get_domEvent().get_altLeft());

 

}

in the RADGRID , i have done the following settings

 

<

ClientSettings AllowKeyboardNavigation

="true"

 

<

ClientEvents OnKeyPress="OnKeyPress" OnRowClick="telerik_RowClick" OnRowCreated="telerik_RowCreated" OnRowDeselected="telerik_RowDeselected"

 

 

OnRowSelected="telerik_RowSelected" />

 

 

 


thanks

 

 

Tsvetoslav
Telerik team
 answered on 12 Oct 2009
1 answer
106 views
Hi,

I'm trying to use radtreeview in sharepoint. but the items are not displayed as hierarchy levels!
what's wrong?

Thanks and Best Regards
Atanas Korchev
Telerik team
 answered on 12 Oct 2009
1 answer
85 views
I am using RadControls-grdInsertUpdateDeleteAtDatabaseLevel sample program in http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
 
I want to show a grid field as a drop down from another datasource. But I am getting an error when I am trying to update it. I have given here what I have done currently. I am getting this error when I add the drop down. Can you tell me how can I add it to the .cs code to get the selected ID.
 
.ASPX
 
<telerik:GridBoundColumn DataField="Password" HeaderText="Password" UniqueName="Password"> </telerik:GridBoundColumn>
 <telerik:GridDropDownColumn DataField="CompanyID" DataSourceID="SqlDataSource2"HeaderText="CompanyID" ListTextField="CompanyName" ListValueField="CompanyID" UniqueName="CategoryID" ColumnEditorID="GridDropDownColumnEditor1"></telerik:GridDropDownColumn>
 
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:TestDataConnectionString2 %>" SelectCommand="SELECT [CompanyID], [CompanyName], [CompanyCode], [AddressLine01], [AddressLine02], [AddressLine03], [AddressLine04], [PostCode], [Country], [Telephone], [Fax], [Web], [default] FROM [tbl_LU_Companies]"></asp:SqlDataSource>

.CS
string Password = (editedItem["Password"].Controls[0] as TextBox).Text;
string CompanyID = (editedItem["CompanyID"].Controls[0] as TextBox).Text;

How can I get the Company ID. Can you help me please.
 
Thank you,
Shinu
Top achievements
Rank 2
 answered on 12 Oct 2009
1 answer
147 views
I am currently using scrolling feature of RadGrid (Q2 2009). The problem I have is with the very slow performance of its horizontal scrolling experience in a scenario where my grid has around 20 columns. I searched for similar issues in the forum and found out that other people had the similar problem in the specific case of having one or more frozen columns. Well! In my scenario, I don't have any frozen columns but the scrolling speed is noticably slow.

At least, I think in the case of no frozen columns, horizontal scrolling should not have any performance problem.

Is there anything I can do to fix this issue?


Pavlina
Telerik team
 answered on 12 Oct 2009
6 answers
521 views
Hi,

My scenario is this. I have 2 text boxes and 2 radcomboboxex which user needs to fill and then i've a button called save which "Prompts" the user for a name and saves it.

So, to do this, I did the foll in .ascx:

 

<button id="btnSave" style="width: 80px" onclick = "radprompt('Please enter a Search Name:',

 

promptCallBackFn, 330, 180); return false;"

 

>Save</button>

Now my question is
1) how do i grab the name that user entered in the prompt and use it in my .cs file.
how to make the name available in code behind file. pls do help me with code.

2) also, i need to make sure that user has selected atleast 1 radcombo box and  entered text in 1 textbox ctrl before prompting for a name. otherwise I need to alert the user telling "you don't have anything to save".
pls help me with code.
Thanks,
ZR

 

Shinu
Top achievements
Rank 2
 answered on 12 Oct 2009
1 answer
151 views
Hi,

I am using Q2 2009 . When i  double click on particular row , i want row text.
Please give me the solution ASAP.

Regards

Rahul
Shinu
Top achievements
Rank 2
 answered on 12 Oct 2009
1 answer
168 views
hi

I have successfully uploaded pdf into DB: but how do i read the pdf? Thanks

Protected

 

Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click

 

 

For Each file As UploadedFile In RadUpload1.UploadedFiles

 

 

Dim bytes As Byte() = New Byte(file.InputStream.Length) {}

 

file.InputStream.Read(bytes, 0,

DirectCast((file.InputStream.Length), Long))

 

 

Dim strImageName As String = txtName.Text.ToString()

 

 

Dim con As New SqlConnection()

 

con.ConnectionString = ConfigurationManager.ConnectionStrings(

"ConnectionString").ConnectionString

 

 

Dim cmd As New SqlCommand()

 

cmd.CommandText =

"spPDFtest"

 

cmd.CommandType = CommandType.StoredProcedure

cmd.Connection = con

 

Dim ImageName As New SqlParameter("@pdfName", SqlDbType.VarChar, 50)

 

ImageName.Value = strImageName.ToString()

cmd.Parameters.Add(ImageName)

 

Dim UploadedImage As New SqlParameter("@pdf", SqlDbType.Image, bytes.Length)

 

UploadedImage.Value = bytes

cmd.Parameters.Add(UploadedImage)

con.Open()

 

Dim result As Integer = cmd.ExecuteNonQuery()

 

con.Close()

 

If result > 0 Then

 

lblMessage.Text =

"File Uploaded"

 

 

End If

 

 

Next

 

 

End Sub

 

L
Top achievements
Rank 1
 answered on 11 Oct 2009
6 answers
289 views
Hello,

We are seeing this error fire hundreds of times per day on a site that uses that latest version of Telerik RadControls for ASP.NET AJAX Q2 2009. We reviewed what was out there and concluded this error must be related to the WebResource and on your site, you provide this troubleshooting page - http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html which we reviewed, along with the machineKey recommendations on MSDN http://msdn.microsoft.com/en-us/library/ms998288.aspx which we implemented on our production server in web.config on the affected site. Also in Web.config, these settings are currently in use for the scriptresource and webResource - they appear correct to us but I am relisting them in case we are missing something.

<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

                                    <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

So my question (or begging plea) is this - is there any one out there who could provide more in depth recommendations or assistance in getting rid of this error. It seems benign from an end-user point of view, but probably affects performance, especially since we are logging hundreds of errors per day on this problem. Any assistance would be greatly appreciated!


DTech
Top achievements
Rank 1
 answered on 10 Oct 2009
0 answers
83 views
Hi, my toolbar is configured through xml and the onClick is populated as such. Is it possible to modify the onclick action through javascript?
Raddy Rad
Top achievements
Rank 1
 asked on 10 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?