Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
563 views

I have developed a web-based application using ASP.Net for the company I work for.

I would like to make use of the new Spreadsheet control to export data from a database to an Excel .xlsx file on the client-side.  No need to view the data in the spreadsheet in the web browser.  Just would like to use the Spreadsheet control to export data from a database to an Excel .xlsx file on the client-side when the user clicks on a button on the ASP.Net page.

Can that be done?

Can you provide an example on how to do that with VB.Net as the code-behind?

Sincerely,

Keith Jackson

Peter Milchev
Telerik team
 answered on 04 May 2020
2 answers
119 views

Two questions:

1.

Can someone point me to an example of an unbound multicolumncombobox, e.g. adding items manually? I found an example

https://docs.telerik.com/devtools/winforms/controls/multicolumncombobox/populating-with-data/unbound-mode

 

but this refers to properties which do not seem to exist (e.g. MultiColumnComboBoxElement and EditorControl).

 

2. In a databound multicolumncomboBox, when the user uses the drop-down, the drop-down appears with a transparent background, so you can see the elements rendered under it as part of the text... this makes it almost impossible to read. Is there a way to remove this transparency? I do not see a property. Is there a reason why this control is designed this way as opposed to being like a standard drop-down combo box?

 

Peter Milchev
Telerik team
 answered on 04 May 2020
1 answer
112 views

Hello,

I have accessed the start date time picker from the advanced form of my scheduler and have implemented custom time values as below.

        Dim startPicker As RadTimePicker = TryCast(e.Container.FindControl("StartTime"), RadTimePicker)

        startPicker.TimeView.CustomTimeValues = New TimeSpan() {New TimeSpan(8, 30, 0), New TimeSpan(12, 30, 0)}

However, when I run the program, the custom values are in place but the labels remain the same? (see attached)

Is there any way to access and change the labels, so only labels for my custom time values are shown?

Thanks in advance,

Kieran

 

 

 

Kieran
Top achievements
Rank 1
 answered on 01 May 2020
4 answers
260 views
Hi.

Now, Web Application is performed on "Azure Web Sites".
However, when "RadScheduler.ExportToPdf()" is performed, the following errors will occur. 

「502 - Web server received an invalid response while acting as a gateway or proxy server.」

Is this caused by what?

Regards.

Ryuta.
Akansha
Top achievements
Rank 1
 answered on 30 Apr 2020
1 answer
547 views

Hi,

I am fairly new to Telerik controls and was experimenting with radtooltip and radtooltipmanager.

 

I created a tooltipmanager and a radtooltip from code behind with ID = "Test", rendermode = lightweight, title = "properties" and text = "CheckText". And this worked.

But when I went to add a radlabel I created as a control to it, saying

RTP.Controls.Add(radlabel1)

it wouldn't display it.

Can someone help me figure how to add controls to radtooltip or radtooltipmanager?

(Eventually, I want to add more controls like a table in the tooltip)

 

Thanks in advanced,

Swanand Nalawade

Vessy
Telerik team
 answered on 29 Apr 2020
2 answers
122 views

I am having an issue trying the get a radcontextmenu appear above a radmenu.  

Following the instruction about positioning controls from  https://docs.telerik.com/devtools/aspnet-ajax/controls/controlling-absolute-positioning-with-z-index

The appearance is correct on IE 11 and Edge, but appears as attached when viewed in Chrome.  

The deckaration for RadContextMenu:

 

  <telerik:RadContextMenu ID="RadContextMenu1" runat="server" Skin="Black1" EnableEmbeddedSkins="false"    RenderMode="Lightweight"    style="z-index:483647"  >
  <Items>
      <telerik:RadMenuItem>
      


      </telerik:RadMenuItem>

  </Items>
                                
                                        
</telerik:RadContextMenu>

The declaration for The Radmenu:

 <telerik:RadMenu ID="RadMenu1" runat="server"   Skin="Default"   RenderMode="Lightweight"  style="z-index: 12345"  OnItemClick="RadMenu1_ItemClick">
