Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
By default RadDateTimePicker taking Today date whenever select time from timepicker.

Expected Behavior:
Suppose today date is 23-Apr-2012.When we choose time(7:00 PM) for the first time it should selected as "XX-Apr-2012 7:00 PM" instead "23-Apr-2012 7:00 PM". 

Note: 'XX' could be any date.It is purely situational.

Can it possible to change default behavior to expected date ???

Thanks,
Pradeep
Eyup
Telerik team
 answered on 25 Apr 2012
3 answers
247 views

I get 5 steps forward and then hit a brick wall with the RADGrid.

I have a page with a MultiView, encapsulating two views. View1 displays View2 when a particular LinkButton is pressed. On View2, I have a RADGrid. Within it I am dynamically creating a ButtonColumn of LinkButtons. The issue is that when a LinkButton is selected from one of the rows, I need the MultiView to change back to View1. Problem is, because the LinkButton is inside the RADGrid, it execute as an Asynchronous PostBack, and even though my code changes the CurrentView of the MultiView, the change doesn't get applied. I was thinking that what I needed was to designate all the LinkButtons inside that particular column as requiring a full Synchronous PostBack when clicked.

I tried the following, but it didn't work:
  Note: ButtonColumnsRequiringFullPostBack is a simple String Array holding the Unique Column Names of any columns with LinkButtons that I want to make as Synchronous Postback.

Private Sub gridMain_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridMain.ItemCreated
     If (e.Item.GetType() Is GetType(GridDataItem)) Then
          '***************************************
          ' Initialize Variables
          '***************************************
          Dim objDataItem As Telerik.Web.UI.GridDataItem = e.Item
 
          For Each strUniqueColumn As String In Me.ButtonColumnsRequiringFullPostBack
               With Telerik.Web.UI.RadScriptManager.GetCurrent(Me.Page)
                    .RegisterPostBackControl(objDataItem(strUniqueColumn).Controls(0))
               End With
          Next
     End If
End Sub

Now I don't get any error with this code...but it doesn't work either. I click the LinkButton inside the RADGrid, and it still executes Asynchronously...leaving the user on the same View2 page.

P.S. I am looking for a Server-Side solution, not a Client-Side one. Also I want to avoid wrapping the entire page in an UpdatePanel if avoidable. I think doing so may end up breaking a lot of the other functionality and I rather not spend days fixing the entire page to work AJAX style.

Any suggestions?



Marin
Telerik team
 answered on 25 Apr 2012
3 answers
190 views
Hi,

I am trying to build a functionality in my asp.net page where when a user changes the values of any controls on the page and then if they try to navigate away without saving their changes, it would display a pop up message. The pop up message would confirm that if they navigate away their changes will be discarded. But i am unable to do that so for the raddatetimepicker control as i cannot find a function that would fire after it's value is changed from the current value that is populated from the database? e.g. after the page loads, if datetimepicker control has a value of 23 April 2010 and then the user changes that value, i need to fire a function preferably a client side function that would set the changed value flag to one and then i can notify the user that they have unsaved changes on the page.could you please help? i have used this function "datePicker.ClientEvents.OnDateSelected = "SetUnsavedDataFlag('1');"" but it does not fire.
Antonio Stoilkov
Telerik team
 answered on 25 Apr 2012
1 answer
81 views
Hello,

I have an aspx page with a RadComboBox an a silverlight object in it : 
<telerik:RadComboBox ID="cbListeTypesDonnees" runat="server" SkinID="cbMiddleComboBox" />
 
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
                              width="600px" height="500px" id="moduleSL">
               <param name="source" value="../../ClientBin/Genius.UI.Modules.DonneesExogenes.xap" />
               <param name="onError" value="onSilverlightError" />
                <param name="background" value="white" />
                 <param name="minRuntimeVersion" value="4.0.50401.0" />
                 <param name="autoUpgrade" value="true" />
                  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration: none">
                       <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
                                     style="border-style: none" />
                  </a>
              </object>
</div>


