Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Is there a way to set min and max date of the DateInputSetting on the RadInputManager from the server-side? We have are building an application that requires these settings to be dynamic. Or is this entirely on the client-side? Or should I just stick with RadDateInputs to make this work? Can you link some sample codes? Thanks.
Dimo
Telerik team
 answered on 18 Sep 2009
1 answer
69 views
On

http://www.telerik.com/help/aspnet-ajax/window_overviewwindowstructure.html

it says TitleBarVisible instead of VisibleTitleBar

:-)
Marc



Svetlina Anati
Telerik team
 answered on 18 Sep 2009
1 answer
107 views

On my web page i have a telerik calendar and also an create appointment button. when user clicks on insert appointment button, i want to show the insert appointment dialog directly. i know that you have a method showInsertFormAt() with timeslot parameter. However from my client side button click event, i cannot seem to create timeslot object. i tried using

 

 

<script type="text/javascript">

 

function

 

btn_click()

 

{

 

var schedulerPopupCalendar = $find('<%= radScheduler1.ClientID %>');

 

 

var

 

timeslot = new Telerik.Web.UI.TimeSlot(); \\ i get error here.

 

schedulerPopupCalendar.showInsertFormAt(timeslot); 

 

}

but this Telerik.Web.UI.TimeSlot() object does not exist.

I will appreciate the help.

Peter
Telerik team
 answered on 18 Sep 2009
2 answers
71 views

Posted 18 hours ago (permalink)

Hi;

We are using Tabstrip control (Sitefinity 3.7) with full images (no text). This approach works fine with All browsers but IE7 and IE6. i have searched Rad Controls forum but couldnt find any similar issue.Any suggestion?

P.S. :Html code which is rendered by "tabstrip" generates Span within Anchor tag  doesnt work in IE 7 & and IE 6
Gokhan
Top achievements
Rank 2
 answered on 18 Sep 2009
1 answer
92 views
I am looking for a feature that is very similar to what we experience when we do a Google search.  As we type, it appears that what we have typed is sent to the server in the background via Ajax and used with wild cards in a select query to return filtered results to the client. So the filtering is done on the server and not on the client.

If I understand the ComboBox correctly, its filter is applied against data that already exists on the client. I need the filtered data to come from an Ajax call to the server and not get all the data and then filter it on the client.

If I am correct that this feature is not currently available, it sure would be nice if it was.

If this feature is not available, I would appreciate how best to solve the problem using what capabilities currently exist.
Atanas Korchev
Telerik team
 answered on 18 Sep 2009
3 answers
602 views
I've specified back ground color for my grid rows based on the text in one of the columns. The issue I'm facing is the background color disappears and becomes white when I sort the column. This happens only in IE 6 and not in the higher versions. Here is the item databound event and the grid definition. Note: I populate the grid using "need datasource event".

 <telerik:RadGrid ID="glBabies"                     
                     runat="server"
                     AllowSorting="True"
                     AutoGenerateColumns="False"
                     EnableAjax="true"
                     GridLines="None"
                     AllowPaging="False"                                        
                     onneeddatasource="glBabies_NeedDataSource"
                     OnItemDataBound="glBabies_ItemDataBound"
                    >
            <ExportSettings ExportOnlyData="true" IgnorePaging="false" OpenInNewWindow="true"  FileName="Tribune Export" />         
            <MasterTableView Width="100%" DataKeyNames="PortraidID" AutoGenerateColumns="False">
                        <columns>    
                        <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection"  runat="server"></asp:CheckBox>
                            </ItemTemplate>
                            <ItemStyle Width="10px" />
                        </telerik:GridTemplateColumn>                                                    
                            <telerik:GridBoundColumn DataField="PortraidID" HeaderText="Portrait ID" SortExpression="PortraidID" UniqueName="PortraidID" >
                                <HeaderStyle Width="10px" />
                                <ItemStyle HorizontalAlign="Left" />
                                <ItemStyle Width="10px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="FirstName" HeaderText="Name" SortExpression="FirstName" UniqueName="FirstName">
                            <HeaderStyle Width="75px" /><ItemStyle HorizontalAlign="left" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="MotherFN" HeaderText="Parents" SortExpression="MotherFN" UniqueName="Parents">
                             <HeaderStyle Width="125px" /><ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>    
                             <telerik:GridBoundColumn DataField="Weight" HeaderText="Weight" SortExpression="Weight" UniqueName="Weight">
                            <HeaderStyle Width="75px" /><ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>    
                            <telerik:GridBoundColumn DataField="Date" HeaderText="Date" SortExpression="Date" UniqueName="Date" DataType="System.DateTime" >
                            <HeaderStyle Width="75px" /><ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Sex" HeaderText="Sex" SortExpression="Sex" UniqueName="Sex" Display="false"></telerik:GridBoundColumn>    
                            <telerik:GridBoundColumn DataField="FatherFN" SortExpression="FatherFN" UniqueName="FatherFN" Display="false"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="MiddleName" SortExpression="MiddleName" UniqueName="MiddleName" Display="false"></telerik:GridBoundColumn>        
                        </columns>
                    </MasterTableView>
    </telerik:RadGrid>

