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

Hello all. 

This  works when used .aspx side

 <telerik:GridBoundColumn DataField="BookingRef" DataFormatString="<a href='my url link here' target='_blank'>Booking</a>" FilterControlAltText="Filter BookingRef column" HeaderText="BookingRef" SortExpression="BookingRef" UniqueName="BookingRef"> </telerik:GridBoundColumn>

but I'm trying to get it working programmatically but no data will show in the column. It's just blank.

This is in the page_init subroutine.

Dim BoundColumn3 As GridBoundColumn = New GridBoundColumn With {

            .HeaderText = "Setup",
            .DataField = "Tcode",
            .UniqueName = "Tcode",
            .DataFormatString = "<a href='my url link here' target='_blank'>Setup</a>"
        }

Has anyone any tips or advice. I don't really have time to do this as described here.

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/defining-structure/creating-a-radgrid-programmatically

 

Colin.

 

 

Benjamin
Top achievements
Rank 1
 answered on 07 Feb 2019
7 answers
211 views
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx
when i group this by Name column it only shows one grouping header even when it is collapsed. how can i show other grouping headers too.
Dinko | Tech Support Engineer
Telerik team
 answered on 07 Feb 2019
9 answers
1.0K+ views
Hi,

I am trying to get the RadDatePicker to work when added to a panel that is shown using the ModalPopupextender (Ajax).
This works fine with other date pickers, but unfortunately the RadDatePicker shows its calendar popup behind the modal window, which of course renders it rather useless.

I hope you can assist with a fix for this issue.

Brgds,
Thomas Scheelhardt
abhishek
Top achievements
Rank 1
 answered on 07 Feb 2019
3 answers
893 views

I know from previous posts that this "feature isn't supported" out of the box from telerik.

I was wondering if it was possible to get the filter being applied to the combobox from the client side and allow it be cleared from a button click. I want to try and customize the behaviour of the combobox so that I can filter items in the list which can then be checked individually or JUST the filtered items to be selected by the check all. However I find it bit clunky at present to clear the filter out of the combobox after selecting items.

 

Another alternative idea is to add a search textbox as the first item in combobox (similar as seen in kendo grid filters), is this level of customization available in radcombobox control?

 

Any help appreciated!

Peter Milchev
Telerik team
 answered on 06 Feb 2019
29 answers
2.3K+ views
Hi ..telerik

I have a small problem in clearing the text in the RadComboBox .

I tried the following

  • RadComboBox1.Text="";        //do nothing
  • RadComboBox1.ClearSelection();

but nothing cleared.
 
the only solution

  • RadComboBox1.Text=" "; //set the text to one space

which can effect the logic of the code

Is there any solution for this problem ??

Note:

  1. I'm using rad controls for asp.net ajax
  2. the RadComboBox allow Custom  Text so user can type what need.
Raju
Top achievements
Rank 1
 answered on 06 Feb 2019
5 answers
590 views

I'm hoping someone has a good solution or workaround for what I'm trying to build. 

 

Backstory:

My team is upgrading an older web application that is a repository for documents.  The old version of the app has us storing the binary of Word docs and rendering them to the user on demand.  What we are looking to do now is to get rid of Word altogether and have them work exclusively in the Editor and we can just store the markup in our SQL database.  However, the business owners need us to be able to allow their users to embed images in the documents like you can do with Word. The images will only exist inside the document, so uploading them to another location and then referencing them is impractical (not to mention a concern for our Audit department).

 

Question:

Is there a good way to embed an image into the Editor so that it exists as a part of the document, as opposed to a reference to the image in another location?  It has to be something that will work in Internet Explorer 11 (I know... we hate it too), Edge and Chrome.  I don't mind building a custom tool to help in the process, but I'd just need a little direction on how to make that happen.  Ideally, we'd like for them to be able to copy/paste into the Editor, but we would be OK with it if we have a button to trigger a file chooser and they could select the desired image.  We're open to whatever suggestions that allow our users to embed the images.

 

Thanks so much for any help you guys might be able to give.

Rumen
Telerik team
 answered on 06 Feb 2019
1 answer
132 views

We have a grid that has different columns for different user roles. We have a requirement to persist filters. The problem we are running into is that user A is an admin and sees their specified columns and logs out, user B who is not an admin on the same computer is seeing the admin columns instead of the columns they are supposed to see. Is there any way to just persist filters?

The secondary problem is when we publish updates to the website the grid does not reflect our changes due to the persistence. This could be a serious problem. 

 

We are using:

$(document).ready(function () {
    $("div[data-role='grid']").each(function (index, element) {
        var grid = $(element).data("kendoGrid");
        var key = location.pathname + '-' + element.id;
        var options = localStorage[key];
        if (options)
        {
            grid.setOptions(JSON.parse(options));
        }
        grid.dataSource.read();

    })

})

