Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi guys,

I need to create a control dynamically and used with this features

- Shows date and time like "dd-mm-yyyy hh:mm" [ DONE: using base.DateInput.DateFormat = "dd-MM-yyyy HH:mm"; ]
- Only shows one button icon (not the 2 buttons like RadDateTime) [ DONE: using RadDatePicker ]
- Shows the text as a label if the page (if the control is in a page) / row (if the control in in a Grid) is not in Edit mode [ Need help! ]

How can I do this?

Right now I'm doing:

 
    [DefaultProperty("Value")] 
    [ToolboxData("<{0}:MyOwnDateTimePicker runat=server></{0}:MyOwnDateTimePicker>")] 
    public class MyOwnDateTimePicker : Telerik.Web.UI.RadDatePicker 
    { 
        System.Web.UI.Page page = (System.Web.UI.Page)HttpContext.Current.Handler; 
 
        protected override void Render(HtmlTextWriter writer) 
        { 
            /*
                <telerik:RadDatePicker ID="Raddatepicker2" Style="vertical-align: middle;" Width="200px"
                    MinDate="2006-02-01" runat="server" SelectedDate="2006-04-01" MaxDate="2099-12-16" Skin="Hay">
                    <DateInput onclick="ToggleSecondPopup()" DateFormat="D">
                    </DateInput>
                </telerik:RadDatePicker>
            */ 
 
            base.Skin = "Outlook"; 
            base.DateInput.DateFormat = "dd-MM-yyyy HH:mm"; 
 
            base.Render(writer); 
        } 
 
        public override void RenderControl(HtmlTextWriter writer) 
        { 
            // Bruno: Test 
            if (this.readOnly) 
            { 
                // Read-Only Calendar 
                // http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/readonlycalendar/defaultcs.aspx 
                // PresentationType="Preview", EnableNavigation="False" and EnableMonthYearFastNavigation="false" 
                base.Calendar.PresentationType = Telerik.Web.UI.Calendar.PresentationType.Preview; 
                base.Calendar.EnableNavigation = false; 
                base.Calendar.EnableMonthYearFastNavigation = false; 
 
                //Label lbl = new Label(); 
                //lbl.RenderControl(writer); 
            } 
            else 
            { 
               //Do nothing                  
            } 
            base.RenderControl(writer); 
        } 

How can I make the control to be ReadOnly? Showing only a "Label" like control?


Shinu
Top achievements
Rank 2
 answered on 05 Mar 2009
2 answers
122 views
I cannot seem to get a "sliding zone" to slide over the Google Earth plugin. Anyone know how to get around this? I have already set the CSS on the sliding zone with a z-index of like 1001, even 2001:

                <telerik:RadPane id="contentPane" runat="server" scrolling="y">
                       
                            <div id='map3d'> GOOGLE EARTH IS LOADED HERE
                            </div>
                       
                  </telerik:RadPane>
                 <telerik:RadSplitBar id="Radsplitbar3" runat="server" collapsemode="Forward" />
                <telerik:RadPane id="Radpane1" runat="server" width="22" scrolling="None" minwidth=22>
                    <telerik:RadSlidingZone id="SlidingZone1" SlideDirection="Left" CssClass="SearchPane" runat="server" width="22"
                     clicktoopen="true"> CSSCLASS=SEARCHPANE HAS Z-INDEX: 1001
                        <telerik:RadSlidingPane id="Search" title="Search" runat="server" width="190">
                            
                            <%--search here--%>
                            
                            
                        </telerik:RadSlidingPane>
                        <telerik:RadSlidingPane id="Settings" title="Settings" SlideDirection="Left" runat="server" width="200">
                            
                            <%--settings here--%>
                            
                        </telerik:RadSlidingPane>
                    </telerik:RadSlidingZone>
                </telerik:RadPane>
Tim
Top achievements
Rank 1
 answered on 05 Mar 2009
1 answer
108 views
So I was having issue with the position of my tooltips.  When an item with a tooltip attached was hovered over, the tooltip would display in one position and then reposition itself relative to the element in the position I specified (i.e. TopRight).

After tinkering around with the different options I found the following settings resulted in positioning issues:

- ShowCallout = "True" this setting alone will cause the tooltip to reposition when true.  If false, and the Animation is set to either "None" or "Fade" the tooltip displays in the correct position right away.

- Animation is equal to anything BUT "None" or "Fade" will cause tooltip to reposition itself.

I thought I'd mention this in case anyone else is having similar problems.

Regards,
Jake
Svetlina Anati
Telerik team
 answered on 05 Mar 2009
1 answer
230 views
Hello All,

I am using GridTemplateColumn in Radgrid which contains Checkbox in ItemTemplate.
I have used GridBoundColumn for binding data.
Now I want to find the column value( ex. InvoiceID ) of selected row( Rows for which checkbox is checked ) at client side(Using Javascript). Right now I want to pass these InvoiceID's of selected checkbox rows to other page.
I tried in many ways but failed to get it.
Is there any solution for it. 
Its Urgent..

Thanks & Regards,
Umesh 
Shinu
Top achievements
Rank 2
 answered on 05 Mar 2009
2 answers
140 views
In my application I have to synchronise sorting from the first grid with the second grid.

Both grid get the same data from the same datatable.

Now I need programm that if the user sorts one column in the first grid, the same column should be sorted in the second grid automaticly.

What is the way to go?

Christian
Christian
Top achievements
Rank 1
 answered on 05 Mar 2009
1 answer
77 views
Does RadGrid offer any functionality that allows the user to create a column on a grid based on the location they click?  Thanks
Princy
Top achievements
Rank 2
 answered on 05 Mar 2009
2 answers
104 views
Hello,

In my project i use Rad menu.
but how to change color and CSS in this menu.
Please give me solution urgentally.

Regards,
Apeksha
Appu
Top achievements
Rank 1
 answered on 05 Mar 2009
1 answer
191 views
I try to update data in a FormView, thats connected to a LinqDataSource. If I click on the Submit button, the page reloades, but the Data isen't updating. I cant find anything wrong with the code. Any help would be appreciated.

Bruno

Here the code:
        <asp:Panel ID="ContentHeaderPanel" runat="server" CssClass="Boxheader"> 
            <asp:DropDownList ID="ContentDropDownList" runat="server"  
                DataSourceID="ContentLinqDataSource" DataTextField="Content_Name"  
                DataValueField="Content_ID" AutoPostBack="True"> 
            </asp:DropDownList> 
            <asp:LinqDataSource ID="ContentLinqDataSource" runat="server"  
                ContextTypeName="gourmetnavigatorDataContext" OrderBy="Content_Name"  
                TableName="Content"> 
            </asp:LinqDataSource>
        </asp:Panel> 
 
        <asp:Panel ID="ContentPanel" runat="server" CssClass="Boxcontent"> 
            <asp:FormView ID="ContentFormView" runat="server" DefaultMode="Edit"  
                DataSourceID="ContentdetailLinqDataSource" DataKeyNames="Contentdetail_ID"> 
                <EditItemTemplate> 
                    <telerik:RadEditor ID="Contentdetail_Text" runat="server" Language="de-DE" 
                        Skin="Telerik" Content='<%# DataBinder.Eval(Container.DataItem, "Contentdetail_Text") %>'> 
                        <Tools> 
                            <telerik:EditorToolGroup> 
                                <telerik:EditorTool Name="Paste" /> 

Rumen
Telerik team
 answered on 05 Mar 2009
3 answers
270 views

Hi,

have a button in RadAjaxPanel. On OnClickEvent there is Response.Redirect (to a file in network share). The problem I have is that after Response.Redirect the LoadingPanel still appears on the page. Any ideas?

Iana Tsolova
Telerik team
 answered on 05 Mar 2009
1 answer
150 views
Hi,

I started doing a project with typical controls and now I have been told to use telerik controls. I have created my own skins (till here more or less ok) but problems are coming since I started to use telerik controls instead of old ones. First, I have changed RadGrid by Gridview and I have got some problems.

For example when I was using gridview I was using this code:
       grdBusqueda.PageIndex = e.NewPageIndex;

and:
       grdBusqueda.Rows[0].Cells.Clear();
       grdBusqueda.Rows[0].Cells.Add(new TableCell());
       grdBusqueda.Rows[0].Cells[0].ColumnSpan = ColumnCount;
       grdBusqueda.Rows[0].Cells[0].Text = GestorRecursos.GetString("NoRecords");
       grdBusqueda.Rows[0].Cells[0].HorizontalAlign = HorizontalAlign.Center;

The problem is that for grdBusqueda (ID of my radgrid) PageIndex and Rows are not known properties so compilator don´t recognize them. What shall I do to solve these kind of problems? I thought telerik controls properties would be very similar to the other ones.

Please, suggest me where I can find properties of them?do you understand what I mean?
Princy
Top achievements
Rank 2
 answered on 05 Mar 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?