Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views

Hello

 

I have a radgrid with a GridDropDown that is only displayed when the radgrid is in edit mode.

What I want to accomplish is to set the initial value of the DropDown based on the value of another cell, and still be able to open the dropbox for my edit method

For example:

IdEstatus || Estatus

1              || Pending

2              || Delivered

 

<telerik:GridBoundColumn DataField="IdEstatus" HeaderText="<%$ Resources:Language, lbl_rg_estatus %>" UniqueName="IdEstatus" Display="false" ReadOnly="true" AllowFiltering="false" AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
<telerik:GridDropDownColumn UniqueName="Estatus"  ListTextField="Descripcion" ListValueField="IdEstatus" Display="false" AllowFiltering="false" HeaderText="<%$ Resources:Language, lbl_rg_estatus %>" ItemStyle-CssClass="form-control form-control-sm"></telerik:GridDropDownColumn>

 

protected void rgDetalles_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridDropDownColumnEditor editor = editMan.GetColumnEditor("Estatus") as GridDropDownColumnEditor;
                editor.DataSource = CDatos.SP_PeticionesAlmacen.SP_ObtenerEstatus();
                editor.DataBind();
            }

 

Database

Estatus

IdEstatus || Description

1              || Pending

2              || Delivered

3              || Canceled

 

The initial value of the combobox should be based according to the value in the cell "IdEstatus", but still be able to open and show the rest of the options

Thanks

Attila Antal
Telerik team
 answered on 21 Feb 2020
2 answers
574 views

I'm a novice with Telerik, I want to know how to find the path to a folder with Webform. 

For example: 

In the WinForm, Application.ExecutablePath is able to get the main path, is there is a way to retreive the same file with a webform ?

Vessy
Telerik team
 answered on 21 Feb 2020
1 answer
126 views

Can someone please assist me with that issue. I'm trying to convert a WinForm to Webform. I need to access the main folder, It was implemented that way for the Winform, but I would like to have to retrieve the same path in ASP.NET AJAX for Webform.

 

 For WinForm:

string appPath = Path.GetDirectoryName(Application.ExecutablePath);

   DirectoryInfo info = Directory.Getarent(appPath);

WebForm: 

????

Vessy
Telerik team
 answered on 21 Feb 2020
1 answer
91 views
How can I remove a tooltip that occurs in a radWidnow? Ffor example, when I mouse-over the "x" to close the window?
Vessy
Telerik team
 answered on 21 Feb 2020
3 answers
208 views
Hello,

Is it possible to highlight the matches in the results of RadSearchBox?

Many thanks,
Martin
Peter Milchev
Telerik team
 answered on 20 Feb 2020
1 answer
152 views

Hello ,

           Please i the raddate picker and rad textbox is not dispalying.I moved form one server to another.On the new server the raddate picker and rad textbox is not dispalying.The rad date picker diplays this error Open the calendar popup.  My code

 

<telerik:RadDatePicker ID="RadDatePicker1" Runat="server" 
                        Culture="English (United States)" Skin="WebBlue" 
                        onselecteddatechanged="RadDatePicker1_SelectedDateChanged" Width="150px">
                        <calendar skin="WebBlue" usecolumnheadersasselectors="False" 
                            userowheadersasselectors="False" viewselectortext="x">
                        </calendar>
                        <datepopupbutton hoverimageurl="" imageurl="" />
                    </telerik:RadDatePicker>

 

 

Please Help

 

 

 

Rumen
Telerik team
 answered on 20 Feb 2020
29 answers
1.2K+ views
The problem is sporadic, so I'll try to explain.. hopefully it's something small that I'm missing.

Currently, we are using ASP.NET AJAX Q1 2008 (515.20).  I've got a main page with RadAjaxManager and several UserControls with RadAjaxManager proxies.  Each UserControl has its own loading panel defined and, on request, the loading panels show up correctly.  However, they won't go away after the response ends. 

I verified that the events were happening with OnRequestStart and OnResponseEnd events by sending a javascript alert.  No javascript errors or exceptions were thrown.  Any ideas?
Zakaria
Top achievements
Rank 1
 answered on 19 Feb 2020
6 answers
804 views
Hi,
I am using RadDatePicker control (birthDate) in my application. I want to add OnBlur event for it's validations. After exploring a lot, I got one way to do it as below :
birthDate.DateInput.Attributes.Add( "onblur", string.Format( "calculateAge('{0}','{1}','{2}');", birthDate.ClientID, txtAge.ClientID, txtType.ClientID ) );
Now I am facing two problems:
1. If my focus moves inside the DateInput textbox, it fires onblur event and validates input when I try to click the calender symbol to get calender popup and select date. This is because onblur event is attached to inner textbox control and not the entire RadDatePicker control.

2. If I select date birthDate.from calender popup, I get value for get_selectedDate() Inside javascript function calculateAge(), but instead if I enter date manually inside the textbox, birthDate.get_textBox().value shows that value in string format but get_selectedDate() gives null.

Please reply ASAP as my release is stucked up because of these issues.

Thanks,
Manngesh
Greg
Top achievements
Rank 1
 answered on 19 Feb 2020
2 answers
130 views

is there any way to save edited document in HTML3 format?

thank you

hepek
Top achievements
Rank 1
Iron
 answered on 19 Feb 2020
2 answers
206 views

I am trying to enable "delete control" functionality via right-click menu.
so far I have a code like this, but I cannot find the appropriate function like editor.DeleteSelectedElement (or something like that):

 Telerik.Web.UI.Editor.CommandList["Remove Hyperlink"] = function (commandName, editor) {
            var hyperLink = editor.getSelectedElement(); // get the selected Hyperlink element.   
            editor.selectElement(hyperLink); // select the hyperlink
            *I need to delete selected element here. how do I do that? 
 };

 

thank you

hepek
Top achievements
Rank 1
Iron
 answered on 19 Feb 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?