$(window).on('beforeunload', function () {
    $("div[data-role='grid']").each(function (index, element) {
        var grid = $(element).data("kendoGrid");
        var key = location.pathname + '-' + element.id;
        localStorage[key] = kendo.stringify(grid.getOptions(grid.getOptions());
    })
})

 

 

 

Konstantin Dikov
Telerik team
 answered on 06 Feb 2019
2 answers
159 views

Hi Telerik,

When I edit certain html, the radeditor scrolls the editing pane (div or iframe) to a position that does not show the cursor.

In IE the pane is usually scrolled mid way or to the end of the text.

In Chrome, it scrolls the pane so the cursor is on line 1, which is annoying as a scroll should not happen unless the cursor is off screen.

Test Case:

  • Open the demo page (https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx)
  • Switch to HTML view
  • Select all html and delete
  • Paste the following html code into the editor

<p>&lt;!-- collumn 1 --&gt; <br />
&lt;flow inset="0,0,0,0" width="30%"&gt; <br />
&lt;flow inset="0,0,0,0" firstlineindent="1"&gt; <br />
&lt;material fontstyle="bold"&gt; <br />
&lt;mattext&gt;asdasd as asd&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow&gt; <br />
&lt;flow inset="0,0,0,0"&gt; <br />
&lt;response_lid ident="aorta_${ItemId}" rcardinality="multiple"&gt; <br />
&lt;render_choice&gt; <br />
&lt;flow_label inset="0,0,0,0"&gt; <br />
&lt;response_label ident="36"&gt; <br />
&lt;flow_mat orientation="horizontal" inset="0,0,0,0"&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;36.&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;asd sasda sd a&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;mattext&gt;dfg hjgh dfgdfg&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;flow_label inset="0,0,0,0"&gt; <br />
&lt;response_label ident="43"&gt; <br />
&lt;flow_mat orientation="horizontal" inset="0,0,0,0"&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;43.&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;ty bfdgh ghuy67 hgfdf&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;flow_label inset="0,0,0,0"&gt; <br />
&lt;response_label ident="44"&gt; <br />
&lt;flow_mat orientation="horizontal" inset="0,0,0,0"&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;44.&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;flow_mat inset="0,0,0,0"&gt; <br />
&lt;material&gt; <br />
&lt;mattext&gt;45g dfgsdfgdfsgdd&lt;/mattext&gt; <br />
&lt;/material&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/flow_mat&gt; <br />
&lt;/response_label&gt; <br />
&lt;/flow_label&gt; <br />
&lt;/render_choice&gt; <br />
&lt;/response_lid&gt; <br />
&lt;/flow&gt; <br />
&lt;/flow&gt; <br />
&lt;!-- end collumn 1 flow --&gt; <br />
&lt;!-- collumn 2 --&gt; </p>

  • Switch to design view
  • Locate the following text "<mattext>43.</mattext> "
  • place the cursor at the beginning of the line and hit enter
  • The edit pane will scroll.

Any help would be great! Thanks.

Robert.

 

Rumen
Telerik team
 answered on 06 Feb 2019
1 answer
120 views
     Hello. I need documentation for Kendo UI for Jquery 2016, but can not find it anywhere. please if someone has it give me a download link for it. Thank you in advance
Rumen
Telerik team
 answered on 06 Feb 2019
1 answer
208 views

Hello,

 

I have the following SQL statement

SELECT DATEADD(week, DATEDIFF(week, 0, homeworks_homeworks.submission_date), - 1) AS HwWeek, COUNT(homeworks_homeworks.homework_id) AS HwCounter, edu_subjects.subject_id, edu_subjects.subject_name
FROM     homeworks_homeworks INNER JOIN
                  edu_subjects ON homeworks_homeworks.homework_subject_id = edu_subjects.subject_id
GROUP BY DATEADD(week, DATEDIFF(week, 0, homeworks_homeworks.submission_date), - 1), edu_subjects.subject_id, edu_subjects.subject_name

 

Where the results are shown like this

 

2019-01-13 00:00:00.000      1      1      Arabic
2019-01-13 00:00:00.000      1      2      English
2019-01-27 00:00:00.000      3      2      English
2019-02-03 00:00:00.000      3      2      English

 

When adding dynamic LineSeries as the following

if (_dsHwRep1.Tables.Count > 0)
            {
                
                int _tblCounter = _dsHwRep1.Tables[0].Rows.Count;
                string _firstCol = "";
                for(int x=0;x<_tblCounter;x++)
                {
                    
                    if(_firstCol != _dsHwRep1.Tables[0].Rows[x]["subject_name"].ToString())
                    {
                        _firstCol = _dsHwRep1.Tables[0].Rows[x]["subject_name"].ToString();
                        LineSeries _lSer = new LineSeries();
                        _lSer.Name = _firstCol;
                        _lSer.DataFieldY = "HwCounter";
                        HW_rep1.PlotArea.Series.Add(_lSer);
                    }
                }
                
                
                
                
                

                HW_rep1.DataSource = _dsHwRep1.Tables[0];
                HW_rep1.DataBind();
            }

 

 

The Chart binds correctly, but shows for example Arabic, 1 3 3 where it should just be 1 and not having the 3 values.

 

 

Any ideas?

 

Thank you

 

 

Vessy
Telerik team
 answered on 05 Feb 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?