Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
Hi

I have a very irritating problem.  I have a MasterPage and a Content Page.  The content page is opening a Radwindow where the user is entering info.  When the user closes the RadWindow I call the PostBack Function of a Linkbutton called Test.  This works perfectly and the postback happens every time the RadWindow is closed to update the interface on the Content Page to reflect the changes made in the RadWindow.  Only problem is, I have created a AjaxUpdatePanel and AjaxUpdateProgress in the area where the Linkbutton Test is.  When I click the "Test" linkbutton on the Content Page I see the update panel showing the ajax indicator.  But when I call the function to call the Postback event of "Test" on RadWindow Close, I don't get the Ajax Updating Indicator.

Here's my code on the Master Page for the postback:

<

 

script type="text/javascript">

 

//<![CDATA[

var

 

theForm = document.forms['aspnetForm'];

 

if

 

(!theForm) {

 

theForm = document.aspnetForm;

}

function

 

doPostBack2() {

 

 

if (!theForm.onsubmit || (theForm.onsubmit() != false)) {

 

theForm.__EVENTTARGET.value =

'ctl00$ContentPlaceHolder1$Test';

 

theForm.__EVENTARGUMENT.value =

'';

 

theForm.submit();

}

}

//]]>

</

 

script>

And here's my code on the Content Page to open the Radwindow:

 

 

<telerik:RadWindow

 

 

 

 

 

id="RadWindow1"

 

 

runat="server"

 

 

 

 

 

showcontentduringload="False"

 

 

 

 

 

width="900px"

 

 

 

 

 

height="520px"

 

 

 

 

 

 

onclientclose="doPostBack2"

 

 

 

 

 

title="My Professional Profile - Please be patient while loading..." Modal="true" VisibleStatusbar="false" Skin="Black" style="z-index: 1; display:none;" InitialBehavior="None" Left="" NavigateUrl="" Top="">

 

 

 

 

 

</telerik:RadWindow>

 



And here's my VB code that posts back for the "Test" linkbutton:

 

Protected Sub Test_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Test.Click

 

 

Call GetPPStatus()

 

 

End Sub

So as I said before, everything works fine when I physicallly click the "Test" linkbutton (it posts back and shows the Ajax Update Indicator). And when I close the RadWindow it actually posts back and does everything that I want it to do in the GetPPStatus() sub except it's not showing the ajax indicator. 

Any help would be appreciated!

 

Georgi Tunev
Telerik team
 answered on 25 Jan 2010
1 answer
112 views
Hi,

I use the latest version (1314). In my app, all Combos renders different as before. The button looks displaced. (see attachement)
What has changed?

Regards,
Andreas
Kamen Bundev
Telerik team
 answered on 25 Jan 2010
1 answer
111 views
Hi,

I've a radprompt and when the text area comes, how do I limi trhe user to type only 200 characters.(this is my maximum limit I need to limit the user). where do I set this??
Georgi Tunev
Telerik team
 answered on 25 Jan 2010
2 answers
105 views
Hi

I'm testing scheduler's component for ASP and some questions.

1. Is it possible to set different styles for resource's rows, not for appointments? I'm trying to do this, but didn't succed.

