Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
186 views
Hello I am trying to keep radgrid inside fieldset but when i keep radgrid inside fieldset, i am getting the grid's scroll bar but the horizontal width i am getting is what exactly with out scrollbars. i want the grid to be fit on the Browser with scroll bars. But it is long grid.

please reply.
Thanks.
Attila Antal
Telerik team
 answered on 14 Nov 2019
1 answer
79 views

Hi, 

We need to move the RadGrid selected Row Up and Down by using buttons Up and Down outside the RadGrid. We need to implement this approach on Urgent basis any Solution would be highly appreciated?

Thanks,

Sufyan

Attila Antal
Telerik team
 answered on 14 Nov 2019
8 answers
884 views
Hi,

I have a Asp.Net Label control  and few Button controls ( "OK", Cancel" and "Submit" Buttons) inside rad window.
I want to modify the Label's text and toggle the visibility of these buttons using javascript. I tried following code


function showConfirmationBox(){
     var Radwindow1 = $find("<%=Radwindow1.ClientID %>");
     var confirmWinContentTemplate =  Radwindow1.get_contentFrame().contentWindow;
     var label1 = _confirmWin.getElementById("Label1");
     var submitBtn = _confirmWin.getElementById("SubmitBtn1");
     label1.innerHTML ="Error in code!";
     submitBtn.style.display = "none";
     submitBtn.style.visibility = "hidden";

 
     ......
      ....
    Radwindow1.show();
}
 

Any idea?

Thanks,
Prava
nitin
Top achievements
Rank 1
 answered on 14 Nov 2019
1 answer
96 views
When I double click on a Word file within File Explorer I get some garbage text in the browser.  Is there anyway to double click on the Word document and it opens up the file in Word?
Vessy
Telerik team
 answered on 14 Nov 2019
15 answers
1.1K+ views
Hi,
I am trying to change the Metro theme settings..but for some reason: I can't change the sort able column header when in groups. (in screen shot they appear in grey)..How can I change its font color..

<style type="text/css">
    div.RadGrid_Metro th.rgHeader,
    div.RadGrid_Metro th.rgSorted
    {
       background-image: none;
       background-color: #37A6CD;
       font-weight:bold;
       color: White;
    }
    </style>  

Thanks.

Peter Milchev
Telerik team
 answered on 14 Nov 2019
1 answer
47 views

Hi,

I'm getting "Telerik.Web.UI ambiguous error in the ItemDatabound event while building my solution which is created in VS2010. I do verify the "bin" folder of application where I've only one Telerik.Web.UI DLL. Also, I verified the GAC and I don't see any DLL in the name of Telerik.Web.UI....Not sure from where this is referring the DLL and throwing ambiguous error, Can you pls help us on this?

 

Attila Antal
Telerik team
 answered on 14 Nov 2019
9 answers
268 views

Hello,

we have problem with custom skins and Telerik controls on Update Panels.

Scenario:
We have full customized Bootstrap themes generated from SCSS Telerik sources. Whole skin is in one file on our site, so no need to get skins from Telerik Skins Assembly.
We are using custom user control to injects css files to page (in example: Controls\CombinedReference.cs)

Problem:
When Telerik control is invisible on initial page load and postback occurs, our css files are overwritten using webresource.axd added after are links.

Just FYI - in test application, I have enabled EnableEmbeddedSkins to see overrided styles. I can disable it to prevent including themes, abut it still includes base CSS files in problem cases.

Test cases:
In test application, there is page "Default". Custom css files are injected in "OnPreRenderComplete" event and all works fine. Our CSS wins, because other CSS are included before.
Screens: 01-default1_before-postback.png + 02-default1_after-postback.png

But this works only if "base.OnPreRenderComplete(e)" is not called :-) In that case is result the same as next test case.

In page "Default2", there is out custom user control. This controls does almost the same, but in "Page_PreRenderComplete". Result is the same as in previous case with enabled base event. CSS are overwriten.
Screen: 03-default2_after-postback.png

