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

javascript to set height does not appear to be recognized from a dynamically built step in the radwizard

I am using this in the aspx body (taken from telerik forum)

 

        <script type="text/javascript">
            function setHeight(sender, args) {
                window.setTimeout(function () {
                    sender._textBoxElement.style.height = "";
                    window.setTimeout(function () {
                        sender._textBoxElement.style.height = sender._textBoxElement.scrollHeight + "px";
                        sender._originalTextBoxCssText += "height: " + sender._textBoxElement.style.height + ";";
                    }, 1);
                }, 1);
            }
        </script>

 

and using the following to build the step in the wizard

                    case 7:
                        e.RadWizardStep.Controls.Add(new LiteralControl("<div class='row inputwrapper'><div class='col-md-12 text-center'>"));
                        var questionsourceScript = db.QuestionSources.Where(q => q.QuestionId == question.QuestionId).Where(q => q.MarkDelete == false).OrderBy(q => q.DisplayOrder).First();
                        //var controlIdScript = string.Format("SID{0}QID{1}QSID{2}", question.SurveyID, questionsourceScript.QuestionId, questionsourceScript.QuestionSourceId);
                        RadTextBox scriptbox = new RadTextBox();
                        scriptbox.Skin = "MetroTouch";
                        scriptbox.Text = questionsourceScript.Value;
                        scriptbox.AutoPostBack = false;
                        scriptbox.ID = string.Format("RBLSID{0}", Guid.NewGuid().ToString());
                        //scriptbox.InputType = Html5InputType.Text;
                        scriptbox.TextMode = InputMode.MultiLine;
                        scriptbox.Width = Unit.Percentage(100);
                        scriptbox.ReadOnly = true;
                        //scriptbox.Rows =  12;
                        scriptbox.ClientEvents.OnLoad = "setHeight";
                        scriptbox.ClientEvents.OnValueChanged = "setHeight";
                        e.RadWizardStep.Controls.Add(scriptbox);
                        e.RadWizardStep.Controls.Add(new LiteralControl("</div></div>"));
                        break;

 

when displaying the step in the wizard, the textbox displays like there are 0 lines and there should be 13 

 

Any suggestions?

Ivan Danchev
Telerik team
 answered on 22 Jan 2016
1 answer
239 views

I have a page where I use the RadTileList control. Since the height of the RadTileList is bigger than that of the screen, the user must scroll the page vertically to be able to see the whole content of the RadTileList. The problem is that scrolling vertically does not work when the mouse is over the RadTileList area. I tried to set the "ScrollingMode" of the RadTileList  but that does not help.

I have already tried the suggestions from this post: http://www.telerik.com/forums/radtilelist-vertical-scroll-issue

Does anyone have a solution to this problem?

Marin Bratanov
Telerik team
 answered on 22 Jan 2016
3 answers
80 views

I have chart with 3 or 4 LineSeries of the last years. In codebehind I set the visibility of the oldest serie to false, so that the chart is not to overcrowded.

The color of this LineSerie turns into a very light grey. Is it possible to change this "disable" color?

 

Anders Pedersen

Vessy
Telerik team
 answered on 22 Jan 2016
1 answer
93 views

Could you help me? 

 when    I selected file name "MíaColliciá.pdf" on AsyncUpload  show on the debug "M�aCollici�-72.pdf" and the web "M?aCollici?a"

 I use the follow code 

 rdAsyUpConvocatoria.Culture = Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-MX");

 protected override void InitializeCulture()         {             Page.Culture = "es-MX";         }

  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

 

Thanks

Hristo Valyavicharski
Telerik team
 answered on 22 Jan 2016
3 answers
129 views

When adding custom dialogs (as explained at http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/custom-dialogs) we provide a toolbar icon for each dialog.

Those custom icons are used in the default 'classic' rendering mode of the editor. 
But... when using RenderMode=auto, those icon-images are replaced with gear wheels.

How can we provide our own icons for other rendering modes than the 'classic' mode?

 

Ianko
Telerik team
 answered on 22 Jan 2016
3 answers
185 views

Hi,

