Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
306 views

Is it possible to add items to RadMultiSelect from the client-side dynamically?

https://demos.telerik.com/aspnet-ajax/multiselect/overview/defaultcs.aspx

Randy
Top achievements
Rank 1
Iron
 asked on 02 Sep 2021
0 answers
219 views

This is more like a feature request...very powerfull addition would be a Bootstrap grid builder like this one:

https://www.youtube.com/watch?v=WQZ9zcf_ZRo

How cool would that be, building your Bootstrap parts in the Editor itself. Did anyone try this? Any hints on how one could build this functionality.

Please let me know if we could collaborate to get something like this.

 

Regards,

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 01 Sep 2021
1 answer
182 views

I tried to render an image attachment but it gives an empty bubble. Can anyone provide a working sample?

 

 

chat.renderAttachments({
            attachments: [{
                contentType: "image_card",
                content: {
                }
            }],
            attachmentLayout: "list"
        }, chat.get_user());
Vessy
Telerik team
 answered on 01 Sep 2021
1 answer
456 views

Hi, This is little bit weird and hard to debug. only one user (rest of the 10 business users are not having this issue on their computers, and all users are having similar systems and applications and all are using latest chrome browser only) is getting below error when trying to open advanceedittemplate in telerik:RadScheduler by clicking on any event on the calendar control. we are using 2012 version telerik.web.UI.dll.

tried to put try catch block in all the events but it logs below error only. and more over I'm not able to replicate this issue on the development machine using Visual Studio 2012.

--------------------------------------------------------------------------------------------------

Inner Exception Type: System.FormatException
Inner Exception: Input string was not in a correct format.
Inner Source: mscorlib
Inner Stack Trace: 
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo)
   at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
Exception Type: System.Exception
Exception: 13.333333015441895 is not a valid value for Int32.
Source: ~/centerappointmentdetails.aspx CenterGUID : 2945ff5c-78a4-4f80-967b-a244d5e85515
Stack Trace: 
   at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer, Boolean throwOnError)
   at System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   at Telerik.Web.UI.RadScheduler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

--------------------------------------------------------------------------

Peter Milchev
Telerik team
 answered on 01 Sep 2021
1 answer
358 views

Hi,

