Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views
It seems that if you have your form submit button inside a RadAjaxPanel and you exit the sub where you are handling the button click, it will not focus or show labels outside of the RadAjaxPanel

Here is the code on the page:
<telerik:RadAjaxPanel ID="RadAjaxPanelx" LoadingPanelID="RadAjaxLoadingPanelx" runat="server">
             <asp:Button ID="btnSubmit" runat="server" CausesValidation="true" OnClick="btnSubmit_Click" Text="Submit" /><br />
            </telerik:RadAjaxPanel>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelx" Height="300" Width="500" runat="server" Skin="Sunset">
            </telerik:RadAjaxLoadingPanel>

Here is the code behind where I am validating that at least one of seven checkboxes is selected in a checkbox list named chklPayment :

Public Sub btnSubmit_Click(ByVal sender As Object, ByVal e As EventArgs)
        ' Check to see at least one checkbox checked.
        Dim CheckedBox As Boolean = False
        For Each CheckedItem As ListItem In chklPayment.Items
            If CheckedItem.Selected = True Then
                CheckedBox = True
            End If
        Next
        If CheckedBox = False Then
           lblError.Visible = True

          
chklPayment.Focus()
            Exit Sub
        Else
            lblError.Visible = False
        End If
 
    End Sub

Now if the label is INSIDE the RadAjaxPanel - say right below the submit button, it will toggle label visibility as the code requires BUT if the label is contained OUTSIDE the RadAjaxPanel, it will not toggle at all. I've spent about three hours on this with varying testing scenarios and this behavior is definitely happening. I have the submit button inside the RadAjaxPanel because I am using a Loading Panel with it as the form takes awhile sometimes to complete the postback.

No biggie as I can put the label inside the RadAjaxPanel and it works fine. I can also use the label to say something like "Please wait while your information is updated" or something like that if validation passes for the checkbox list. Sorry if this is already noted somewhere in the documentation - I couldn't find it.
William
Top achievements
Rank 1
 answered on 11 Aug 2010
1 answer
250 views
Hi,

Does anyone know how to set the x-axis to a specific interval, e.g. 15 mins.

So far i managed to use the below code to skip some of the points label on the x-axis. However, what i want to achieve is to set the time range for every 15 mins. e.g. 22:15:00, 22:30:00.

RadChart1.PlotArea.XAxis.LabelStep = 15;

Please help. Thanks,

Yavor
Telerik team
 answered on 11 Aug 2010
3 answers
187 views
I have a Master Page that is a child of another master page. The child master page has a RadTabStrip and RadMultiPage with a RadAjaxPanel to load tabs dynamically. The parent master page has an AddThis widget. For some reason, in Firefox (and only in Firefox), when I click on a tab for the first time, it loads fine, but with the following error:
Error: uncaught exception: [Exception... "Security error"  code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "http://devweb.tmforum.org/community/ScriptResource.axd?d=k49SRXxqYWiQi1h5ak56cz6yVdfy-wma__9J5UH8u6pGwBj_haSG64G2I9bxGyRx0&t=633767702680000000 Line: 498"]

When I then click on a different tab nothing happens. If I remove the AddThis widget it works fine.

Also, on a simple aspx page, no master page with the same setup and the AddThis widget directly after the close of the RadAjaxPanel, there are no problems. 

Can anyone shine any light on this?

Thanks,
Boris Zakharin
Maria Ilieva
Telerik team
 answered on 11 Aug 2010
4 answers
132 views
onResponseEnd, I m calling window.open, in the opened page, I m trying to perform on response stream object BinaryWrite to open a excel file. But it is not able to open the file from there.
When I used window.open directly and it worked with out any hassle.
How can I overcome this situation.

Requesting page

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <ClientEvents OnResponseEnd="onResponseEnd" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
function onResponseEnd() {
           window.open(g_Url, "", g_SPopUpValues);
          
        } 

Requested page

