Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
303 views
Hello,

I have 2 dropdowns, 2 textboxes and two buttons in my form. OnClick the button does certain things. before that, I need to validate a condition. the condition is that if only the txtbox2 is clicked, and no other parameter is selected / entered, then I should show a pop up saying the "txtBox 2 alone can't be entered, and Please also select item from first dropdown!".. Logic needed is not complicated. I am having a problem in finding the object in my javascript function.

I ahve called IsTREmpty() on OnClientClick event for the button. I am getting the error saying object required. How can I access the form element in my javascript.?

function

IsTREmpty() {  

var tr = document.getElementById('rdCmbTR').value;  

var tt = document.getElementById('rdCmbTT').value;  

var tid = document.getElementById('rdTxtTId').value;  

var tDesc = document.getElementById('rdTxtTDesc').value; 
alert(tDesc.length); 

if (tDesc.length > 0) {  

if (tt == -1 && tid.length == 0 && tr == -1) {  

alert('Please Select T R'); }

}

}

Slav
Telerik team
 answered on 13 Dec 2011
1 answer
274 views
Hi,

   I want to  parse the recurrence rule to extract all occurrences in SQL server2008, by using user defined functions or stored procedures or any other way. I request you guys to help me out in this as early as possible if possible. Its very urgent requirement for me. Thanks in advance.

Regards,
Maddela
Peter
Telerik team
 answered on 13 Dec 2011
3 answers
93 views
Hi All,
In my application I want that if appointment subject is very long then it do not go to next line but in same line '....' should appear in the last. How it will be possible?
Peter
Telerik team
 answered on 13 Dec 2011
1 answer
99 views
I have a grid using GridBoundColumns.  The first column is a GridButtonColumn whose Text property is blank.  When the user clicks the button, the user's login Id is stored in a database table and the button's text is set to the user's login Id.  This all happens in the grid's ItemCommand event.  The code is:

        If e.CommandName = "Assign" Then
            Dim item As GridDataItem = CType(e.Item, GridDataItem)
            Dim strJobNumber As String = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("Job_Number")
            Dim strButtonText As String = CType(item("button").Controls(0), Button).Text
            Dim NTLoginID As String = GetCurrentUser()
              
            If String.IsNullOrEmpty(strButtonText) Then
                Dim _db As New MyAssembly.DataContext(ConfigurationManager.ConnectionStrings("MyCNString").ConnectionString)
                Dim rslt = _db.TMSearchAssignments.Where(Function(x) x.JobNumber.Equals(strJobNumber)).FirstOrDefault
                If Not rslt Is Nothing Then
                    CType(item("button").Controls(0), Button).Text = rslt.NTLoginID
                    Exit Sub
                Else
                    db.StoredProcedureRepo.sp_Insert_TMSearchAssignment(strJobNumber, NTLoginID, False)
                    CType(item("button").Controls(0), Button).Text = NTLoginID
                End If
            End If
End If

That code works great and the button's text is updated as desired. The problem is when the user goes to the next page in the grid and the returns to the previous page, the text is gone.  How can I keep the text from disappearing?

Thanks,

James
James
Top achievements
Rank 1
 answered on 13 Dec 2011
3 answers
97 views
I'm getting data from database. I have two tables which create appointments. The classes which represent these tables differ by one boolean variable.

I'm trying to color the cells from one of the table green.

My css is here:
.rsMonthView .rsAptContent 
                {  
                  background: #D0ECBB;  
                }
                
                .rsDayView .rsAptContent 
                {  
                  background: #D0ECBB;  
                }
                
                .rsWeekView .rsAptContent 
                {  
                  background: #D0ECBB; 
                }
                
                .rsTimelineView .rsAptContent 
                {  
                  background: #D0ECBB;  
                }


How to check which table from is the cell?
Peter
Telerik team
 answered on 13 Dec 2011
7 answers
158 views
Hi Every one,
I want to build a class inherits from charts to make my charting dynamic. But when i try to make such class and add properties of chart control , it fails to set the properties and shows it read only.
Regards
Muhammad Shoaib.

Ves
Telerik team
 answered on 13 Dec 2011
1 answer
130 views
how can we use Raddock in mvc3 application.
Slav
Telerik team
 answered on 13 Dec 2011
5 answers
184 views
In the month view, Is there a way to prevent the user from clicking on the day number to look at the individual day?  I am not using this as a traditional scheduler, but rather a monthly read only informational page.  I have everything disabled so far except clicking on the number in the top left corner of each day.

Thanks.
Ivana
Telerik team
 answered on 13 Dec 2011
8 answers
195 views
Hello
I am Using RelatedLoDRadComboboxesInAdvForm and I want to Display some of my text in my Appointment when all data is saved.
 but Its Showing like this in my 1.jpg

AdvancedForm.aspx
  
<asp:Panel  runat="server" ID="ResourceControls">
 <asp:Label ID="Label1" runat="server" AssociatedControlID="ContinentsRadComboBox">Continent:</asp:Label>
                        <telerik:RadComboBox ID="ContinentsRadComboBox" runat="server" Width="186px"
                            OnClientSelectedIndexChanged="LoadCountries" />
                         
                        <asp:Label ID="Label2" runat="server" AssociatedControlID="CountriesRadComboBox">Country:</asp:Label>
                        <telerik:RadComboBox ID="CountriesRadComboBox" runat="server" Width="186px" 
                            OnClientItemsRequested="CountriesLoaded"  OnClientSelectedIndexChanged="LoadCities" 
                            EnableViewState="false" />
  
  
                            <asp:Label ID="Label3" runat="server" AssociatedControlID="CitiesRadComboBox">Cities:</asp:Label>
                        <telerik:RadComboBox ID="CitiesRadComboBox" runat="server" Width="186px"
                             
                            OnClientItemsRequested="CitiesLoaded"
                            EnableViewState="false" />
    </asp:Panel>
  
DefaultVB.apsx
  
 <AppointmentTemplate>
            <div class="rsAptSubject">
            <%# Eval("Subject")%>
            </div>
            <div>  <%# Eval("Description")%></div>
            <div>  <%# Eval("Continent")%></div>
             <div>  <%# Eval("Country")%></div>
              <div>  <%# Eval("City")%></div>
              
            </AppointmentTemplate>
 But its Showing me my IDs instead of Names...
Please Help
Ivana
Telerik team
 answered on 13 Dec 2011
2 answers
153 views
I need create something like image.
A windows o a panelBar inside content with X for close.
Not Popup. I need inside Content.

Is Any control for that?

July
Top achievements
Rank 2
 answered on 13 Dec 2011
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?