Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 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
108 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
95 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
76 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
85 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
91 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
2 answers
68 views
Hello,

We used a RadTreeView with LoadOnDemand for the load of the nodes.
Unfortunatly during the load with IE7, the little animation is not showed and the text of the node disappear.
When we setted a LoadingMessage, the message appears and the text of the node too.
Whith IE8 and Firefox all is working well.

Can somebody help us?

Thanks by advance.
Regards.
Didier.
EPU
Top achievements
Rank 1
 answered on 10 May 2010
3 answers
93 views
How can I access a node's LongDesc client side?

Thanks
Nikolay Tsenkov
Telerik team
 answered on 10 May 2010
7 answers
534 views

I created a RadGrid with predefined columns. At first when I ran the webpage, the grid was blank, not even showing the headers. But by creating a blank dataset in a Session variable and assigning it to the RadGrid, I get it to display. However, the "Add Record", "Edit", and "Delete" buttons don't work.

The online demos are all bound to a datasource, but we don't want that. How can the RadGrid work with a dataset in memory? I want the MasterTableView to load and display values, which I'll save later, all at once. My dummy HTML and code-behind are below...


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
          
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None" 
            AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True">  
            <HeaderContextMenu EnableAutoScroll="True">  
            </HeaderContextMenu> 
            <MasterTableView CommandItemDisplay="Top">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Col1" HeaderText="Col1" UniqueName="Col1" SortExpression="Col1">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Col2" HeaderText="Col2" UniqueName="Col2" SortExpression="Col2">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 
          
    </div> 
    </form> 
</body> 
</html> 
 


Imports System.Data  
 
Partial Class _Default  
    Inherits System.Web.UI.Page  
 
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
 
        If Not IsPostBack Then 
 
            Dim ds As New DataSet  
            Dim dt As New DataTable  
            dt.Columns.Add("Col1")  
            dt.Columns.Add("Col2")  
 
            ' Create dummy rows to delete/edit  
            Dim vals(1) As String 
            vals = New String() {"100""Desc100"}  
            dt.Rows.Add(vals)  
            vals = New String() {"200""Desc200"}  
            dt.Rows.Add(vals)  
 
            ds.Tables.Add(dt)  
            Session("myDS") = ds  
            RadGrid1.DataSource = Session("myDS")  
            RadGrid1.MasterTableView.DataSource = Session("myDS")  
 
        End If 
 
    End Sub 
 
End Class 
Mira
Telerik team
 answered on 10 May 2010
1 answer
69 views
When i edit a row, i don't want a edit form or an inline edit. Instead i have some controls on the top of my page which will be populated when i click edit in radgrid. My problem is even if i can achieve this, still updat/cancel options were showing below the selected row. I made that invisible by following some code. Update & Cancel buttons are made invisible. But how to avoid the space below the selected row?
Shinu
Top achievements
Rank 2
 answered on 10 May 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?