Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
734 views

Hi,

i want to open popup when user click on view hyperlink in radgrid.
please let me know how to achieve this functionality in RadGrid control.

something like this...

<

 

a href="#" onclick="openWindowEdit('<%# DataBinder.Eval(Container.DataItem, "VersionId") %>'); return false;"

 

 

id="lnkPWindow" style="font-weight:bold;z-index: 104; left: 237px; position: absolute; top: 90px">[VIEW/EDIT]</a>

this is done on link button on page....and samething i want in grid.
or some other way to achieve this type of functionality in Grid.

waiting for your reply.

 

Sagar
Top achievements
Rank 1
 answered on 30 May 2014
1 answer
189 views
Hi everyone,

I have 3 ​PivotGridAggregateField, the first is a quantity, second is a price, and third is a ​CalculationExpression, a multiplication between quantity and price. The problem i have, is in Grand Total Column, because the first and second grand total columns are ok, but third grand total column not, the result in this grand total column, is a multiplication between quantity grand total column and price grand total column. Can i edit this values or hide any grand total column or failing, edit aggregate functions in grand total columns?...

Thks.....

Best regards. 
Kostadin
Telerik team
 answered on 30 May 2014
1 answer
160 views
I have a modal that gets dynamically loaded when a user clicks a button on a grid. The modal content is populated from an ascx user control. It has to be inside the update panel as the values change dynamically when the user clicks the grid.

I add the following to display the modal:

Me.LoadMyUserControl("~/controls/Log.ascx", Panel1)
Dim MessageScript As String = "$('#modal-interact').modal('toggle');"
ScriptManager.RegisterStartupScript(Me, GetType(Page), "UniqueID1", MessageScript, True)


The problem is, when i submit the modal since the modal is ajax-y it does a partial postback causing the modal not to close.

I've tried using an onclientclick to close the modal then postback via javascript but the postback does not occur. 

This will close the modal, but not fire the postback:

<script type="text/javascript">
    function confirmthis()
    {
        $('#modal-interact').modal('hide');
        return true;
}
    </script>

Then of course removing the onclientclick and just handling the onclick triggers the postback, but does not hide the modal. 
Radoslav
Telerik team
 answered on 30 May 2014
1 answer
57 views
hi im having a issue in telerik Schedule, currently im binding sqldatasource to my Schedule, in my store procedure im querying my Schedule table but suppose i have records of million of entries in my Schedule database table, If i call my Schedule then will it query million records to bind data to Schedule control ?
is that possible any thing like that if i select specific month, day or week then only it will query my command (month, week or any other date) fore database on each time
Boyan Dimitrov
Telerik team
 answered on 30 May 2014
1 answer
75 views
Hey telerik...
I've a cross this "error" when testing my new drag and drop feature on my site.
I tried both local and on your demo site, same result.
It's looking like the ListBox is leaking a bit, when I go "crazy" with the drag and drop.
The selected items get stuck on the cursor, and the whole site hangs.

Is there something i can do to fixs this?

See videos of the problem here:
http://www.screencast.com/t/JzcXehBvd9BJ
http://www.screencast.com/t/7lcJz91cvMhr
Boyan Dimitrov
Telerik team
 answered on 30 May 2014
4 answers
251 views
I have run into an issue with the latest version 2013.2.717.35 when using the eventname property in the radajaxmanager. Using this version and setting an eventname for a control causes a yellow screen of death. See the attached jpg. I have tried this in 3 different projects with all yielding the same result. If I remove the eventname property then all works well. If I revert back to version 417.35, there are no problems using the eventname property. Any suggestions?

My ajax code:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnTest" EventName="btnTest_Click">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTextBox1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Event code:
Private Sub btnTest_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnTest.Click
 
End Sub

Controls:
<telerik:RadTextBox ID="RadTextBox1" runat="server" TabIndex="1" EmptyMessage="Empty">
</telerik:RadTextBox>
<telerik:RadButton ID="btnTest" runat="server" AutoPostBack="true" Text="Click">
</telerik:RadButton>

Konstantin Dikov
Telerik team
 answered on 30 May 2014
2 answers
1.0K+ views

Hello,

I have a RadGrid (v2009.01.0527.20) with Height=”100%” and Width=”100” that is inside a RadSplitter pane and set to automatically resize with the RadSplitter pane resize.  This is based on the demo code from:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandsplitterresizing/defaultcs.aspx?product=grid.

The columns are NOT autogenerated, they are GridBoundColumn and a few of my own custom columns that inherits GridBoundColumn and are used for custom filtering.

All this is working fine so far.

My problem is that some of the text column contents are too long to fit in the column and do not wrap but instead bleed over into the next adjacent column.  I have tried adding ClientSettings-Resizing-ClipCellContentOnResize="true" but that does not work, the text still bleeds over into the next adjacent column.

How do I get the cell contents to wrap when it is too long to fit in column?

Thanks,

Randall Price

Priyanka
Top achievements
Rank 1
 answered on 30 May 2014
1 answer
69 views
Hi,

I have the exact similar scenario which is descrbed in the below thread. 
http://www.telerik.com/forums/problem-working-with-dynamically-created-radgrid-s

The solution suggested by Telerik Team in this thread is given below

1) To drop the resizing and reordering features from this grid.
2) To disable the ViewState of the whole placeholder where you load the RadGrid control. In this scenario have in mind that the SqlDataReader binding may not works, as each postback in the page will make the grid try to rebind and if the reader is currently closed, you will get an exception.

Unfortunately I cannot use the above suggestion as my customer is so particular on the ReOrder functionality.

As it an old thread(2011) My query here is there any solution available for this issue in latest Telerik Controls?

Thanks,
A2H
Eyup
Telerik team
 answered on 30 May 2014
1 answer
60 views
Hi there,

I have a service that returns an object containing 2 lists.

First list is 'Columns' which contains the following "A1, B2, B3, C1, C2"
Second list is 'ItemCount' which contains the following "Name: abc, A1: 12, B2: 4, C1: 10", "Name: xyz, A1: 12, B2: 4, B3, 2", "Name: def, C1: 10"
and I want grid to display like following:

NAME           A1        B2           B3           C1            C2
abc               12         4             0             10             0
xyz               12         2              2             0              0
def                0           0             0             10            0

How can this be achieved?? please note, columns will change depending on data that is returned
Eyup
Telerik team
 answered on 30 May 2014
7 answers
248 views
In my aspx page is having RadGrid and RadWindow inside the update panel in Radwindow i have RadTreeview and Radeditor the radtreeview is not wroking properly when it is in the update panel before its wroking properly after inserting updatepanel only i am getting error how to solve is it RadTreeView will wrok in UpdatePanel are not
Boyan Dimitrov
Telerik team
 answered on 30 May 2014
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?