Telerik Forums
UI for ASP.NET AJAX Forum
27 answers
2.1K+ views
Hi

How can i set Readonly property for RadCombobox ?

e.g. RadComboBox.Readonly = true, something like that ??

best regards
http://www.sport-events.ch

Alvaro
Top achievements
Rank 1
 answered on 11 Jul 2017
2 answers
103 views

When using a prior version of the RadHtmlChart, right-clicking on a bar-series could instantly launch the attached RadContextMenu. But with the latest version (2017.2.621.45), it appears that you have to left-click on the bar-series first to 'select' the dataitem, and then right-click to launch the context menu.

Any ideas how I can get back to where a single right-click can launch the context menu?

Doug
Top achievements
Rank 1
 answered on 11 Jul 2017
1 answer
137 views

Hi
I have an an asp.net radgrid using webforms.  The Excel export seems to work in debug mode when in visual studio but faisl when in environment.  If I debug I can see the items being hit via debug/watch window and all works well.  Any idea why it does not work when not in debug mode.  Please see below sample code:

 

<ClientSettings ReorderColumnsOnClient="False" AllowDragToGroup="False" AllowColumnsReorder="False">
<Selecting AllowRowSelect="True" />
 </ClientSettings>
<ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true" >
<Excel Format="ExcelML" AutoFitImages="true" />
<Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageBottomMargin="5mm" PageTopMargin="5mm" PageLeftMargin="5mm" PageRightMargin="5mm" />
</ExportSettings>


With GridView1
.ExportSettings.FileName = "ProjectTrackerAt" & Now().ToString("dd-MMM-yy")
.ExportSettings.IgnorePaging = True
.ExportSettings.OpenInNewWindow = True
.HeaderStyle.Font.Bold = True
.ExportSettings.Excel.Format = GridExcelExportFormat.Html
.MasterTableView.ExportToExcel()
End With

Indy
Top achievements
Rank 1
 answered on 11 Jul 2017
0 answers
114 views

Hello.

 

I open a new radwindow from JavaScript with radopen(url?mode = 1)

in the aspx of the url i do a redirect response.Redirect(url?mode=2)

in the aspx i do a response.QueryString and i get a 2

5 minutes later i return to the same radwindow and do a response.querystring and i get a 1.

The url associated with the radwidow has returned to the original state when i opened the radwindow.

i'd like to know if it´s posible to actualice the url associated with the radwindow when i do a redirect.

 

Thanks

 

Sergio
Top achievements
Rank 1
 asked on 11 Jul 2017
1 answer
151 views

Hi,

How can I trigger the RadAjaxLoadingPanel when I click on radtreeview context menu item.

Adding this to the ajax manager does not work

<telerik:AjaxSetting AjaxControlID="RadTreeViewContextMenu1">
         <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="gridLoadingPanel" UpdatePanelCssClass="" />
         </UpdatedControls>
     </telerik:AjaxSetting>

 

Likewise if I add this then the RadAjaxLoadingPanel is shown everytime a node is clicked, which I dont want,

<telerik:AjaxSetting AjaxControlID="RadTreeView1">
         <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="RadTreeView1" LoadingPanelID="gridLoadingPanel" UpdatePanelCssClass="" />
         </UpdatedControls>
     </telerik:AjaxSetting>

 

Any idea please?

Eyup
Telerik team
 answered on 11 Jul 2017
4 answers
150 views

It's as the title says.  I can't figure out what is causing this to occur.  The page in question has minimal changes made the past month, and these revolve around the addition of a new lookup control (based on RadComboBox) and some internal system logic unrelated to UI.  My understanding is that if ViewState is enabled on the control, then PageIndexChanged should fire before NeedDataSource, but it does not.

 

The end result is paging on a grid that worked a month ago no longer works.  It continues to load the first 15 records every time the page is changed.

 

Any thoughts?  I'm sorry, I can't provide code, because this issue isn't from a simple solution.  I'm mainly looking for ideas on how to debug/correct this that I haven't thought of.

Eyup
Telerik team
 answered on 11 Jul 2017
