Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
150 views
Currently, I have checkbox column inside of a radgrid control, and I bind the "Bool", which does not exist to the database. I am wondering does it auto-bind to the batabase and if so, how can I access to it?

<

EditItemTemplate>

<asp:CheckBox ID="chk1" runat="server" Checked='<%# Bind("Bool") %>'>

</asp:CheckBox>

</EditItemTemplate>

<ItemTemplate>

<asp:CheckBox ID="chk2" runat="server"></asp:CheckBox>

</ItemTemplate>

Han
Top achievements
Rank 1
 answered on 17 Sep 2008
7 answers
230 views
Hello !!!

How can I modify the filter menu from my RadGrid?

I want to remove all items from my filter menu and only have an item that means something like "like" in sql, I would like to leave write wildcards in the textbox and not have so many items.

Best regards.

Veli
Telerik team
 answered on 17 Sep 2008
2 answers
241 views
I have a complex page involving both declarative structure referenced by my AjaxSettings and dynamic child controls in portions of that structure.  The page uses RadAjaxManager to update portions of the page when various user actions occur. The page has a mostly declarative structure, but then a bunch of controls are added at runtime (in CreateChildControls).

<div>
    
<radUI:RadAjaxManager ID="TheAjaxManager" runat="server" 
                
DefaultLoadingPanelID="TheAjaxLoadingPanel"
                
EnableEmbeddedScripts="True"
                
OnAjaxRequest="TheAjaxManager_AjaxRequest"
                
EnableViewState="True"
                
EnableAJAX="True">
        <AjaxSettings>
            
<radUI:AjaxSetting AjaxControlID="PatientListTabPages">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="PatientListTabStrip">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabStripPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="PatientSearchTabStrip">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="PatientSearchTabStripPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchParamsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchResultsArea"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="PatientSearchTabPages">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="SearchParamsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchResultsArea"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="SearchParamsPanel">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="SearchParamsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchResultsArea"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="SearchResultsArea">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="SearchParamsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchResultsArea"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="PLExpandCollapseButton">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="PLButtonsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabStripPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="PLExpandCollapseButton">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="PLButtonsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="PatientListTabStripPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
            
<radUI:AjaxSetting AjaxControlID="PSExpandCollapseButton">
                
<UpdatedControls>
                    
<radUI:AjaxUpdatedControl ControlID="PSButtonsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="PatientSearchTabStripPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchParamsPanel"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                    
<radUI:AjaxUpdatedControl ControlID="SearchResultsArea"
                                
LoadingPanelID="TheAjaxLoadingPanel" />
                
</UpdatedControls>
            
</radUI:AjaxSetting> 
        
</AjaxSettings>
    
</radUI:RadAjaxManager>

    <radUI:RadAjaxLoadingPanel ID="TheAjaxLoadingPanel" runat="server"
                    
Transparency="15" 
                    IsSticky="True" Style="position: absolute; left: 200; top: 60; z-index: 999;"
                    
Height="240px" Width="240px">
        
<asp:Image ID="Image1" runat="server" Height="160px" Width="240px"
                    
AlternateText="Loading..." />
    
</radUI:RadAjaxLoadingPanel>

    
<radUI:RadWindowManager ID="TheWindowManager" runat="server"
                    
EnableEmbeddedSkins="False" Skin="Valco" >
    
</radUI:RadWindowManager>

    
<asp:Panel runat="server" ID="PatientListSection" Style="margin-bottom: 15px;">
        
<div>
            
<asp:Panel runat="server" CssClass="PLButtonPanel" ID="PLButtonsPanel">
                
<asp:ImageButton ID="PLExpandCollapseButton" runat="server" 
                            
ImageUrl=".\images\minimize.gif" />
            
</asp:Panel>
            
<asp:Label ID="PatientListLabel" CssClass="PLLabel" runat="server">
            
</asp:Label>
            
<asp:Panel runat="server" CssClass="PLTabPanel"
                            
ID="PatientListTabStripPanel">
                
<radUI:RadTabStrip Align="Left" CssClass="PLTabStrip"
                            
ID="PatientListTabStrip" runat="server" 
                            
EnableEmbeddedSkins="False"
                            
EnableEmbeddedScripts="True"
                            
MultiPageID="PatientListTabPages"
                            
Skin="Valco" SelectedIndex="0" 
                            
AutoPostBack="True" 
                            
Orientation="HorizontalTop" Width="100%"
                            
ReorderTabsOnSelect="false">
                    
<Tabs>
                    
</Tabs>
                
</radUI:RadTabStrip>
            
</asp:Panel>
        
</div>
        
<div>
            
<asp:Panel runat="server" ID="PatientListTabPanel">
                
<radUI:RadMultiPage ID="PatientListTabPages" runat="server"
                                
SelectedIndex="0" RenderSelectedPageOnly="True" >
                
</radUI:RadMultiPage>
            
</asp:Panel>
        
