Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
I am using RAD DatePicker Control. When i click on Calendar button  i want the default calendar of 1980 year to get opened instead of present day calendar.

Anybody can please help me..

Regards,
Gaurav
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2009
1 answer
104 views
I am using RAD Date PIcker Control. Clicking on calendar image when calendar opens i dont want calendar window to show dates. It should only show months of selected year.
Anybody can help me in achieving this.

Thanks in advance.

Regards,
Gaurav
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2009
7 answers
150 views
Hello all,

I am finding that if I use the ownd.set_height command for a window that is in a restrictionzone that the height request is ignored.

 function OnClientPageLoad(oWnd)  
    {  
        oWnd.set_width(550);  
        oWnd.set_height(600);  
        oWnd.set_status("");  
    } 

Is this known functionality?

Regards
Mark.
Svetlina Anati
Telerik team
 answered on 23 Oct 2009
2 answers
110 views
Is there any way to close all expanded views when opening another?
Have a grid with a nestedViewTemplate but want just want onte nested item to be expanded at a time.

 

 

 

protected void RadGridUsers_ItemCommand(object source, GridCommandEventArgs e)  
{  
   if (e.CommandName == "ExpandCollapse")  
   {  
     foreach (GridTableView gtv in RadGridUsers.MasterTableView.DetailTables)  
     {  
       gtv.HierarchyDefaultExpanded = false;  
     }     
 
   GridDataItem item = (GridDataItem)e.Item;  
   string strkey = item.GetDataKeyValue("UserID").ToString();  


 

<telerik:RadGrid ID="RadGridUsers" runat="server"   
AllowPaging="False" AutoGenerateColumns="False" 
GridLines="None" Skin="Office2007" AllowMultiRowSelection="true"   
OnItemCommand="RadGridUsers_ItemCommand" 
OnDeleteCommand="RadGridUsers_DeleteCommand">  
<MasterTableView CellSpacing="-1" DataKeyNames="UserID">  
  <NoRecordsTemplate> 
    Det fanns inga deltagare tillgängliga.  
  </NoRecordsTemplate> 
  <NestedViewTemplate> 
    <asp:Panel ID="PanelUserInfo" runat="server"></asp:Panel> 
  </NestedViewTemplate> 
  <Columns> 
    <telerik:GridClientSelectColumn UniqueName="column" DataTextField="UserId" /> 
    <telerik:GridBoundColumn HeaderText="Deltagare" UniqueName="column1" DataField="UsersName" /> 
    <telerik:GridBoundColumn HeaderText="Företag" UniqueName="column2" DataField="CompanyName" Visible="false" /> 
    <telerik:GridBoundColumn HeaderText="E-post" UniqueName="column3" DataField="Email" /> 
    <telerik:GridButtonColumn CommandName="Delete" ConfirmDialogType="RadWindow" ButtonType="ImageButton" UniqueName="Delete" Text="Ta bort" ConfirmText="Vill du verkligen ta bort denna deltagaren?" ConfirmTitle="Ta bort deltagare" /> 
   </Columns> 
 </MasterTableView> 
 <PagerStyle AlwaysVisible="true" /> 
 <ClientSettings> 
   <Selecting AllowRowSelect="true" /> 
 </ClientSettings> 
</telerik:RadGrid> 


This doesn't work

 

 

 

Daniel Pålsson
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
122 views

Hi Telerik

I wouldlike to add a simple asp.net  button tothe FieldEditor Controls collection.

Is it possibleto add a button from code(C#) if the Telerik.SharePoint.FieldEditor?

Im tryingto do something like this, “this.radEditorControl.Tools.Add” but this.radEditorControlis always null.

And

Have yousome documentation for the Telerik.SharePoint.FieldEditor?

BR andThanx

Jakob

Stanimir
Telerik team
 answered on 23 Oct 2009
1 answer
350 views
Is there a way for me to set the mask that will allow only numbers and letters (of any case)?  I looked at the documentation and can only see a way to set the mask to be either a number or a letter.  There is the mask a, but that allows users to enter symbols.

Also, is there a way for me to define a mask where I don't know the length of text the user will be entering?  For example, if I have a field for lastName I won't know the length of the name, but I'd like to restrict this field to letters only. 
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2009
2 answers
135 views
Hi,

I'm struggling to find a way to add items to the second level of an existing RadMenu coded in ASP using my VB. I know I can create the whole menu in VB but i really don't want to go through all that trouble if there is a better way.

My ASP looks like this:

 

<telerik:RadMenu runat="server" ID="radmenu1" Skin="Sunset" EnableEmbeddedSkins="false" Width="895px">  
    <Items> 
        <telerik:RadMenuItem Text="HOME" NavigateUrl="~/" /> 
        <telerik:RadMenuItem Text="LINK2" NavigateUrl="~/Link1.aspx" /> 
        <telerik:RadMenuItem Text="LINK4">  
            <Items> 
                <telerik:RadMenuItem Text="LINK4.1" NavigateUrl="~/Link4.1" /> 
                <telerik:RadMenuItem Text="LINK4.2" NavigateUrl="~/Link4.2" /> 
                <telerik:RadMenuItem Text="LINK4.3"/>  
                <%--THIS IS WHERE I WANT TO ADD ITEMS--%> 
            </Items> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="LINK5" Visible="true" NavigateUrl="~/Link5.aspx" /> 
    </Items> 
</telerik:RadMenu>
 
 

And my VB:

Dim sConStr As String = ConfigurationManager.ConnectionString("MyConnectionString").ConnectionString  
Dim sSQL As String = "" 
Dim cm As SqlCommand  
 
sSQL = "SELECT Text, ID, FROM Table " 
 
cm = New SqlCommand(sSQL, New SqlConnection(sConStr))  
cm.Connection.Open()  
dr = cm.ExecuteReader  
 
Dim oRadMenuItem As New RadMenuItem  
 
 Do While dr.Read  
 
    oRadMenuItem = New RadMenuItem  
    oRadMenuItem.Text = dr("Name")  
    oRadMenuItem.NavigateUrl = "TARGETLINK?id=" & dr("ID")  
    radmenu1.Items(4).Items(4).Items.Add(oRadMenuItem)  
 
 Loop 
 
cm.Connection.Close()  
 
 

 Clearly this is not the way to do this. Any help will be greatly appreciated.

Peter Ivanov
Top achievements
Rank 2
 answered on 23 Oct 2009
2 answers
99 views
hello there

I have the following radgrid  and a button

=========================================================
ID     Number
--      ---------
1        100.00
2         999.00
3         666.000

--Click Me--
=========================================================





I am trying to do when the user clicks on --Click Me--

--> it actually loops thru all the radgrid and  check the column (Numbers)
--> if the number is > 500.00 then the font is red else blue

Kenneth
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
174 views
hi

I have this error:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated

I don't seems to find any error in this code:

 

 


Protected

 

Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

Dim radmenu As RadMenu = DirectCast(Master.FindControl("RadMenu1"), RadMenu)  
 
radmenu.FindItemByText("Home").Enabled = "false" 
 
radmenu.FindItemByText("About Us").Enabled = "false" 
End Sub
 
<telerik:RadMenu ID="RadMenu1" Runat="server" Width="100%"   
 
style="top: 0px; left: 0px" Skin="Black">  
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
 
<Items> 
 
<telerik:RadMenuItem runat="server" Text="Home|" Font-Bold="true"   
 
ForeColor="#FFFFC0" NavigateUrl="~/Home.aspx" > 
 
</telerik:RadMenuItem> 
 
<telerik:RadMenuItem runat="server" Text="About Us|" Font-Bold="true"   
 
ForeColor="#FFFFC0" NavigateUrl="~/about.aspx">  
 
</telerik:RadMenuItem> 
 
</Items> 
 
</telerik:RadMenu> 
 

 

Yana
Telerik team
 answered on 23 Oct 2009
1 answer
108 views
How can we put Different colors for Appointments In a scheduler....
Yana
Telerik team
 answered on 23 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?