<
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"
>
function showAdvancedSearchForm(){
var win = $find("<%#rwAdvancedSearchForm.ClientID %>");
win.show();
win.center();
}
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;"
>
<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
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
()
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
>
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
<telerik:RadTextBox runat="server" ID="txtCompanyName" Text='<%#DataBinder.Eval(DataItem,"CompanyName") %>' Width="150px" TextMode="MultiLine"/>
instead of
<telerik:RadTextBox runat="server" ID="CompanyName" Text='<%#DataBinder.Eval(DataItem,"CompanyName") %>' Width="150px" TextMode="MultiLine"/>