Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
316 views

I am looking for, if it is possible, to trigger the editing of a RadEditor on load, that is in Inline Edit Mode.  The user clicking into the editable area of the RadEditor triggers the editing, showing the cursor and the toolbar.  I want to have this functionality, but on load.

I have tried several different javascript triggers/onclicks/focus of different elements within the RadEditor, and even the RadEditor itself.  I have tried putting all these things inside of timeouts, so that happen latter in the DOM lifecycle.  All without effect.

The closest thing I have been able to accomplish is showing the cursor inside the window by using the following javascript/jquery:

$(editor.get_contentArea()).focus();

This of course doesn't trigger the actual editing, as the toolbar doesn't show, nor does clicking out fire the "OnClientInlineEditCompleted" event.

I hope someone has some ideas on how I might accomplish this functionality.

Thanks,

Josh

Rumen
Telerik team
 answered on 28 May 2019
5 answers
860 views
hi, i have problem to find Telerik.Web.Device.Detection in my reference. i cannot use this function. I try to add reference but not listed in my VS. So how i can add Telerik.Web.Device.Detection in my VS
Jan
Top achievements
Rank 2
 answered on 28 May 2019
1 answer
497 views

I have a spreadsheet in an ASPX page with a custom provider. I've built out the GetSheets and SaveWorkbook methods to retrieve data from and save data to a SQL database table. Since an ID is assigned to the record when inserted into the database (to determine whether to update or insert on next save), I'd like to reload the spreadsheet with current data after the save completes. So far I've tried the following:

-adding a spreadsheet.get_kendoWidget().refresh() to the end of Telerik.Web.UI.RadSpreadsheet.prototype._onCallbackResponse

-forcing a PostBack with _doPostBack() so I get Page_Init and Page_Load again

I've also looked through the forums and scanned through the javascript in the page itself, but I can't seem to find a way to force the control to reload itself after the Save completes. Any assistance or direction would be appreciated. Thanks!

Peter Milchev
Telerik team
 answered on 28 May 2019
9 answers
329 views
Hello,

could you please provide more examples, how to save or persist control's state ? Some simple examples for ComboBox, Grid and PanelBar ? I use C# in combination with master page...

Thank you.

Best regards

Vasssek
Alex
Top achievements
Rank 1
 answered on 27 May 2019
1 answer
136 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
222 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
495 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
318 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
89 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
180 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
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?