Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
357 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
140 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
102 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
178 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
113 views
How can we put Different colors for Appointments In a scheduler....
Yana
Telerik team
 answered on 23 Oct 2009
3 answers
201 views

Folks,

 
I am using RadControls for ASP.NET AJAX Q2 2009 SP1 with Visual Studio 2008 SP1.


I have a   
Heirarchical Grid (

MasterTableView

  and  DetailTables  both uses FormTemplate). In DetailTables, I have a RadCombo Box. Is it possible:

 

1)    In RadGrid1_UpdateCommand/ RadGrid1_InsertCommand Events, capture the Template Values of City and ContactTitle into string Variables?  Neither City nor ContactTitle are DataTextField or  DataValueField of ComboBox?

 

2)    After the RadComboBox1_SelectedIndexChanged Event of ComboBox (autopost is set to true here), is it possible to update a label (ComboBoxContactTitle) in DetailTable Form Template?

 

 

Below is my code. Any help will be appreciated.

Thanks


GC_0620

_________

 

protected

 

void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

}


______

<

 

telerik:RadGrid ID="RadGrid1" OnInsertCommand="RadGrid1_InsertCommand"

 

 

OnUpdateCommand = "RadGrid1_UpdateCommand" >

 

<

 

MasterTableView runat = "server" Name = "Master">

 

<!

 

Beginning Block of Child DetailTable -->

 

<

 

DetailTables>

 

 

<telerik:GridTableView runat="server" Name = "Detail"

 

 

<ParentTableRelation>

 

...

 

</ParentTableRelation>

 

 

 

<Columns>

 

....

 

<telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" HeaderStyle-Width="50%"

 

 

SortExpression="ContactName" UniqueName="ContactName" >

 

 

</telerik:GridBoundColumn>

 

....

 

</Columns>

 

 

<

 

EditFormSettings EditFormType="Template">

 

<

 

EditColumn UniqueName="EditCommandColumn1"></EditColumn>

 

 

<FormTemplate>

 

 


<
table id="Table1">

 

 

<tr>

 

 

<td>

 

Contact Name

 

</td>

 

 

<td>

 

 

<telerik:RadComboBox runat="server"

 

 

ID="RadComboBox1"

 

 

DataTextField="ContactName"

 

 

DataValueField="ContactName"

 

 

HighlightTemplatedItems="true"

 

 

Height="190px"

 

 

Width="220px"

 

 

DropDownWidth="420px"

 

 

DataSourceID="SQLDataSource1" AutoPostBack="True"

 

 

onselectedindexchanged="RadComboBox1_SelectedIndexChanged"

 

 

SelectedValue='<%#Bind("ContactName") %>'>

 

 

 

<HeaderTemplate>

 

 

<ul>

 

 

<li class="col1">Contact Name</li>

 

 

<li class="col2">City</li>

 

 

<li class="col3">Title</li>

 

 

</ul>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<ul>

 

 

<li class="col1"><%# DataBinder.Eval(Container.DataItem, "ContactName") %></li>

 

 

<li class="col2"><%# DataBinder.Eval(Container.DataItem, "City") %></li>

 

 

<li class="col3"><%# DataBinder.Eval(Container.DataItem, "ContactTitle") %></li>

 

 

</ul>

 

 

</ItemTemplate>

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

<td colspan="2" style="font-size:small; z-index:0; font-family:Bookman Old Style; color:#669999">

 

 

<asp:Label ID="ComboBoxContactTitle" runat="server" Text="Contact Title"

 

 

Font-Underline="True">

 

 

</asp:Label>

 

 

</td>

 

 

 

</tr>

 

...

 

</table>

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

 

</telerik:GridTableView>

 

</

 

DetailTables>

 

<!

 

Ending Block of Child DetailTable -->

 

<!

 

Beginning Block of MasterTableView -->

 

 

<Columns>

 

...

 

</Columns>

 

 

<EditFormSettings EditFormType="Template">

 

 

<FormTemplate>

 

...

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

...

 

</

 

MasterTableView>

 

<!

 

Ending Block of MasterTableView -->

 

</

 

telerik:RadGrid>

 

<

 

asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:SomeConnectionString %>"

 

 

SelectCommand="SELECT * FROM [Customers] ORDER BY City">

 

 

</asp:SqlDataSource>

 


______

______

Freddy Beltran
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
75 views
hi all,

how to show all the appointments in monthview? i dont want to show the "more" link.

thanks,
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2009
2 answers
151 views
Hi friends,

In Edit appointment (scheduler)  there is a radio button, on clicking the radiobutton a drop down should display ,ie if the radiobutton is not selected visibility of dropdown is false , I dont knw how to do this,
any idea

regards
chinnu
Chinnu Prabhakar
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
93 views
Hi Friends,

When I click on the option button of the scheduler , the editAppointmnet window appears behind the menu bar of my web page, is it possible to avoid this , here is the image


REgards

chinnu


Chinnu Prabhakar
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
242 views
Hi

I've got a nested gridview which I want to be editable. The master gridview works fine out of the box, but I need to set one of the controls in the nested grid to the parent key field value at insert, and preferably hide it in edit mode as well. Is there a tutorial for how this is done somewhere?

Grid one: PersonID
Grid two: AddressID, PersonID (must get value from parent grid)....

Re
Dennis
Dennis Gundersen
Top achievements
Rank 1
 answered on 22 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?