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

Hi
I have a form .I want show radwindow from code behind and then user enter data in radwindow and  process data which user enter .similar

 

 

 

If dvwItemPayDetail.Count > 0 And AllowUpdate = True

Then

 

 

 

Dim script As String =

"<script language='javascript' type='text/javascript'>Sys.Application.add_load(ShowWindow);</script>"

 

 

 

 

 

ClientScript.RegisterStartupScript(

 

 

 

 

 

Me.GetType(), "showWindow"

, Script)

 '------------>> Not Stop .I want stop debug which user enter data in radwindow then continue to debug

 


Calculate( return value1  from radwindow ,return value2  from radwindow )
DIm i As integer=return value1  from radwindow
i+=2
Calculate( i ,return value2  from radwindow )
end if

please help to me.
thank
Princy
Top achievements
Rank 2
 answered on 20 May 2011
3 answers
173 views
Hi

I have a page on which is a complex multi tabbed form that I want to appear when the user clicks a link on the main page.

Simple stuff. This I had working with the form appearing in a div that was hidden and simply made visible. However, having bought the Rad controls for ASP.NET I wanted the use the very attractive RadWindow to hold the form. It is there the problems began.

The entire form is in an update panel as it needs to be for many reasons not relevant to this issue.

The top of the form looks like this.

<asp:UpdatePanel runat="server" id="UpdatePanel1" UpdateMode="Conditional">
    <ContentTemplate>  
        <telerik:RadWindowManager ID="rwManager" Behaviors="Close,Move, Resize" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" Skin="Outlook" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="rwAdvancedSearchForm" Modal="true" runat="server" Width="700" Height="600"
                    <ContentTemplate>
                        <table class="dv" cellpadding="0" cellspacing="0" border="0">

and so no.

You can see in there the first (and only) RadWindow in this RadWindowManager is called rwAdvancedSearchForm.

Back on the page I have a link that calls this javascript function.

function showAdvancedSearchForm(){
    var win = $find("<%#rwAdvancedSearchForm.ClientID %>");
    win.show();
    win.center();
}
... where ASP.NET is putting the name of the control into the page.

The problem is that the javascript breaks on the line 'win.show() as 'win' is not found.

Looking at the source code I can see that asp.net has put the correct name into the page. Here is a bunch of code from the source that has the js function above and the div at the bottom that is rsAdvancedSearchForm. You can see the names are correct.

     
function showAdvancedSearchForm(){
    var win = $find("ctl00_PageContent_rwAdvancedSearchForm");
    win.show();
    win.center();
}
   
 
</script>

 
<div id="ctl00_PageContent_UpdatePanel1">
         
        <div id="ctl00_PageContent_rwManager" style="display:none;">
 
        <div id="ctl00_PageContent_rwAdvancedSearchForm" style="display:none;">

Despite this the javascript cannot 'show()' the div has it cannot be found.

What's going on?





Brad
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
216 views
hi
I want to change icon and header text my radwindow but it not working .My code is

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

 

<Windows>

 

 

<telerik:RadWindow runat="server" IconUrl="~/impromptu/att.png" Width="450px" NavigateUrl="DialogTozin.aspx" ID="Window1"></telerik:RadWindow> 

 

 

</Windows>

 

 

 

 

 

</telerik:RadWindowManager>

 

 

I too want when show radwindow it was maximum size default
please help to me

Shinu
Top achievements
Rank 2
 answered on 20 May 2011
1 answer
74 views
Hey folks,

I'm giving the radgrid a shot.  Basically when a user searches a different way, the page_load will direct it what data source to use like so:

If request.querystring("type") = "LocationCategory then
RadGrid1.datasource = sds_search_type_locationcategory
RadGrid1.DataBind()
End if

So i really have two questions. 

#1, is there a better way to do this? I have about 8 different 'types' of searches so the complexity is getting to be a little outrageous. Plus i have to use NeedsDatasource to allow paging/sorting etc which makes it more complex.

#2, Some of my queries return about 10,000 rows, is there a way to show the proper count but not select ALL of that data at once and only select it when its requested?

I cant be the only one out there doing something like this, hopefully i'll get some answers :)
Shinu
Top achievements
Rank 2
 answered on 20 May 2011
2 answers
618 views
Is it possible to stream a file when using the single click of rad button.
For example I've setup a button exactly like the one in the Single Click Button demo but the button never gets enabled after the file is downloaded. I think it is because I'm using response.clear and response.end methods but I'm not sure. Here is the main part of the code in the button. Is there a workaround to this problem. The button is setup correctly because if I remove this code, it works properly.

