Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
656 views

I am trying to get the values from the RadGrid insert form and then insert those values from the form elements into a SQL database using a stored procedure. When I run the following code using the RadGrid insert command sub, empty values are inserted to the database.

Here is the code:

Protected Sub rg_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles rg.InsertCommand
        Dim item As GridEditFormInsertItem = CType(e.Item, GridEditFormInsertItem)
        Dim name As RadTextBox = TryCast(item.FindControl("txtName"), RadTextBox)
        Dim str As String = name.Text
    End Sub
Attila Antal
Telerik team
 answered on 14 Nov 2019
5 answers
263 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
119 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
982 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
141 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.2K+ 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
76 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
333 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
137 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
813 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?