</telerik:RadMenu>

 

I don't think I am missing any thing.   

Brete
Top achievements
Rank 1
 answered on 29 Apr 2020
10 answers
630 views
I use client js method "startSpellCheck(); " to check spelling, it works fine when the text is small, but when the text content is large, for example 30k+ lines, an error page pop up:

 
Spell Check handler server error: 500<br><br><title>...The length of the string exceeds the value set on the maxJsonLength property.</title><br>...


I have set the maxJsonLength to a big value in web.config, but it seems that the spell check ignore the setting.
...

<system.web.extensions><br>    <scripting><br>      <webServices>       <br>        <jsonSerialization maxJsonLength="2147483644"></jsonSerialization><br>      </webServices><br>    </scripting><br>  </system.web.extensions>

Rumen
Telerik team
 answered on 29 Apr 2020
1 answer
126 views

There is no server event that gets triggered when a user uses the clear function. The logical event would be to trigger the SelectedIndexChanged since it is essentially going from a value to nothing, therefore changing the selected index.  I'm sure that since the world is slowly trying to forget about server programming and concentrating on Java that there is some java solution that won't do me a hill of bean worth of good.  

My point, would it be so bad to have the clear function trigger something?

Peter Milchev
Telerik team
 answered on 29 Apr 2020
3 answers
501 views
I'm not able to get my RadComboBox to blur when interacting with the mouse. I have the control extended to incorporate a RadTreeView (as in http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=combobox), with some enhancements.

I have 2 use cases:
1) A user types text and the treeview is filtered as they type (all my code). They can use the arrows keys to change selections in the TreeView and hit enter to select it. The selection doesn't actually go into the ComboBox because I allow multiple selections, so after they hit enter, the item they selected is added to a table and focus drops.
After this, the ComboBox shows its empty message and the cursor disappears from the input area of the ComboBox.

2) A user types text and the treeview is filtered (as above). They can use the mouse to click an item and add it to the list.
After this, the ComboBox closes but the empty message doesn't not show. The cursor is in an empty input region in the ComboBox.

My goal is for case #2 to also drop focus on the combobox after they click, but no matter what I do, I can't get the combobox to blur until I click elsewhere on the page with the mouse.

I've tried the solutions offered in http://www.telerik.com/community/forums/aspnet-ajax/combobox/removing-combobox-focus.aspx and have tried calling this function after the item is clicked:

function BlurComboBox(comboBox) {
    if (comboBox.get_dropDownVisible() && comboBox.get_closeDropDownOnBlur())
        comboBox.hideDropDown();
 
    comboBox.get_tableElement().className = "";
    comboBox._selectItemOnBlur();
    comboBox.get_inputDomElement().blur();
    comboBox._raiseClientBlur(window.event);
    comboBox._focused = false;
}

The function executes but nothing ever changes in the combobox.

I can't just set focus elsewhere on the page - that doesn't make sense. I just want to blur the combobox so its state resets.

How can I do this?
Vessy
Telerik team
 answered on 29 Apr 2020
1 answer
122 views

Hi,

 

I am trying to implement a Batch Edit mode in a RadGrid from a DataTable say Documents. RadGrid is being generated from the code behind.

Documents datatable has 2 different columns say DocumentType as string and Publish Status as int which I want to be displayed as GridDropDownColumns.

I am also creating 2 other datatables for reference values of these columns.

Document type refers value and text to one column (TEXTValue) in it's reference datatable.

Publish Status refers value to one column (PublishID) and text to another column (TEXTValue)  in it's reference table.

For Cell value changed of the radgrid, I am running a javascript function which I got from telerik forms to save changes.

 

Problem:

The Document type column which refers both value and text to same column works fine but the Publish Status column which refers to 2 different columns for value and text field gets stuck in an infinite loop running the javascript function without making any saves to the database.

 

Can someone help me with figuring this problem out?

 

Thanks in advance,
Swanand Nalawade

Eyup
Telerik team
 answered on 29 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?