</div>
    
</asp:Panel>

    
<asp:Panel runat="server" ID="SearchSection">
        
<div>
            
<asp:Panel DefaultButton="PSExpandCollapseButton" runat="server"
                            
CssClass="PSButtonPanel"
                            
ID="PSButtonsPanel">
                
<asp:ImageButton ID="PSExpandCollapseButton" runat="server" 
                            
ImageUrl=".\images\minimize.gif" />
            
</asp:Panel>
            
<asp:Label ID="PatientSearchLabel" CssClass="PSLabel"
                            
Text="Patient Search" runat="server">
            
</asp:Label>
            
<asp:Panel runat="server" CssClass="PSTabPanel"
                            
ID="PatientSearchTabStripPanel" >
                
<radUI:RadTabStrip Align="Left" 
                            
ID="PatientSearchTabStrip" runat="server" 
                            
EnableEmbeddedSkins="False"
                            
EnableEmbeddedScripts="True"
                            
CssClass="PSTabStrip" AutoPostBack="True"
                            
MultiPageID="PatientSearchTabPages" 
                            
Skin="Valco"  Orientation="HorizontalTop"
                            
SelectedIndex="0" Width="100%" 
                            
ReorderTabsOnSelect="false">
                    
<Tabs>
                    
</Tabs>
                
</radUI:RadTabStrip>
            
</asp:Panel>
        
</div>
        <div>
            
<asp:Panel runat="server" ID="SearchParamsPanel" >
                
<radUI:RadMultiPage ID="PatientSearchTabPages" runat="server"
                            
BorderWidth="2px" SelectedIndex="0" >
                
</radUI:RadMultiPage>
            
</asp:Panel>
            
<asp:Panel Style="position: relative; top: 2px;" ID="SearchResultsArea"
                            
runat="server">
            
</asp:Panel>
        
</div>
    
</asp:Panel>
</div>


Sorry it is so long. but now here's the next piece. 
Conceptually, the hierarchy amounts to:

    Top Section (asp:Panel: "PatientListSection")
        Panel for my own expand/collapse buttons (asp:Panel: "PLButtonPanel")
            Image button
        Label (asp:Label)
        Panel for tabStrip (asp:Panel: "PatientListTabPanel")
            Tabstrip to choose a list (RadTabStrip: "PatientListTabStrip")
                Tabs
                    < runtime added tabs>
        Panel for MultiPage (aspPanel: "PatientListTabPanel")
            MultiPage for list results (RadMultiPage: "PatientListTabPages")
                < runtime added RadPageViews >
                    < runtime added RadGrid on each pageview >
    
Search Section (asp:Panel: "SearchSection")
        Panel for my own expand/collapse buttons (asp:Panel: "PSButtonPanel")
            Image button
        Label (asp:Label)
        Panel for tabStrip (asp:Panel: "PatientSearchTabStripPanel")
            Tabstrip to choose a list (RadTabStrip: "PatientSearchTabStrip")
                Tabs
                    < runtime added tabs>
        Panel for search parameters PageViews (asp:Panel: "SearchParamsPanel")
            MultiPage for search params (RadMultiPage: "PatientSearchTabPages")
                < runtime added RadPageViews for parameter panels >
                    <runtime added asp:Panel for each PageView >
                        <runtime added Search asp:Button >
                        <runtime added text and input controls to enter params>
        
Panel for search results grid (asp:Panel: "SearchResultsArea")
            <runtime added RadGrid to hold search results >       
            
The above basic structure amounts to two main sections - one where a number of lists may be displayed by using a tabstrip to select which page of a MultiPage to look at.  At runtime, the tabs of the tabstrips and PageViews to go with them are created based on customer specific configuration data.  On each PageView is a RadGrid to display the data. Since the lists displayed tend to be from a subset of the universe of data available, performance is served by having one grid per PageView in this top section, allowing switching PageViews using the tabstrip to very quickly look at different lists.

Then there is a bottom section that is used to display data based on search criteria against a much larger universe of data.  In this scenario, because searches take MUCH longer, we really much execute each search only when needed, and also because sdearches each may have different arameters to search on - again based on customer specific configuraiton data.  So in the bottom section, we still use a TabStrip, but the MultiPage is not used for switching between grids.  Rather, since each search needs different configured parameters, at runtime we setup a tab for each search and a PageView that contains an Asp:Panel holding a search button and a series of fields to be filled in. Then, below it, in the "SearchResultsArea" panel in the markup, we have created at runtime a RadGrid to display whatever search result they have executed a search for.  We don;t create that RadGrid in the markup (even though only one) because if they do not configure any searches for a given customer, we don' want even an empty grid to display. 

