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

Hello, I have just upgraded to the latest Telerik version and am trying to make my pager template responsive by having the page numbers hide via the trim class.  I've added the TrimMd="true" to my button field control, and the class showing up in Developer Tools, but the WebResource file does not seem to have the latest CSS, it does not include the trim classes.  

Is there something else I need to add to the control to have it recognize the responsive classes?  I'm confident the DLLs updated properly, as my Telerik Editor is working on mobile.

Thanks for any help!

<telerik:RadDataPagerButtonField FieldType="NextLast" HorizontalPosition="RightFloat" />
  <telerik:RadDataPagerButtonField FieldType="Numeric" TrimMd="true" HorizontalPosition="RightFloat" />
<telerik:RadDataPagerButtonField FieldType="FirstPrev" HorizontalPosition="RightFloat" />

 

Rumen
Telerik team
 answered on 02 May 2017
1 answer
124 views

Hello, I have just upgraded to the latest Telerik version and am trying to make my datapager responsive by having the page numbers hide via the trim class.  I've added the TrimMd="true" to my button field control, and the class showing up in Developer Tools, but the WebResource file does not seem to have the latest CSS, it does not include the trim classes.  

 

Is there something else I need to add to the control to have it recognize the responsive classes?  I'm confident the DLLs updated properly, as my Telerik Editor is working on mobile.

 

Thanks for any help!

 

 

<CCWeb:TelerikPager runat="server" Skin="Bootstrap"  RenderMode="Lightweight"   >
    <Fields>
     
     <telerik:RadDataPagerButtonField FieldType="NextLast" HorizontalPosition="RightFloat" />
      <telerik:RadDataPagerButtonField FieldType="Numeric" TrimMd="true" HorizontalPosition="RightFloat" />
    <telerik:RadDataPagerButtonField FieldType="FirstPrev" HorizontalPosition="RightFloat" />
     
    </Fields>        
</CCWeb:TelerikPager>

 

Rumen
Telerik team
 answered on 02 May 2017
1 answer
127 views

Hello,

I am looking to use RadSpreadsheet to import a spreadsheet template and then override/replace some of the values with database data. Is there a way to do this? I can't find anything in your documentation regarding using multiple providers with this product. Thanks for your help!

Vessy
Telerik team
 answered on 02 May 2017
3 answers
705 views

Hi,

I have a page with a couple of RadWindows.

The statement $find("<%=rwPrototypeSummary.ClientID%>") returns null, while similar statement for other RadWindows works fine.

Not sure what am I missing.

The markup is as follows:

<telerik:RadWindowManager ID="Singleton" runat="server" Animation="None" Behaviors="Move"
        Width="900px">
        <windows>
            <telerik:RadWindow ID="rwProtoResponseMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwProtoResponseMediaEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
                NavigateUrl="~/Agency/Authoring/ProtoResponseMediaEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwResource" runat="server" Title="Pick a Resource" VisibleStatusbar="false"
                Modal="true" NavigateUrl="~/Agency/Search/ResourceSearch.aspx"
                Width="800" Height="650">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPatientProfileEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPatientProfileEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Patient"
                NavigateUrl="~/Agency/Authoring/PatientProfileEditEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeMediaEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
                NavigateUrl="~/Agency/Authoring/PrototypeMediaEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeSummary" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeSummary_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Summary"
                NavigateUrl="~/Agency/Authoring/PrototypeSummary.aspx">
            </telerik:RadWindow>
        </windows>
    </telerik:RadWindowManager>

 

The Javascript is as follows:

<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">

        <script type="text/javascript">

     function OpenPrototypeSummary(pid) {
                var url = '<%= ConvertRelativeUrlToAbsoluteUrl("~/Agency/Authoring/PrototypeSummary.aspx") %>';
                url = url + "?id=" + pid;

                console.log(url);

                var oWnd = $find("<%=rwPrototypeSummary.ClientID%>");

                console.log(oWnd);

                oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
                //oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
                oWnd.show();
                oWnd.setSize(950, 850);
                oWnd.setUrl(url);
                oWnd.minimize();
                oWnd.maximize();
                oWnd.restore();
                oWnd.center();
            }

            function rwPrototypeSummary_ClientClose(sender, args) {

                var arg1 = args.get_argument();

            }
        </script>

    </telerik:RadScriptBlock>

ozgur
Top achievements
Rank 1
 answered on 02 May 2017
2 answers
179 views

Hi, we've just updated from 2017.1.118 to 2017.1.228 and noticed a dramatic change in the way the RadButton control is rendered. Specifically, the checkbox state of the RadButton doesn't seem to display at all except when using the Default skin and even then it doesn't display properly. When trying to use the Silk skin for example, the Chrome console errors with a WebResource.axd 404 error. We've gone through the Web Resources Troubleshooting and haven't been able to resolve the issue. It seems odd as we've updated in the past with no issues. The normal RadButton displays fine.

 

Thanks

Daniel

Vessy
Telerik team
 answered on 02 May 2017
3 answers
165 views

Hello, I've just upgraded to the latest Telerik DLLs and am working on making the Editor responsive.  I'm not a fan of the mobile mode, which doesn't seem to work too well on either Android or Iphone, so I would prefer to use the Lightweight rendering.

 

I have an existing Toolbar.xml that I've been using.  Is it possible to hide some of the buttons as the window resizes, either by applying bootstrap classes or via media queries in the CSS?  In addition, is there a property for hiding the Design/HTML view upon resizing as well?

 

Thank you for any direction on this!

 

Rumen
Telerik team
 answered on 02 May 2017
