Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
210 views
hi

how cn i close the expanded panel bar when i click a menu w/ childmenu inside?
Webster Velasco
Top achievements
Rank 2
 answered on 10 May 2010
5 answers
108 views
Hi,

How can i retrieve data from the radgrid in a datatable-like object ?

like export to excel, keeping order and filter.
The final goal : i would like get all datas from the radgrid and set the datasource of a RadChart with it.

MasterTableView.DataSource is the original datasource (with no filter or sort), and iterate the items, only iterate the current page (RadGrid do not cache data, only keep current page...)

my dream is something like that :
myRadChart.DataSource = myRadGrid.MasterTableView.SortedAndFilteredDataSource;

any help will be appreciated :)
theaidan
Top achievements
Rank 1
 answered on 10 May 2010
3 answers
78 views
For example, I am dragging a row from a grid to a Scheduler control. The grid row contains about 30 columns. However, I only want to display 4 columns in the drag image that I will drop on the Scheduler control.

Thanks in advance,

Mike
Dimo
Telerik team
 answered on 10 May 2010
4 answers
238 views

After much pain and agony with RadPanelBar and user controls, I'm trying a different approach in using ItemTemplates for the Panel bar items with databinding to a custom object collection.  Now I'm having problems collapsing the different items.  I know that I cannot collapse root items and have tried to follow your examples on how structure my panel bar properly to allow for collapse/expand but I cannot find any documentation in regards to data-bound panel bars..  and I cannot spend anymore time on this one little part of my website.

Here's my markup, designed per http://www.telerik.com/help/aspnet-ajax/panelbar-troubleshooting-root-items-collapse.html:

                <telerik:RadPanelBar ID="radPanelBarAccountList" Runat="server" Height="200%"   
                Width="100%" Skin="Vista" AllowCollapseAllItems="True">  
                    <Items> 
                       <telerik:RadPanelItem runat="server" Text="Replace With Account Name">  
                           <Items> 
                               <telerik:RadPanelItem> 
                                   <ItemTemplate> 
                                       <UC1:AccountInfo ID="AccountInfo1" runat="server" AccountID='<%# DataBinder.Eval(Container.DataItem, "Id") %>' /> 
                                   </ItemTemplate> 
                               </telerik:RadPanelItem> 
                           </Items> 
                       </telerik:RadPanelItem> 
                   </Items> 
                </telerik:RadPanelBar> 

Here's my databinding in code behind:

        'Get collection of accounts  
        Dim accountCollection As Collection(Of FIAccount)  
        Dim accountsPresenter = New AccountsPresenter(New Guid(Session("SubscriberId").ToString), BasePage.GetCultureName.ToString())  
        accountCollection = accountsPresenter.GetAccounts("Actual", False, Account.AccountStatus.All)  
 
        'Bind panel bar  
        With radPanelBarAccountList  
            .DataSource = accountCollection.ToList  
            .DataTextField = "Name" 
            .DataValueField = "Id" 
            .DataBind()  
        End With 

The root items are displaying my account names, as expected, but I cannot expand them to see the user control inside.  I initially defined the markup without any nested items, with the user control defined as an ItemTemplate, and it rendered correclty but I couldn't collapse the items. 

This is kinda crazy!  I can't believe I have to nest so many panel bar items just to get this working properly but if that's how I have to do it, can you give me a code-behind sample on how to bind the individual items so I can display the text value on the child panel items, instead of the root panel item, so I can collapse/expand it?  Or is there a javascript function I can wire up on item click or something?  Like I said, I cannot spend much more time on this and I use this RadPanelBar all over my site!!!

Please Help!!!






Nikolay Tsenkov
Telerik team
 answered on 10 May 2010
1 answer
156 views

 

In a RadScheduler how do I get the month of the appointment from the following code and how do I set the default month for the scheduler during page load (code behind)?

 

function onAppointmentClick(sender, eventArgs)

{

window.location.href = "Events.aspx?event=" + eventArgs.get_appointment().get_id();

}

 

Thanks

Robert

Shinu
Top achievements
Rank 2
 answered on 10 May 2010
1 answer
115 views
Hi,

I created a Splitter (width=100%, but not setting its height as I want it to be dynamic) and added a sliding pane on the right  , then I put 2 docks inside the pane under the left areas.