Now, this all worked exactly right under RadControls for ASP.Net.  But now that we are running under RadControls for ASP.Net AJAX, there is a problem.  Everything in the top part works fine.  But in the bottom section, when the user fills in the text fields created on a PageView inside "PatientSearchTabPages", the "SearchParamsPanel" gets updated (styling changes when they do a search), and the RadGrid in the "SearchResultsArea" does rebind and get data in the code-behind, but the radGrid does not update on the screen.  On the other hand, if we change tabs by clicking a tab in the PatientSearchTabStripPanel", which causes the code behind to rebind the RadGrid to the appropriate search, the RadGrid updates just fine on the screen.  To rephrase, clikcing a tab in the search tabstrip DOES case the RadGrid in "SearchResultsArea" to repaint, but clikcing a button in one of the PageViews of PatientSearchTabPages" does NOT cause the RadGrid in "SearchResultsArea"to get repainted. 

My sense is that for some reason, the runtime created asp:Buttons are not causing the AjaxSetting for it's contining MultiPage and Panel that says to update SearchResultsArea to be obeyed.  Of course, if I then press a button I have in the SearchResultsArea saying to reload the grid, it repaints fine.  It's just the one scenario where a dynamically added button on a dynamically created panel in a dynamically added PageView of the MultiPage does not trigger the AjaxSetting to fire.

Again, everything else is fine and this was fine with this exact structure under RadControls for ASP.Net, just not for the new version.  In both versions, I had the same RadAjaxManager and settings - none of that changed.  Of course, I am now subject to however the new stuff works with the MS Ajax stuff and the use of Scriptmanager, so I'm guessing there is something associated with that aspect of the upgrade.

-Ed





Ed
Top achievements
Rank 1
 answered on 17 Sep 2008
4 answers
122 views
Hello,

  The Radrotator control is not visible in the Visual Studio 2008 toolbox all other Rad controls are. If i add the tag to the markup VS states its not recognized.

Any thoughts?

Thanks,
Dean Killam
Top achievements
Rank 1
 answered on 17 Sep 2008
1 answer
92 views
As far as I can tell, there is no reason for them to be there...
Rumen
Telerik team
 answered on 17 Sep 2008
2 answers
129 views
Hi,

I´m trying to remove a treenode from clientside with the following code:

function onClientContextMenuItemClicked(sender, args)
{
var menuItem = args.get_menuItem();
var treeNode = args.get_node();
switch(menuItem.get_value())
{
case "DeleteFolder":
var

tree = treeNode.get_treeView();
tree.trackChanges();
var parent = treeNode.get_parent();
parent.get_nodes().remove(treeNode);
tree.commitChanges(); 
break;
}
}

Which results in a runtime error:
Line 503:
Error:'null' is null or not an object.

Any Ideas on how to achive this?

Thank`s
Thomas

Thomas
Top achievements
Rank 1
 answered on 17 Sep 2008
4 answers
139 views
Hello

Not sure if this is possible, but I would like to know if this is possible and if it is can I ge an example...

I have a user control that displays data that I read from the database. I want to use the Grid with custom paging to render the usercontrol within the cell of the grid. So basically I would have 1 column (cell) in the grid and infinite rows... Is this possible to render a usercontrol into a cell? Which method would I have to implement to assign the row values to my user control? Can I implement this along with Filtering and paging?

If I could get any example of this I would sincerely appreciate it.. It can be a real small example, but covering the usercontrol, filtering and custompaging...

Thank You,
Thomas Radomski
Thomas
Top achievements
Rank 1
 answered on 17 Sep 2008
13 answers
377 views
I can export to excel just fine, but when i try to exporttopdf i get a pdf but it is blank.  it only has a header that says "RadGrid export document"

I know this is a simple problem, i am wondering what i am doing wrong?

don
Daniel
Telerik team
 answered on 17 Sep 2008
4 answers
103 views
Hi

Maybe im missing something... I have to make a "MustIhnerit" class that will contains a "mustOverride" function that take a GridCommandEventArg as input parameter. My Problem is, when i use a GridCommandEventArg as parameter i have the error : "'MyFunction' cannot be declared 'Overrides' because it does not override a function in a base class. " but if i use an integer as input parameter, all is wroking good ! So maybe i misundertand somthing about it.

Thanks in advance for your help.
Dominic
Top achievements
Rank 2
 answered on 17 Sep 2008
1 answer
119 views
Hello, I'm new with the radControls for asp.net ajax and I have some questions about deploying my website modifications with the telerik radcontrols on a server.

On my local machine all looks good.
I've just tried to upload my work on my production server.

Here's what i've done :
Upload my Telerik.Web.UI.* on the server's bin folder
Upload my local web.config
Upload my App_Data with RadSpell in it.

The problem is that for my radeditor by exemple, there is no style loaded :
I've lots of :
  • -
  • -
by exemple.
Did I forgot a thing? Is there another thing to do on the server? (I only have access to the FTP)



EDIT : I use an integrated skin : Web20

Thank you,

Julien
Julien
Top achievements
Rank 1
 answered on 17 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?