Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
312 views
I have used the rad wiindow for popup and enter some data then save it to the database . i want to refresh the combo box when the rad windoe is closed.
i have wrriten the code leike this

function

openRadWindow(CustomerID)

 

{

 

var oWnd = radopen("AddPopup.aspx?CustomerID=" + CustomerID, "RadWindow1" );

 

oWnd.Center();

oWnd.add_close(OnClientCloseWin);

 

}

 

function OnClientCloseWin()

 

{

 

var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

 

ajaxManager.ajaxRequestWithTarget(

'<%= btn.UniqueID %>', '');

 

 

}
its working fine in asp.net pages, but not support in master-content pages.
this code  loads the page every time when cliking the button.

i need to call server side function without postbacking....

please reply me immediately...

Shinu
Top achievements
Rank 2
 answered on 02 Feb 2009
1 answer
104 views
Hi All, I have simple grid control which I like to have in edit mode when the grid is created. But only for one column as a checkbox which is boolean value in the database.  Then when a user clicks the checkbox, I would like boolean value to be updated via AJAX and show some progress that something is happening. I'm new to this. Pls guide me. 

Many Thanks,

Shinu
Top achievements
Rank 2
 answered on 02 Feb 2009
1 answer
123 views
Hello ,
I am using radGrid using insert / update edit form , i want to use AutoGenerated  EditFormType at update and user Template EditFormType at insert .. if this possible ???
Princy
Top achievements
Rank 2
 answered on 02 Feb 2009
2 answers
123 views
Hi team

we are deveoping an application that support right to left layout and have some probelms with the secheduler

this is a link for the problems appears in the interface

http://www.4shared.com/file/79227064/354f67f2/_2__scheduler.html

so please check the link an focus on the image and the points surrounded with black circle

1- calendar is out of the boundary of the explorer.
2- the day panel aligned left.
3- images overlaps the text.

thanks very much for you
Matthew
Top achievements
Rank 1
 answered on 02 Feb 2009
0 answers
164 views
In my VB code I have:

 

        Public Function GetExtension(ByVal radFileUpload As RadUpload) As String 
 
            Dim fileExtension As String = String.Empty  
            If radFileUpload.UploadedFiles.Count > 0 Then 
                Dim validFile As UploadedFile = radFileUpload.UploadedFiles.Item(0)  
                fileExtension = validFile.GetExtension  
            End If 
            Return fileExtension  
 
        End Function 
 

But when i convert this to C#, I get an error on the Item(0):

 UploadedFile validFile = radFileUpload.UploadedFiles.Item[0];

It says Telerik doesn't contain a definition for Item.

How do I write this in C#?

thanks.

I have:
using Telerik.Web.UI;

thanks.

Moon
Top achievements
Rank 2
 asked on 01 Feb 2009
2 answers
324 views

Here's my grid

<telerik:radgrid id="RadGrid1" autogenerateeditcolumn="False" runat="server" skin="Hay" AutoGenerateColumns="False">   
 
<PagerStyle Mode="NextPrevAndNumeric" /> 
 
 
 
<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="UserID" AllowAutomaticDeletes="false">  
 
 
 
<Columns> 
 
 
 
<telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="UserID" HeaderText="UserID" DataField="UserID"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="FirstName" HeaderText="FirstName" DataField="FirstName"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="LastName" HeaderText="LastName" DataField="LastName"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="Email" HeaderText="E-mail" DataField="Email"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="Position" HeaderText="Position" DataField="Position"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="Salutation" HeaderText="Salutation" DataField="Salutation"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="Biography" HeaderText="Biography" DataField="Biography"></telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn UniqueName="Password" HeaderText="Password" DataField="Password"></telerik:GridBoundColumn>   
 
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"></telerik:GridButtonColumn> 
 
 
 
</Columns> 
 
 
 
</MasterTableView> 
 
 
 
</telerik:radgrid> 
 


Here is my code behind

 

 

 

    Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand  
        Dim item As GridEditFormInsertItem = DirectCast(e.Item, GridEditFormInsertItem)  
        Dim _user As SnapTech.Library.User = SnapTech.Library.User.NewUser  
        _user.FirstName = item.GetDataKeyValue("FirstName").ToString()  
        _user.LastName = item.GetDataKeyValue("LastName").ToString()  
        _user.Email = item.GetDataKeyValue("Email").ToString()  
        _user.Position = item.GetDataKeyValue("Position").ToString()  
        _user.Salutation = item.GetDataKeyValue("Salution").ToString()  
        _user.Biography = item.GetDataKeyValue("Biography").ToString()  
        _user.Password = item.GetDataKeyValue("Password").ToString()  
        _user.Save()  
    End Sub 

 


I get the following error in the codebehind at line "_user.FirstName = item.GetDataKeyValue("FirstName").ToString()
        Index was out of range. Must be non-negative and less than the size of the collection.  Parameter name: index

Whats the correct way for me to extract the values from the grid pop up form when the user clicks insert.

Chuck
Top achievements
Rank 1
 answered on 31 Jan 2009
2 answers
211 views
Hello,
I have a problem with the RadProgressArea not appearing on a production server.  The same code works fine on my dev box, but when I put it onto the production environment, it does not appear.  There are no errors, and the files upload fine,  it just doesn't show the progress indicator.
Here is the ASPX page code.  There is also a single RadUpload on the page.
<telerik:RadProgressManager ID="RadProgressManager1" runat="server" /> 
<telerik:radprogressarea id="ProgressArea1" runat="server"  EnableEmbeddedSkins="true" Skin="Vista"></telerik:radprogressarea> 
 

Here is the web.config code:
<httpHandlers> 
    <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler,Telerik.Web.UI, Version =2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4 " /> 
</httpHandlers> 
<httpModules> 
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule,Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> 
</httpModules> 
         

I don't know where to start to look for the problem, the implementation of this seems quite straight forward, so I must be missing something really simple.

I am running on Windows 2008 with iis7 and ie7.

Also, if I open http://website/telerik.raduploadprogresshandler.ashx it returns the following,  So it seems I have the handlers working (I think)
var rawProgressData = {InProgress:false,ProgressCounters:false};


Any help is much appreciated.
Festus
Top achievements
Rank 1
 answered on 31 Jan 2009
0 answers
129 views
How can we place checkboxes in radmenu using XML and handle the checkboxes checked events.


Thanking you in advance
Parodist
Top achievements
Rank 1
 asked on 31 Jan 2009
4 answers
114 views
Whenever i add some controls to be updated by the respective AJAX they change their initial positions.

Say all the three textBox controls were on the same line previously and now they are each in a different row with a lot of blank space around. It seems like Ajax manager is adding something near the controls so they cannot remain to the same places (initial positions).

How do i work around this problem?

Thank you
El
Top achievements
Rank 1
 answered on 31 Jan 2009
0 answers
157 views
is there any way out to save my tree created with drag and drop back into database for later display

any suggesstions
regards
khalid
khalid
Top achievements
Rank 1
 asked on 31 Jan 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?