I found that the docks can resize automatically based on their content but the size of the splitter remain unchanged, how to deal with this problem?

Thanks.


Tsvetie
Telerik team
 answered on 10 May 2010
1 answer
99 views
Hello,

I have a code like this:
         <telerik:RadGrid runat="server" ID="RadGrid1" Skin="WebBlue" PagerStyle-AlwaysVisible="true" GridLines="Horizontal" AutoGenerateColumns="true" OnNeedDataSource="RadGrid1_NeedDataSource"  AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnUpdateCommand="RadGrid1_UpdateCommand" AllowPaging="true" PageSize="20" OnItemDataBound="RadGrid1_ItemDataBound1"> 
                <MasterTableView AutoGenerateColumns="false" DataKeyNames="DoctorId" > 
                <Columns> 
                    <telerik:GridBoundColumn  HeaderText="DoctorId" DataField="DoctorId" UniqueName="DoctorId" Visible="false" /> 
                    <telerik:GridBoundColumn  HeaderText="Name" DataField="DoctorName" UniqueName="Name" /> 
                    <telerik:GridBoundColumn  HeaderText="Category" DataField="Category" UniqueName="Category" /> 
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" /> 
                </Columns> 
                <EditFormSettings EditFormType="Template"> 
                <FormTemplate> 
                    <table> 
                         
                        <tr> 
                            <td><h3>Doctor Details:</h3></td> 
                        </tr> 
                        <tr> 
                           <td>Name:</td> 
                           <td><asp:TextBox ID="txtDoctorname" runat="server" Text = '<%# Eval("DoctorName") %>'></asp:TextBox></td> 
                           <td>Category:</td> 
                           <td> 
                                <asp:DropDownList ID="drpCategory" runat="server"> 
                                    <asp:ListItem Text="Physician" Value="23" Selected="True"></asp:ListItem> 
                                    <asp:ListItem Text="Dentist" Value="14"></asp:ListItem> 
                                    <asp:ListItem Text="Alt Medicine" Value="22"></asp:ListItem> 
                                </asp:DropDownList> 
                                 
                           </td> 
                              <td>Profile type:</td> 
                           <td> 
                                <asp:DropDownList ID="drpProfile" runat="server"> 
                                     
                                </asp:DropDownList> 
                                 
                           </td> 
                        </tr> 
                    </table> 
                 
                </FormTemplate> 
                 
                </EditFormSettings> 
                 
            </MasterTableView> 
            </telerik:RadGrid>  

How do I generate second drop down list "drpProfile" dynamically in code behind  based on selected value of "drpCategory" list?
Please, help.

Thanks,
Radoslav
Telerik team
 answered on 10 May 2010
3 answers
77 views
Hi,

I am trying to subclass RadGrid control as follows :

 public class TestGridView : RadGrid
{
}

In Oninit function of the class I have added:
RadAjaxManager1  = RadAjaxManager.GetCurrent(this.Page);

And onLoad function of the class I have added
if (RadAjaxManager1 != null)
           {         
               RadAjaxManager1.AjaxSettings.AddAjaxSetting(this, this);              
           }




I compile this into dll and use it in my web project.
I do have a master page whereby i have added above contentholder:

 <asp:ScriptManager runat="server" ID="ScriptManage1"></asp:ScriptManager>
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
 </telerik:RadAjaxManager>

The problem is the Grid is not getting updated on paging or sorting..nothing works
But if i use asp.net update panel it gets updated with few bugs though.

Please if anyone can give me best example of sub classing RadGrid with RadAjaxManager working with complete sorting and paging..

Thanks.


Veli
Telerik team
 answered on 10 May 2010
1 answer
86 views
In the Telerik licensing, it mentions "You include a valid copyright message in your solution in a location viewable by the end-users (e.g. "About" box).  What is needed for web sites using Telerik controls?  Does a standard copyright notice apply?  Are there samples of customer sites that have this that I can use as a reference?
Ivo
Telerik team
 answered on 10 May 2010
2 answers
95 views
Hi,


This is shnaker i did one project .that project is on site now it's working. good. But here i face  perfamance problem, That project site is run  very slow on server how to improve perfamance of that project it's run slowly in server. please  how to improve perfamance.please   Give any solutions it's very argent .please replay .
how to improve .

thanks and regards 
shanker.B
shanker bangari
Top achievements
Rank 1
 answered on 10 May 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?