Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Is there any way to check whether the editform of a radgird is opened outside the radgrids ItemBound event?
Vessy
Telerik team
 answered on 27 May 2019
7 answers
167 views

Hi,

I integrated a dynamic tooltip in a web site that use masterpage, RadMenu, RadPanel, sitemap, etc.

My pages Title are feed by the sitemap in the MasterPage see code below.

Each time RadToolTip do a request (ajax), my page title is reset to "Untitled Page".

Erik

<script runat="server">  
    public string GetShortCulture()
    { return (CultureInfo.CurrentCulture.ToString()).Substring(0, 2); }
    public bool ShowPnlSearch
    { get { return pnlSearch.Visible; } set { pnlSearch.Visible = value; } }
    public bool ShowpnlBreadCrumb
    { get { return pnlBreadCrumb.Visible; } set { pnlBreadCrumb.Visible = value; } }
    public bool ShowPnlTopOfPage
    { get { return pnlTopOfPage.Visible; } set { pnlTopOfPage.Visible = value; } }
    public bool ShowHlnkAccueil
    { get { return RoImgAccueil.Visible; } set { RoImgAccueil.Visible = value; } }
    public bool ShowSepAccueil
    { get { return lblSep.Visible; } set { lblSep.Visible = value; } }
    public bool ShowPnlMenuSec
    { get { return pnlMenuSec.Visible; } set { pnlMenuSec.Visible = value; } }

    public string GetPageTitle()
    {
        if (SiteMapDataSource1.Provider.CurrentNode != null)
        { return ConfigurationManager.AppSettings["pageTitlePrefixe"].ToString() + SiteMapDataSource1.Provider.CurrentNode.Title.ToString(); }
        else { return Page.Title; }
    }

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
        <%=GetPageTitle()%>
    </title>
    <meta name="abstract" content="<%$ Resources:rscAbstract %>" />
    <meta name="author" content="Erik Paquet" />
    <meta name="distribution" content="global" />
    <meta name="revisit-after" content="5 days" />
    <meta name="copyright" content="<%$ Resources:rscCopyright%>" />
    <meta name="robots" content="follow,index" />
    <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <asp:contentplaceholder id="head" runat="server">
    </asp:contentplaceholder>

Dmitrii
Top achievements
Rank 1
 answered on 27 May 2019
4 answers
426 views
Hi,

I have a datagrid with a CheckBox column. I need this column to only have 1 check box check at any one time. I guess this would be possible through a javascript function? Please can you give me a tip on how to implement this. I have tried using OnCheckedChanged="CheckedChanged" 
but this is server side. THat is ok, but a client side function would be preferable.

thanks


                  <telerik:GridTemplateColumn UniqueName="chkEmailAddrField" HeaderText="Email Address Field" HeaderStyle-HorizontalAlign="Center"
                         ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:CheckBox id="chkEmailAddrField" runat="server" OnCheckedChanged="CheckedChanged"  AutoPostBack="True" Checked='<%# DataBinder.Eval( Container, "DataItem.EmailAddrField") %>'></asp:CheckBox>
                    </ItemTemplate>
                 </telerik:GridTemplateColumn>

thanks
David (new to controls)
reza
Top achievements
Rank 1
 answered on 26 May 2019
3 answers
189 views

Folks

Using Telerik UI for ASP.Net Ajax R1 2019 with Visual Studio. Below link is my prototype and assuming Filtering is unabled in the Form.

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

I would like to Perform the Following:

1) End User Filter The Form to Find if the Row Exists based on Filter Conditions of 'First and Last Name'.
2) If no rows are found, they click 'Add new Record' Button.
3) When Insert Form Opens it should automatically Populate 'First and Last Name' in GridEditableItem from Filter Template Conditions ''First and Last Name'. Item #1 above. I came up with below codes from RadGrid1_ItemDataBound event.

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  
 if (e.Item.OwnerTableView.IsItemInserted && e.Item is GridEditableItem && e.Item.IsInEditMode && e.Item.OwnerTableView.Name == "Master")
    {
 
                 
    }
 
}

 

4) Attached is my desired Screen Shot.

Any Help will be appreciated.

gc_0620

Attila Antal
Telerik team
 answered on 24 May 2019
1 answer
52 views

Hi,

Our Requirements
How to consider following cases/requirements?
Case 1 - How to manage different time slots for single resource?
Example 10 minutes slot between 8AM to 12PM and 20 minutes slot between 2PM and 6PM.

Case 2 - How to manage different time slots resource wise?
Example 10 minutes slot for resource1 and 20 minutes slot for resource2.


Solution adopted to achieve requirement 1 (II) i.e. Case 2

I have some issues in Rad Scheduler for binding in run time and create events, bind menu and perform same as static control which add in design page (normal activity).
In this case may be more than one Schedulers require to bind in panel control to display differently.

Binding Rad Scheduler in run time and create event like time slot contact menu and appointment slot menu click. Below code are events I created in run time:
RadScheduler.AppointmentContextMenuItemClicked += new AppointmentContextMenuItemClickedEventHandler(RadScheduler1_AppointmentContextMenuItemClicked);