Code behind:



protected void glBabies_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            if (e.Item.Cells[10].Text != "" && e.Item.Cells[10].Text != "&nbsp;")
                e.Item.Cells[4].Text = e.Item.Cells[4].Text + " " + e.Item.Cells[10].Text;
            if (e.Item.Cells[8].Text == "Female")
            {
                e.Item.BackColor = System.Drawing.ColorTranslator.FromHtml("#fdebfb");
                if (e.Item.Cells[9].Text != "" && e.Item.Cells[9].Text != "&nbsp;")
                    e.Item.Cells[5].Text = "Daughter of " + e.Item.Cells[5].Text + " & " + e.Item.Cells[9].Text;
                else
                    e.Item.Cells[5].Text = "Daughter of " + e.Item.Cells[5].Text;
            }
            else
            {
                e.Item.BackColor = System.Drawing.ColorTranslator.FromHtml("#dfe7fa");
                if (e.Item.Cells[9].Text != "" && e.Item.Cells[9].Text != "&nbsp;")
                    e.Item.Cells[5].Text = "Son of " + e.Item.Cells[5].Text + " & " + e.Item.Cells[9].Text;
                else
                    e.Item.Cells[5].Text = "Son of " + e.Item.Cells[5].Text;
            }
        }
    }
Dimo
Telerik team
 answered on 18 Sep 2009
3 answers
131 views
Is it possible to use the SelectedDate in RadCalendar as a parameter for  an ObjectDataSource? I wish to filter the records shown on my page, based on the date the user picks in the calendar, or is there another way to do this? I can't seem to find any examples on this...
Martin
Telerik team
 answered on 18 Sep 2009
1 answer
93 views
Hi

Thought Id share an issue I had today with combobox's that are related like the example at http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

Basically if you add items to the code infront like this:

            <telerik:RadComboBox ID="RadComboBox3"   
                runat="server"   
                Width="186px"   
                CssClass="ComboBox_Cities"   
                OnClientItemsRequested="ItemsLoaded"   
                OnItemsRequested="RadComboBox3_ItemsRequested" 
                AppendDataBoundItems="true"   
                ShowMoreResultsBox="false" 
                NoWrap="true" 
                EnableScreenBoundaryDetection="false"   
                EmptyMessage="Type a city name"   
                AllowCustomText="false"   
                MarkFirstMatch="true">  
                <Items> 
                    <telerik:RadComboBoxItem Text="other, please specify" Value="-1" /> 
                </Items> 
            </telerik:RadComboBox>    

Then you will not get a SelectedValue returned when you submit the form. You get the Text property but not SelectedValue. Solution is to add these default RadComboBoxItems after you have databound the others in the OnItemsRequested handler.

Not sure if this is an actual issue with the control, or that a warning needs to be put somewhere, but this is something Im sure others would want to do in future.
Simon
Telerik team
 answered on 18 Sep 2009
1 answer
135 views
Im looking to mark biweekly dates on a cal to show pay days.  This code works but it only shows on the current calendar how do I modify it so if the scroll thru the mutiple months those days show up as marked?


   Private Sub Page_Load(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender  
        startDate = CType(RadCalendar1.CalendarView, MonthView).MonthStartDate  
        endDate = CType(RadCalendar1.CalendarView, MonthView).MonthEndDate  
        Dim _Date As Date = "2009-09-11" 
 
        Do While _Date <= Now.AddYears(1)  
            DayOfMonth = _Date.Day  
            MonthMonth = _Date.Month  
            YearYear = _Date.Year  
 
            Dim CurrentDate As DateTime = e.Day.Date 
            If startDate <= CurrentDate And CurrentDate <= endDate Then 
                If CurrentDate.Day = DayOfMonth And CurrentDate.Month = MonthMonth And CurrentDate.Year Then 
                    Dim currentCell As TableCell = e.Cell  
                    currentCell.Style("background-color") = "green" 
                End If 
            End If 
            _Date = _Date.AddDays(14)  
        Loop 
    End Sub 
Dimo
Telerik team
 answered on 18 Sep 2009
1 answer
83 views
Hi,

I wonder if the following can be done for the table function in the editor.

1. Set  <table cellspacing=”0” cellpadding=”0” border=”0”> to be default.
2. Could CSS and Back Image options be turned off for the table wizard?

Kind Regards
Cecilia
Tervel
Telerik team
 answered on 18 Sep 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?