I am able to get the mouse position using the client sides events but is it possible to get the starting/ending mouse positions while drawing a rectangle? or is the information from the cropping window available on the client side (Width, Height, Position X,Y?

The requirement is to have the user identify something on the image and create "tag". Ideally, the user can use the rectangle to draw the outline. I would need to get the starting/ending mouse coordinates.

I can use the click events but that is not ideal.

I tried to use some other client side events but with no luck.

Thanks.

-Haris

Vessy
Telerik team
 answered on 31 Aug 2021
0 answers
209 views

Hello,

I have a RadGrid and when adding anew record, there are some of cascade dropdown. Once a selection is made in "Record Type", then the dropdown below, "Sub-Type" rebinds to the data source and displays only relevant records.

Code below (it works correctly, I am just adding it as a reference to understand the issue I am experiencing):

Protected Sub RecordType_SelectedIndexChanged(ByVal sender As Object, ByVal e As DropDownListEventArgs)
    Dim combo As RadDropDownList = TryCast(sender, RadDropDownList)
    Dim container As GridEditableItem = TryCast(combo.NamingContainer, GridEditableItem)

    Dim workProductCombo As RadDropDownList = TryCast(container.FindControl("SubTypeDropDown"), RadDropDownList)
    If Not workProductCombo Is Nothing Then
      SqlDataSource7.SelectCommand = "SELECT [Sub_Type] FROM [Record_Sub_Type] WHERE [id]=(SELECT [ID] from [Record_Type1] where [Record_Type]='" & combo.SelectedValue & "') OR [ID]=0 ORDER BY [Sub_Type] ASC"
        SqlDataSource7.DataBind()

      workProductCombo.DataBind()
      workProductCombo.ClearSelection()
    End If

   
  End Sub

Action on grid when adding new record:

 

Everything works correctly but.... grid is flickering when dropdown selection triggers a data source rebind. How to avoid this? I tied to "ajaxify" the grid as follows, but no result.



  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
      <telerik:AjaxSetting AjaxControlID="RadGrid1">
        <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
        </UpdatedControls>
      </telerik:AjaxSetting>
    </AjaxSettings>
  </telerik:RadAjaxManager>

 

 

Mircea
Top achievements
Rank 1
 updated question on 30 Aug 2021
1 answer
161 views

When a file is added to the UploadFiles collection, it goes to the RadUploadTemp folder, and given a filename prefix consisting of numbers.

When it comes time to actually upload those files to the desired location, and considering there is one Temp location for all users, how does this tool differentiate, and only upload the items pertaining to that user/session, etc.?

I've monitored the temp folder while dropping files into the dropzone, from two different computers, and I don't understand how it knows which files go with which browser session.

 

Peter Milchev
Telerik team
 answered on 27 Aug 2021
1 answer
142 views

I have figured out how to hide a series by the index but I am not guaranteed the index will always be the same for each series, how can I hide/show series by name client side?

This hides by index:

var chart = $find("<%= myChart.ClientID %>");
var kendoChart = chart.get_kendoWidget();

kendoChart.options.series[1].visible = false;

I have tried to figure out how to get the index from below but have not been successful:

kendoChart.findSeriesByName("mySeriesName");

Vessy
Telerik team
 answered on 26 Aug 2021
0 answers
162 views

Hi
Sorry for the constant inconvenience
I have problem that I would like to help find solution .
I want to make an event click or Doubleclick On Spreadsheet above
It is filled Spreadsheet  in below with the specified data
Attached picture 2
I tried a lot and worked the following code
It still does not display data
I don't know where the problem is

<telerik:RadScriptBlock runat="server" >
     <script type="text/javascript">

  function pageLoadHandler() {
                    var spreadsheet = $find("<%= RadSpreadsheet_ProjectPart.ClientID %>");
                    var value = $get("<%= HD_ProjectPart.ClientID %>").value;
                    var valueAsJSON = JSON.parse(value);
                    spreadsheet.get_kendoWidget().fromJSON(valueAsJSON);

                 var spreadsheet2 = $find("<%= RadSpreadsheet_WBS.ClientID %>");
                    var value2 = $get("<%= HDWBS.ClientID %>").value;
                    var valueAsJSON2 = JSON.parse(value2);
                    spreadsheet2.get_kendoWidget().fromJSON(valueAsJSON2);
                }

                Sys.Application.add_load(pageLoadHandler);

       function OnClientClicked(sender, args) {                
                    var value = args.get_range().get_value()
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(value);                     
       }
             function OnClientChange(sender, args) {
                    var spreadsheet = $find("<%= RadSpreadsheet_ProjectPart.ClientID %>");
                    var jsonstring = JSON.stringify(spreadsheet.get_kendoWidget().toJSON());
                    $get("<%= HD_ProjectPart.ClientID %>").value = jsonstring;
             }
               function OnClientChange2(sender, args) {
                    var spreadsheet = $find("<%= RadSpreadsheet_WBS.ClientID %>");
                    var jsonstring = JSON.stringify(spreadsheet.get_kendoWidget().toJSON());
                    $get("<%= HDWBS.ClientID %>").value = jsonstring;
             }
         </script>
    </telerik:RadScriptBlock> 

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"   EnableViewState ="true"    OnAjaxRequest="RadAjaxManager2_AjaxRequest"  ></telerik:RadAjaxManager>

                                                                                                                                

  <telerik:RadSpreadsheet ID="RadSpreadsheet_ProjectPart"    OnClientChange="OnClientChange"  OnClientSelect ="OnClientClicked"     runat="server" RowsCount="40" ColumnsCount ="3" RowHeaderWidth ="30" ColumnHeaderHeight ="0" Width ="100%" Height ="290px"  ColumnWidth="100"    >

  </telerik:RadSpreadsheet>

  <asp:HiddenField ID="HDWBS" runat="server" EnableViewState ="true"  />

                                                                                                                                

     <telerik:RadSpreadsheet ID="RadSpreadsheet_WBS"   EnableViewState ="true"   runat="server" RowsCount="5" ColumnsCount ="4" RowHeaderWidth ="30" ColumnHeaderHeight ="0" Width ="100%" Height ="290px"  ColumnWidth ="260"  >

                                                                </telerik:RadSpreadsheet>

 

  Protected Sub RadAjaxManager2_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs)
        Dim DT As New DataTable
        Dim workbook = New Telerik.Web.Spreadsheet.Workbook()
        DT = GetProject_WBS2(e.Argument)
        workbook.Sheets = GetSheets_WBS(DT)
        Dim json = workbook.ToJson()
        HDWBS.Value = json
    End Sub

 

I'm working on an application

Asp.net


Kind regards

Bassam
Top achievements
Rank 1
Veteran
 asked on 25 Aug 2021
1 answer
213 views

Has anyone had any success implementing the built-in filtering capabilities of RadGrid (no server or client-side code) when setting the rendermode of the RadGrid to Mobile?

I find that the filtering is inconsistent or doesn't work at all in Mobile mode, but if I switch to Lightweight, it works perfectly. Also, for a GridDateTimeColumn, the filtering dialog is confusing. I'm not sure how you would specify a range using "Between" in Mobile mode.

The target for this application is a tablet, so I have been using the "Mobile" render mode throughout, but I may need to use the "Lightweight" option for this radGrid as filtering will be important to the end user.

If anyone has any experience with this or has any suggestions, I would appreciate it.

Again, all I'm doing is changing the rendermode from "Mobile" to "Lightweight" and that solves all of the issues.

Thanks!

Vessy
Telerik team
 answered on 25 Aug 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?