RadScheduler.TimeSlotContextMenuItemClicked += new TimeSlotContextMenuItemClickedEventHandler(RadScheduler1_TimeSlotContextMenuItemClicked);

RadScheduler.TimeSlotCreated += new TimeSlotCreatedEventHandler(RadScheduler1_TimeSlotCreated);
Event is fire when click in menu but not reach in mention event name like click in time slot menu (RadScheduler1_TimeSlotContextMenuItemClicked). Binding menu is ok by dynamic.  These events are fired in static control which added in design page. One thing all events and activities are working fine in static control.

 

Please help as soon as possible.

 

Eyup
Telerik team
 answered on 24 May 2019
5 answers
121 views

I've just started working with RadTreeList, and have spent most of my day looking for info that covers my problem but cannot find it.  I have followed many links that end up just taking me back to the base description of functionality without answering the actual question I have. 

 

I have a RadTreeList that is auto-generating a number of columns (this is working fine).  I also have a template column defined in the markup that adds a combo box to each row of the RadTreeList (this is also working fine.)  That template column is being inserted as the first column in the tree (expected) but I want it to be the last.  My question is this : how do I make that happen?  Is there any way to change the .OrderIndex on the column, either to otherwise have it be added after the auto-generated columns?  If not, is there a way to programatically change the order (shift the column to the end) after the RadTreeList has been built without having to write code that swaps the column down the line? Is the solution here to just not create the template column at design time and build it dynamically (including the work that goes along creating my own template class, etc)?

 

Any guidance would be greatly appreciated.

Vessy
Telerik team
 answered on 23 May 2019
1 answer
135 views

I noticed that a simple collapsed dock I have is still showing a bit of the contents when the page loads. If I expand it and collapse it, then it will display properly. Version I have is 2019.2.514

I checked and noticed it was using the Lightweight render mode and that it would be missing "overflow:hidden" in the css in the initial page load.

Code

<telerik:RadDockLayout runat="server" ID="DockLayoutExceptions">
    <telerik:RadDockZone runat="server" ID="DockZoneException" Orientation="Vertical" MinHeight="40px" MinWidth="300px">
        <telerik:RadDock RenderMode="Lightweight" runat="server" ID="DockExceptions" Title="Exceptions" EnableDrag="False" DockMode="Docked" Collapsed="True">
            <Commands>
                <telerik:DockExpandCollapseCommand />
            </Commands>
            <ContentTemplate>
                <cust:ExceptionTable runat="server" ID="tblOrderExceptions" Type="Order" />
            </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</telerik:RadDockLayout>

 

Attached are images showing the generated CSS at the page load and after expanding and collapsing again.

Rumen
Telerik team
 answered on 22 May 2019
1 answer
67 views

Is there a way to require a Node having to be DoubleClicked in order to redirect to NavigationURL path? I need to Select the node, prior to displaying and selecting a ContextMenu, but since I have NavigationURL value it Redirects to the URL on a SingleClick.

Vessy
Telerik team
 answered on 22 May 2019
1 answer
463 views

Hi,

How to make the list view list items horizontally instead of vertically. 

I am using Item template with binding to dataset.

 

 

 

<telerik:RadListView runat="server" ID="grid_newsHorizanantal" AllowPaging="true" PageSize="10">
                                  <ItemTemplate>
                                      <div class="listViewItem" >
                                          <table>
                                              <tr>
                                                  <td style="vertical-align: top">
                                                      <asp:Image ImageUrl='<%# Eval("urlimage") %>' runat="server" CssClass="newsBotoomImage" />
                                                  </td>
                                                  <td style="text-align: justify; vertical-align: top">
                                                      <table>
                                                          <tr>
                                                              <td style="text-align:left; vertical-align: top; font-weight: 800">
                                                                  <asp:Label ID="Label3" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                                                              </td>
                                                          </tr>
                                                          <tr>
                                                              <td>
                                                                <%--  <asp:Label ID="Label1" runat="server" Text='<%# Eval("desc_short") %>'></asp:Label>--%>
                                                              </td>
                                                              
                                                          </tr>
                                                          <tr>
                                                               <td>
                                                                  <asp:HyperLink ID="Link_readNews" Text='<%# Eval("link") %>' runat="server" NavigateUrl= '<%# Eval("newsID","~/news_read.aspx?newsID={0}") %>'></asp:HyperLink>
                                                              </td>
                                                          </tr>
                                                      </table>
                                                  </td>
                                              </tr>
                                          </table>
                                      </div>
                                  </ItemTemplate>
                              </telerik:RadListView>
Vessy
Telerik team
 answered on 21 May 2019
5 answers
289 views
Are there still plans to allow opening a User Control inside a RAD Window?

This thread from Feb. 2007 states that it is in the plans;
http://www.telerik.com/community/forums/thread/b311D-gmddt.aspx

However, I still receive the 'This type of page is not served.' exception.

Thanks,
A.
Vessy
Telerik team
 answered on 20 May 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?