I have a radgrid built completely from code-behind as a server-control. I am trying to add column filters to some of its columns. When I set the properties required for filtering (AllowFilteringByColumn on the grid) I see the filters on the columns. I then create the columns in code-behind - set the filter properties on them - and add it to the grid's column collection. When I type text in the filter column and press Enter the page/grid doesn't postback. Nothing happens. What am I missing in the below code?

The constructor that initializes the control
public RadGridOpportunity()
{
    this.ID = "grdOpportunity";
    this.MasterTableView.AutoGenerateColumns = false;
    this.MasterTableView.DataKeyNames = new string[] { "ID" };
    this.MasterTableView.Columns.Add(ColStatus());
    this.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerBind;
    this.MasterTableView.NoRecordsTemplate = new TemplateNoRecords();
    this.ItemCommand += RadGridOpportunity_ItemCommand;           
    this.ItemCreated += RadGridOpportunity_ItemCreated;
    this.MasterTableView.NestedViewTemplate = new TemplateNestedView();
    this.NeedDataSource += RadGridOpportunity_NeedDataSource;
 
    //filtering
    this.AllowFilteringByColumn = true;
    this.MasterTableView.AllowFilteringByColumn = true;
}

 The column that is built and added to the columns collection-

protected GridColumn ColStatus()
{
    GridBoundColumn col = new GridBoundColumn();
    col.HeaderText = "Status";
    col.DataField = "Status";
    col.CurrentFilterFunction = GridKnownFunction.Contains;
    col.ShowFilterIcon = false;
    col.AutoPostBackOnFilter = true;
    col.DataType = Type.GetType("System.String");
    return col;
}

 

Viktor Tachev
Telerik team
 answered on 22 Jan 2016
1 answer
127 views

I have an issue that I am not able to figure out. In my Radscheduler I have the dropdown arrow for the popup calendar (next to the "today" link). When you select a date from the calendar I want it to change the Radscheduler view to that date. It is not working for me. Can you please give me some advice on how to make it work? I have included my code and an image of the dropdown calendar below.

Thank you,

Shelly

Nencho
Telerik team
 answered on 22 Jan 2016
5 answers
221 views

I am working on a new web interface and the tile list I used was 3 rows and grouped in 2 columns and looked nice and tidy as per the demos on the site. The quarterly update was applied (UI for ASP.NET AJAX v2016.1.113.45) to my project; but when viewing my tile list now instead of having 3 x 2 tiles then a gap then another 3 x 2 tile grouping. What I do get is 3 x 1 with a large gap and then 3 x 1, etc... (I have attached a file to show what I mean). But by manipulating the CSS class rtlistWrapper and making the width 11.8em instead of 22.8em this does sort of correct it; but is not what I want it to do.

The tiles are bound client side from an array of objects and I expect this process to organise the tiles correctly; but does seem that this is not the case.

 

My questions are; why has the looked changed even though I had only updated to the new telerik update? I would rather not use the CSS class manipulation to get it to look better; if there is another workaround or a setting in the Tile List control that I can implement to get it to render properly then that is the way I would prefer to go. Any advice is welcome.

Marin Bratanov
Telerik team
 answered on 22 Jan 2016
4 answers
252 views
Hello there,
I'd like to select a tab with a button located inside a user control which is then located inside a RadPageView element, i.e.
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="720"  SelectedIndex="1">
  <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">
    <uc1:DoctorControl ID="DoctorControl" runat="server" />
  </telerik:RadPageView>
...

and inside the DoctorControl I have a button to be hooked up with an event handler.

However, I can't figure out how to do this in an "ajaxified way".
I want the tab selection to behave in the same way as if I click the tabs directly, i.e. an AJAX request is initiated and the RadAjaxLoadingPanel is shown during the request.

Obvisously the RadAjaxManager of the page hosting everything can't see the actual initiator which is a button hidden inside the user control,
so this is part of the problem.

Anyone know how to achieve this ?

Thanks
Claus

PS. I am using the Telerik example TabStrip / Application Scenarios / AJAX-Enabled TabStrip and MultiPage as a starting point.
Eyup
Telerik team
 answered on 22 Jan 2016
3 answers
321 views
For Article 508 compatibility, the grid I have needs to have an ID attribute in the TH tags, and the HEADERS attribute in the TD tags. How can I accomplish this with RadGrid?
Pavlina
Telerik team
 answered on 21 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?