Dim downloadBytes As Byte() = pdfConverter.GetPdfFromUrlBytes(URL)
 
       Dim response As System.Web.HttpResponse = System.Web.HttpContext.Current.Response
       response.Clear()
       response.AddHeader("Content-Type", "binary/octet-stream")
       response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + "; size=" + downloadBytes.Length.ToString())
       response.Flush()
       response.BinaryWrite(downloadBytes)
       response.Flush()
       response.End()

Thank you,
Brian
Brian Goldman
Top achievements
Rank 2
 answered on 19 May 2011
0 answers
70 views

I've run into a little problem on my side with the radtreeview. I'm trying to build a treeview based on a folder structure on a server that will allow an user to select which folders another user has access to. I can dymanically load everything and save just fine. The problem is when I come back to a new instance of the radtreeview, I have just the basic level node (in this case folder) and the tri-state is uncheked as it doesn't have any children yet (as expected because the tree doesn't know about the folders yet).

What's the best way to pre-load this list of existing checked boxes and still allow it to load the rest of the folders via ajax when the user clicks on the node. There are about 100 folders, each with about 50 subfolders which each contain another 10-50 subfolders (around 100k folders in total). Because of this, preloading will be painfully slow. The thing is that each user only has about access to 20 or so folders usually under one of the lower chains.

If someone has some sample code or ideas for pre-loading specific levels, including checking only those, and then fully populating when the expand a higher level I would greatly appreciate it. I do have a web service that returns the list of folders they have access to but I'm not sure of when/how I should call it in the scope of this.

For the loading the nodes via AJAX we use the code below (which is pretty much from the samples):

I figured I'd attempt to load the list of authorized folders in the load method (as show below) but that fails:

Actual Control:

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" TriStateCheckBoxes="True"
    OnClientLoad="load" OnClientNodeDataBound="nodeDataBound" OnClientNodePopulating="nodePopulating"
    OnClientNodeClicked="nodeClicked" OnClientNodePopulated="nodePopulated" Skin="Outlook">
    <WebServiceSettings Path="~/Services/Directories.asmx" Method="GetDirectories" />
    <DataBindings>
        <telerik:RadTreeNodeBinding ImageUrlField="ImageUrl" TextField="Text" ValueField="Value" />
    </DataBindings>
</telerik:RadTreeView>

The true problem is when I save back, if the user hasn't loaded the final nodes that are currently selected, they are lost.

Gary
Top achievements
Rank 1
 asked on 19 May 2011
2 answers
138 views
hi my dear friends :
i have a RadDataPager inside A RadListView...
also i have A RadComboBox That is in Ralationship with RadListView.Mean By SelectedIndexChanged Of It , RadListView Is Refreshed(DataBinded).
my Problem is when u change the RadListView Page at item #1 of RadComboBox and change the Item Of RadComboBox To Item#2 , so we still have the previous selected page!
how can i change the page of RadListView to 1 in SelectedIndexChanged Of RadComboBox?

thanks for reading and helping me
Majid Darab
Top achievements
Rank 1
 answered on 19 May 2011
1 answer
78 views
Hi,

   i am using rad scheduler control with recursive i need to disable the recurence action dialog when resizing and deleting the appointment. can you please tell how to do resizing and deleting with out recurrence action popup
Veronica
Telerik team
 answered on 19 May 2011
9 answers
345 views

In a MVC view page, I set the data source of the Grid control.
 
I want to conditionally populate the cells based on the data in the server side of the view in C#. How do I populate it?
 
I used to do it in the ItemDataBound server side event. Is there any way I can loop throgh the datasource and declarativley define the ItemTemplate of the GridTemplateColumn? Please let me know how I can do conditional display in server side.

Thanks

Jon Wood
Top achievements
Rank 1
 answered on 19 May 2011
5 answers
100 views
I have two RadGrids that have selectable rows that popup RadWindows.  When the windows close, I refresh the RadGrids to apply changes made in the windows.  I do this by using fireCommand with a sort (at the time I created this kind of logic with another app, sort was the only command that seemed to work all the time to refresh).  It works fine if I just refresh one grid that way, but if I try to do two, neither refreshes.  Do I need to do something extra to get both grids to fire a command in the same javascript function?
Mike Dennis
Top achievements
Rank 1
 answered on 19 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?