1 answer
120 views

Hello,

we are building custom version of Metro skin for our application from source codes. But in version "Telerik_UI_for_ASP.NET_AJAX_2017_1_228_Source" there is something strange. Many missing variables in scss files with commented styles and infos as "// TODO: missing color" etc. skin source codes references scss files to design project and many more.

Does it men this source code is not RTM and is it some debug build? Or how to get final source codes?

 

Regards

René

René
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 02 May 2017
6 answers
623 views
Greetings,

I have an ASP.Net Framework 4 application on Windows 7, using C# for the backend coding, that I need to be able to trigger off of a paste event in a RadTextBox control.

Scenario is there are two text box controls. If the user enters text into one text box, the other text box needs to be cleared. I have handled this for the case when the user types new text into either of the text boxes, but that solution (using the ClientEvents-OnKeyPress event handler) does not work for a paste operation.

Is there a solution to this that I have not found? If so, any assistance would be appreciated.

Thanks.

Steve

Specifics:
- ASP.Net Framework 4
- Windows 7 SP 1
- IE 9.0.8112.16421
- Telerik WebUI VSExtensions 2011.02.712.0
- Preferred Programing Language: C#
Vasssek
Top achievements
Rank 1
 answered on 02 May 2017
1 answer
181 views

I'm struggling with trying to get to the SearchContext item for a radsearchbox via the client side.  below I have what I'm trying to get to, but to no avail. If some guidance could be provided I would greatly appreciate it.

 

 

function onCheckboxChanging(sender, args) {
    var chkbxlId = sender.get_id();
    var srchbxId = chkbxlId.replaceAll("radchkbox_Item", "radsearch_Item");
 
    var objSearchBox = $find(srchbxId);
    var objSearchContext = objSearchBox.get_searchContext();
 
    alert( 'SearchBox Context Item Value = ' + objSearchContext.value);
 
 
}
Vessy
Telerik team
 answered on 02 May 2017
1 answer
133 views

I am creating dynamic RadComboBox controls in the Page_Init event handler.  The control needs have have multiselect checkboxes therefore I am leveraging the "Load on Demand" feature using web method.  I am able to add the checkbox using a client template successfully that looks like this:

function onItemDataBound(sender, eventArgs) {
    var item = eventArgs.get_item();
    var dataItem = eventArgs.get_dataItem();
 
    item.get_attributes().setAttribute("text", dataItem.Text);
    item.set_value(dataItem.Value);
    item.set_clientTemplate("<div onclick='StopPropagation(event)' class='combo-item-template'><input id='chkMultiSelect' class='rcbCheckbox' type='checkbox' value='#=Value#' onclick='checkboxClick(this);' /><span>#=Text#</span></div>");
    dataItem.Index = item.get_index();
    item.bindTemplate();
}

 

All of this works just fine, the "Load on Demand" is working great.  I'm able to select the items in the checkbox and all of that is good.

The problem exists when another control on the page performs a postback.  I need to recreate this RadComboBox control in the Page_Init event handler, and what I would like to do is to create the "checked" items during the control creation.  In other words, the RadComboBox would be initially created with only the checked items server-side, and when the client-side "OnClientItemsRequesting" event handler fires it would already have these items in the control.

So I created a server side ItemTemplate class as such:

public class KimDDLItemTemplate : ITemplate
{
    public void InstantiateIn(Control container)
    {
        System.Web.UI.HtmlControls.HtmlGenericControl outerDiv = new System.Web.UI.HtmlControls.HtmlGenericControl("div");
        outerDiv.Attributes.Add("onclick", "StopPropagation(event)");
        outerDiv.Attributes.Add("class", "combo-item-template");
 
        System.Web.UI.HtmlControls.HtmlInputCheckBox cbx = new System.Web.UI.HtmlControls.HtmlInputCheckBox();
        cbx.ID = "chkMultiSelect";
        cbx.Attributes.Add("class", "rcbCheckbox");
        cbx.Attributes.Add("onclick", "checkboxClick(this);");
 
        System.Web.UI.HtmlControls.HtmlGenericControl innerSpan = new System.Web.UI.HtmlControls.HtmlGenericControl("span");
 
        outerDiv.Controls.Add(cbx);
        outerDiv.Controls.Add(innerSpan);
 
        outerDiv.DataBinding += new EventHandler(rcbDDLValue_DataBinding);
        container.Controls.Add(outerDiv);
    }
 
    private void rcbDDLValue_DataBinding(object sender, EventArgs e)
    {
        System.Web.UI.HtmlControls.HtmlGenericControl targetParent = (System.Web.UI.HtmlControls.HtmlGenericControl)sender;
        RadComboBoxItem item = (RadComboBoxItem)targetParent.BindingContainer;
        string itemValue = (string)DataBinder.Eval(item, "Value");
        System.Web.UI.HtmlControls.HtmlInputCheckBox target = (System.Web.UI.HtmlControls.HtmlInputCheckBox)targetParent.FindControl("chkMultiSelect");
        System.Web.UI.HtmlControls.HtmlGenericControl innerSpan = (System.Web.UI.HtmlControls.HtmlGenericControl)targetParent.Controls[1];
 
        target.Value = itemValue;
        target.Checked = true;
 
        innerSpan.InnerText = (string)DataBinder.Eval(item, "Text");
    }
}

 

And in the Page_Init event handler I added each of the items obtained from the viewstate value in the Postback to create the new RadComboBoxItem.  But these are not visible in the control when I open the drop down.

Am I adding the items on the Page_Init event properly?

Eyup
Telerik team
 answered on 02 May 2017
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?