0 answers
86 views

I have a problem when i try to load my data after choosing one item from my features list, i'm using Ajax and my Jsonresult is fine, after a few debugging tests, but how can i tell the grid to load my data correctly, i'm using code instead of the filter Junction.
Here is my Controller :
public JsonResult OptionData(Features Option)
        {
            try
            {
                List<Data> ls = new List<Data> { };
                foreach (var item in db.Data.ToList())
                {
                    if (item.Feature_ID== Option.Feature_ID)
                        ls.Add(item);                
                }
                return new JsonResult()
                {
                    Data = ls,
                    MaxJsonLength = Int32.MaxValue,
                    JsonRequestBehavior = JsonRequestBehavior.AllowGet
                };
                
            }
            catch (Exception e)
            {
                return Json(e.Message);
            }
        }

And my Dropdown List in View 

var dropdown = grid.find("#Feature).kendoDropDownList({
               dataTextField: "Feature_Name",
               dataValueField: "Feature_ID",
               autoBind: false,
               optionLabel: "All",
               dataSource: Shared_Data,           
               change: function () {
                   var value = this.value();
                   if (value) {
                       Selected_Data = value;
                           $.ajax({
                               data: {"Feature_ID":Selected_Data },
                               url: "/KhachHang/DanhSachKhachTheoLoai",
                               type: "GET",
                               dataType: "json",
                               success: function()
                               {
                                   
                               }
                           });
                     
                      
                   } else {
                       Selected_Data = value;
                       grid.data("kendoGrid").dataSource.filter({});
                   }
               }

Redfield
Top achievements
Rank 1
 asked on 11 Jul 2017
2 answers
105 views

Hi,

In the Week View, I can't resize the appointments that are All-day. Is it possible to get this functionality somehow?

This can be seen in your demo:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultvb.aspx

The all-day appointments can be resized in the month view, but not in the week-view!

Regards
Andreas

Andreas
Top achievements
Rank 1
 answered on 10 Jul 2017
2 answers
118 views

Hi,

I have 2 listbox controls on my web page.  I have one on the left that is populated from a SQL table in my database.  I can then select one or more row from the left listbox and then click the right-arrow button to move the row to the right-side listbox.  But I do not want to allow the right-side listbox items to be moved to the left-side listbox.  So I want to know if there is a way to not display the left arrow button when items are selected on the right-side listbox.  

Thanks in advance!

Here is the code for each listbox:

<telerik:RadListBox ID="lstAvailable"
    runat="server"
Width="270px"
Height="200px"
SelectionMode="Multiple"
AllowTransfer="true"
TransferToID="lstMapped"
ButtonSettings-AreaWidth="40px"
AutoPostBackOnTransfer="true"
DataTextField="ReportName"
DataValueField="ReportID"
OnTransferring="lstAvailable_Transferring">
</telerik:RadListBox>
                        <telerik:RadListBox ID="lstMapped"
runat="server"
Width="270px"
Height="200px"
SelectionMode="Multiple"
AllowDelete="true"
AllowReorder="true"
AllowTranfer="false"
ButtonSettings-AreaWidth="40px"
AutoPostBackOnTransfer="false"
DataTextField="ReportName"
DataValueField="ReportID"
OnDeleting="lstMapped_Deleting">
                        </telerik:RadListBox>

Bob
Top achievements
Rank 1
 answered on 10 Jul 2017
7 answers
625 views
Hi everyone,


I have a very stupid question. How do you delete a record in a grid and also delete this record from the database. I read a lots of examples, but they only delete the item from the grid. I read a interesting example where they were using a SessionDataSource, but my IDE (visual studio with Telerik, of course) didn't recognize the tag. I was thinking about simply had a column with the primary key and take the primary key to make a delete statement, but I don't want to show my primary key (cause it is a guid and it's not really pretty to show). So, is to possible to have a hidden column in a grid. If yes, just tell me how and my problem is solved. 


Thank you in advance for your answer.  


David
iqra
Top achievements
Rank 1
 answered on 10 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?