Result:
So it seems that base "PreRenderComplete" event is responsible to injecting css files using handler to head and Telerik handlers somehow goes "the last".

Attached screens:
01-default1_before-postback.png - Initial page load
02-default1_after-postback.png - After postback - Good result
03-default2_after-postback.png - After postback - Wrong result

Test application:
[link removed]

I have 2 questions:

1) How to get working example to get our CSS always to win?
2) Is there any way, how to complete disable serving all Telerik css files (base and skins) using WebResource.axd and generate everything from source scss files?

Best Regards
René

Attila Antal
Telerik team
 answered on 13 Nov 2019
5 answers
102 views
Sorry if this is a duplicate--couldn't find this question elsewhere...

I would like my range RadSlider to only accept changes via dragging the handles, not by clicking on the track itself. What should I set to achieve this? I noticed that setting SmallChange and LargeChange to zero caused the slider to disappear. Here is my current definition:

<telerik:RadSlider runat="server" ID="rslSol" IsSelectionRangeEnabled="True" Width="150" ShowDecreaseHandle="False" ShowIncreaseHandle="False" ThumbsInteractionMode="Push" EnableDragRange="False" TrackMouseWheel="False" OnClientValueChanged="rlsSolSlideChanged" OnClientSlideEnd="rslSolSlideEnd"></telerik:RadSlider>

And here's how it looks (attached image):

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 13 Nov 2019
1 answer
700 views

In my application, I have a Telerik RadGrid that contains student information. I'm using Visual Studio 2017 to load test some major changes to our system. To do that, I need to emulate a number of teachers performing various tasks in the system, each using the RadGrid to select a different student.

I've tried recording a Web Test, but I don't see anywhere to inject the selected student's ID value into the POST event that correlates with the ItemCommand event of the RadGrid that fires when a user clicks a student name on the grid.

I do see that the _EVENTTARGET parameter = 

ctl00$ContentPlaceHolder1$rgStudentList$ctl00$ctl04$btnLName

(which is the asp linkbutton in the last name field) but the _EVENTARGUMENTS parameter is empty.

I have searched the entire POST request and don't see anything like the commandarguments value I need.

Can anyone help me?


Eric R | Senior Technical Support Engineer
Telerik team
 answered on 13 Nov 2019
5 answers
227 views
Hello Anyone,
I guess i am missing something here. I have created an ITemplate as below and adding it to the FilterTemplate of one of the column of RadGrid. 

public class cblItemTemplate : ITemplate
{
    /// <summary>
    /// Create the template
    /// </summary>
    /// <param name="container"></param>
    public void InstantiateIn(Control container)
    {
        Panel pnl = new Panel();
 
        //checkbox
        CheckBoxList cbl = new CheckBoxList();
        cbl.ID = "cblCounty";
        cbl.AutoPostBack = false;
        cbl.DataBinding += cbl_DataBinding;
 
        //button
        Button btn = new Button();
        btn.ID = "btnApply";
        btn.Text = "Apply";
         
        //button
        Button btnClear = new Button();
        btnClear.ID = "btnClear";
        btnClear.Text = "Clear";
 
        pnl.Controls.Add(cbl);
        pnl.Controls.Add(btn);
        pnl.Controls.Add(btnClear);
 
        container.Controls.Add(pnl);
    }
 
    void cbl_DataBinding(object sender, EventArgs e)
    {
        CheckBoxList cbl = (CheckBoxList)sender;
        cbl.Items.Add(new ListItem("County1"));
        cbl.Items.Add(new ListItem("County2"));
    }
}

On first load, i see the template added to the column. But when i click on the Apply button, the template vanishes; i do not see it. I am adding the template on the ColumnCreated event of the radgrid as below:

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
     if (col.UniqueName == "county")
     {
           var cbl = new cblItemTemplate();
           col.FilterTemplate = cbl;
     }
}

Can someone please let me know where i am going wrong? Do i need to add the filtertemplate in a different event?
Rumen
Telerik team
 answered on 13 Nov 2019
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?