2. Are there any descriptions of ALL control's  features? RAD control's documentation provides not much  information, only names, without descriptions.  :(

Best regards, John.


John John
Top achievements
Rank 1
 answered on 25 Jan 2010
1 answer
47 views
Hello there

I am using RAD Grid version 2008.3.+ and i am having issue with paging.

Please take a look at attach jpg image. My grid shows only link for 1st page but total pages are 11. I am using vista skin and NextPrevAndNumeric pager mode.

What i am doing wrong?

I am using same code as given in following example.

http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

Thanks
Maheshkumar
Pavlina
Telerik team
 answered on 25 Jan 2010
1 answer
147 views
Error 1 D:\sama\asp\TelerikComponentsWS\school\exam_result.aspx.cs 48 60 TelerikComponentsWS
Hi,

this is shanker am doing one project by using telerik controls. I am Face one error in my application That is "GridItemEventArgs' is an ambiguous reference between 'Telerik.Web.UI.GridItemEventArgs' and 'Telerik.WebControls.GridItemEventArgs"  Am using this Assembly Reference in my application that is 

<%@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid.Net2" %>

am taking Radgrid belongs to this reference so am face above error how to solve that please it's argent my application stoped.

thanks and regrads
Shanker.B

Princy
Top achievements
Rank 2
 answered on 25 Jan 2010
1 answer
231 views
Hi All

I have a RadGrid that uses the standard edit mode form, and I am try to complete
the validation as in the declaration shown below:
<telerik:GridTemplateColumn DataField="FirstName"   
            HeaderText="FirstName" SortExpression="FirstName"   
            UniqueName="FirstName">  
            <EditItemTemplate> 
                <asp:TextBox ID="FirstNameTextBox" runat="server"   
                    Text='<%# Bind("FirstName") %>' MaxLength="25">  
                    </asp:TextBox> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1"   
                    runat="server"   
                    ControlToValidate="FirstNameTextBox"   
                    Display="Dynamic"   
                    ErrorMessage="First name required"   
                    SetFocusOnError="True"></asp:RequiredFieldValidator> 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1"   
                    runat="server" Display="Dynamic"   
                    ErrorMessage="Illegal characters"   
                    SetFocusOnError="True"   
                    ValidationExpression="^[a-zA-Z0-9 \-]+$"  ControlToValidate="FirstNameTextBox"></asp:RegularExpressionValidator> 
            </EditItemTemplate> 
The problem is that when the MaxLength property is set it prevents any chacters being entered in Edit mode. Insert Mode is OK

So I took that property out and used code behind like this:
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)  
        If TypeOf e.Item Is GridDataItem Then  
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)  
            Dim txtbx As TextBox = DirectCast(dataItem.FindControl("FirstNameTextBox"), TextBox)  
            Dim strtxt As String = txtbx.Text  
            If strtxt.Length > 25 Then  
                txtbx.Text = strtxt.Remove(25)  
            End If  
        End If  
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then  
            Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)  
            Dim txtbx1 As TextBox = DirectCast(editItem.FindControl("FirstNameTextBox"), TextBox)  
            Dim strtxt1 As String = txtbx1.Text  
            If strtxt1.Length > 25 Then  
                txtbx1.Text = strtxt1.Remove(25)  
            End If  
        End If  
    End Sub 

But that did not have any effect at all.

What I am doing worng here?

Thanks

Clive
PS using Q2 2009 version
Princy
Top achievements
Rank 2
 answered on 25 Jan 2010
3 answers
107 views
I have setup a custom skin but it is based on the black skin.  So, I copied the black skin into my website and renamed everything and got that part working.  I have gotten 99.9% of my site looking as I want it now, but I can't find this one last piece.  ComboBoxes show up with black background and black foreground.  Can someone please tell me the setting in the ComboBox.css to change for this?  I have changed a ton of them and none seem to effect it.

Thanks in advance,
Lee
Kamen Bundev
Telerik team
 answered on 25 Jan 2010
2 answers
623 views
hi my dear friends :
i have a grid with some boundColumn in it...
One Of My BoundColumn IS in Date Format In sql server 2008 (Not DateTime) and i want my rad grid show just date (without time) In this column Like In sql server 2008...
how can i do this ?
we just have system.datetime for this column not system.date or somethin like this ...
Majid Darab
Top achievements
Rank 1
 answered on 25 Jan 2010
1 answer
88 views
Hi,

I've been evaluating the scheduler control for use in IE6 and have noticed what could be a bug - the date header on top of each column (e.g. from sample: http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx) doesn't seem to move with the appointment rows when I scroll right.

Can you duplicate this issue? Can it be fixed?

Regards,

Paul
Peter
Telerik team
 answered on 25 Jan 2010
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?