protected void Page_Load(object sender, EventArgs e) {
FileStream MyFileStream;
        long FileSize;
        MyFileStream = new FileStream(@"c:\test.xls", FileMode.Open);
        FileSize = MyFileStream.Length;

        byte[] Buffer = new byte[(int)FileSize];
        MyFileStream.Read(Buffer, 0, (int)FileSize);
        MyFileStream.Close();
      
        Response.AddHeader("content-disposition", "attachment;filename=a.xls");
        Response.ContentType = "application/vnd.ms-excel";
        Response.BinaryWrite(Buffer);
         }
Radoslav
Telerik team
 answered on 11 Aug 2010
1 answer
232 views
hello,

I have stuck... when i using radconfirm passing value 'true' or 'false'...

ex.
i have :
1. RadGridView 'RadGrid1' with data source available.
2. Button 'DeleteBtn'.

when 'DeleteBtn' clicked :
Dim _JS As String = "radconfirm('Selected : (" & RadGrid1.SelectedItems.Count.ToString & ") item Are you sure delete ?', CallBackDelete, 330, 100, null, 'Delete');"
 
If Not (_JS Is "") Then
ScriptManager.RegisterClientScriptBlock(Me.Page, Me.[GetType](), e.Item.Text.ToString & "_JScript", _JS, True)
End If

then, at _Default.aspx javascript :
function CallBackDelete(arg) {
   radalert('choose : ' + arg.toString());
}

all function above is running normaly, 

But, i want run my module named as 'BLL' function create with VB .NET script with reference by CallBackDelete 'true' or 'false'...i'm stuck on here problem how? from javascript access VB .NET function ?
if there is no method get passing radconfirm true, or false in vb.net for radconfirm other than using the javascript for radconfirm?

thanks.
Princy
Top achievements
Rank 2
 answered on 11 Aug 2010
1 answer
72 views
I have updated a cell text in my Radgrid by
1. finding out the selected row and then the particular cell
2. setting the text property of cell to some new value

RadGrid1.SelectedItems[0].Cells[RadGrid1.SelectedItems[0].Cells.Count - 1].Text = tbxEditRowWghtg.Text +

 

" %";

 


the problem is the new value only gets displayed when i select another row or when a postback is fired

how do i make it display the new value after closing my popup form?


note that i purposefully didn't use the automatic update command in radgrid for a reason... so what I have done is I've allowed row click selection and then i open a modalpopup form to edit/enter new values to my grid.
Pavlina
Telerik team
 answered on 11 Aug 2010
3 answers
65 views
Hi,
I am getting the followinf error in my project. I just added already configured and running form into my application. Once after i added the file and run the same i am getting the following runtime error:

"Microsoft JScript runtime error: 'Sys.WebForms.PageRequestManager' is null or not an object"

I dont know why this error caused, i just added already existed file, which is featuring RadGrid control. Why this error is coming please help me.

-Thanks
Demon
Top achievements
Rank 1
 answered on 11 Aug 2010
1 answer
65 views
Hi,

I'm wondering if anyone has been experiencing the issue we are getting since upgrading one of our projects to 2010 Q1.

Since we have upgraded we have found all our rad windows in Firefox 3.6.8 have a white background around them. (see screenshots attached)

This only occurs in FireFox all other major browsers work with no problems. I've tried removing all stylesheets from my template while trying to debug the issue and with no style sheets on the page it still shows the white background.

Has anyone else experience this? and does anyone have any suggestions what could be causing this to occur?

Thanks in advance

Chris
Georgi Tunev
Telerik team
 answered on 11 Aug 2010
2 answers
152 views
Hi dear,

I want to open a popup small screen on the same page. After open this small screen whole should gray color.

For example. 
When we write a New Thread on telerik forum. There is Hyperlink manager button inside text editor when i press this button a small window comes up and remaining screen become gray color. 
Same like this i want to do in my project. please guide me?
mohsinjk jk
Top achievements
Rank 1
 answered on 11 Aug 2010
1 answer
113 views
Hi Experts,

I have a requirement where i have nested Sub objects and need to bind that to the treeview.
This nested sub object contains self reference of Parent and child ids.
Need to confirm whether current Treeview supports this?

Thanking You,
Aayam Singh
Yana
Telerik team
 answered on 11 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?