I want access to the RadComboBox when I am in my silverlight code : 
public partial class MainPage : UserControl
    {
 
 private void _serviceClient_GetAllValeursDonneeExogeneCompleted(object sender, GetAllValeursDonneeExogeneCompletedEventArgs e)
        {
            if (HtmlPage.Document.GetElementById("cbListeTypesDonnees") != null)
            {
                
            }
        }

Unfortunately, this code doesn't work, my cbListeTypesDonnees is always null. 
It works when my combobox is not a telerik control. 
How can I get the RadComboBox from Silverlight ? 

Thank you ! 
Christophe Bienaime
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
58 views
Hi

The start and end time does not correspond on the scheduler. For example if a meeting starts at 8:00AM and ends at 9:00 am.
On the scheduler it shows to start at 8:30 to 9:30.

Can you please assist?

Regards
Frabk
Frank
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
87 views
Hi, trying to checkout the above but page not found. Happens to both Automatic and Manual CRUD with Entityframework. Is this still valid?

Regards
cwk
Eyup
Telerik team
 answered on 25 Apr 2012
4 answers
136 views
Im having an issue with the way the HTML is being rendered.

It seems to wrap the items in <UL> and <li> tags.

(see example)

 
     
 <div id="RadSiteMap1" class="RadSiteMap RadSiteMap_Default" StartingNodeOffset="0"
    <!-- 2009.3.1319.20 --><ul class="rsmList rsmLevel rsmTwoLevels"
        <li class="rsmItem"><class="rsmLink" href="/1.aspx">1</a><ul class="rsmList rsmLevel1"
            <li class="rsmItem"><div class="rsmTemplate"
                 
                       <href="/2a.aspx"
                            2a</a> 
                     
            </div></li><li class="rsmItem"><div class="rsmTemplate"
                 
                       <href="/2b.aspx"
 
                            2b</a> 
                     
            </div></li><li class="rsmItem"><div class="rsmTemplate"
                 
                       <href="/2c.aspx"
                            2c</a> 
                     
            </div></li><li class="rsmItem"><div class="rsmTemplate"
                 
                       <href="/2d.aspx"
                            2d</a> 
 
                     
            </div></li
 

For my CSS to work properly on my site map menu, i need to remove the LI and UL tags, so that it renders...

    <href="2.aspx">2</a> 
 
        <div> 
        <href="2a.aspx">2a</a> 
        <span class="qmdivider qmdividerx" ></span
        <href="2b.aspx">2b</a> 
        <span class="qmdivider qmdividerx" ></span
        <href="2c.aspx">2c</a> 
 
        <span class="qmdivider qmdividerx" ></span
        <href="2d.aspx">2d</a> 
        </div> 
 



Kate
Telerik team
 answered on 25 Apr 2012
3 answers
95 views
example

Hi, see the example link below and talk me if it's possible that the appointment height is equal to the half or all the height of "Margaret Morrsion Main Room" ?

Thanks
Fabrice
Plamen
Telerik team
 answered on 25 Apr 2012
3 answers
104 views
I have a RadGrid that's binding to a list of abstract classes.  However, some properties of some of the child classes have to be exposed in the grid (and left blank if they don't exist):

<telerik:RadGrid runat="server" ID="rgStuff" AllowSorting="true" AllowFilteringByColumn="true" OnNeedDataSource="rgStuff_NeedDataSource" AutoGenerateColumns="False">
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn HeaderText="Generic1" DataField="Generic1"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Generic2" DataField="Generic2"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Bob1" DataField="Bob1"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Bob2" DataField="Bob2"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Steve1" DataField="Steve1"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Steve2" DataField="Steve2"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Class definitions and binding code:

class Generic
{
    public string Generic1 { get; set; }
    public string Generic2 { get; set; }
}
 
class Bob : Generic
{
    public string Bob1 { get; set; }
    public string Bob2 { get; set; }
}
 
class Steve : Generic
{
    public string Steve1 { get; set; }
    public string Steve2 { get; set; }
}
 
public partial class InheritanceTest : System.Web.UI.Page
{
    protected void rgStuff_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        rgStuff.DataSource = new List<Generic>() {
            new Bob() { Generic1 = "First", Generic2 = "Bob", Bob1 = "Bob1-1", Bob2 = "Bob1-2" },
            new Bob() { Generic1 = "Second", Generic2 = "Bob", Bob1 = "Bob2-1", Bob2 = "Bob2-2" },
            new Steve() { Generic1 = "First", Generic2 = "Steve", Steve1 = "Steve1-1", Steve2 = "Steve1-2" },
            new Steve() { Generic1 = "Second", Generic2 = "Steve", Steve1 = "Steve2-1", Steve2 = "Steve2-2" }
        };           
    }
}

Display of the grid works great.  However, when I attempt to filter or sort on a column that exists in one of the child classes, I get an error:

No property or field 'Bob1' exists in type 'Generic'


Is there a simple way to go about fixing this?  I have a few workarounds in mind (creating a view of the data and binding to that, or adding virtual properties to the Generic class), but I'd rather do this as cleanly and with as little overhead as possible.

Thanks!
Jon
Top achievements
Rank 1
 answered on 25 Apr 2012
5 answers
162 views
Can anyone tell me how to stop the behavior of the parent page scrolling down until the radwindow is at the top of the page when linking to an anchor tag within the radwindow content? I originally thought it was due to my href being "#", but I changed it to "javscript:void(0);" and the same thing happens.
Yeroon
Top achievements
Rank 2
 answered on 25 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?