Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi there
         My radgrid has several boundcolumns. The insertform textbox is blank. I want the textbox to show a default text. How can i accomplish this. Please help me out somebody. Grateful for your help

Savyo
Princy
Top achievements
Rank 2
 answered on 14 Feb 2013
2 answers
943 views
Hi,

I've tried to use this in JavaScript code:

var result = $find("<%= HiddenField2.ClientID %>");

But, I've got the following error:

ReferenceError: $find is not defined

I use Firefox and Firebug.

Could someone help with this issue?
Goran
Top achievements
Rank 1
 answered on 14 Feb 2013
0 answers
69 views
2 answers
464 views
have ASP.NET web application that contains master page. Master page contains content page. Content page contains user control. User control contains Telerik grid with its context menu.

I'd like to click the item in grid's context menu and open new popup modal window. In that window there's drop down list. I pick up some option from drop down list and click OK. I'd like to get the value selected from drop down list and use it in my ASP.NET code to proceed further.

I've tried to use hidden field to store the value from drop down list but it doesn't work because I'm not sure where hidden field should be placed.

This is my code:

Open popup window:


function ClientItemClicked(sender, eventArgs)
{
    if (eventArgs.get_item().get_value() == "excel")
    {
        var retVal = window.showModalDialog("ExportToExcelChoice.aspx", null, "dialogWidth: 400; dialogHeight: 200; center: yes; resizable: no;");
    }
}

Click "OK" to close popup window:

function ReturnValue() {
    var choice = document.getElementById("DropDownList1").value;
    if ((window.opener != null) && (!window.opener.closed)) {
        window.opener.document.getElementById("HiddenField1").value = choice;
    }
    window.close();
}

It fails on this line:

window.opener.document.getElementById("HiddenField1").value = choice;

Because hidden field is placed in user control and the code can't get the reference to hidden field.

Could someone help me to make it work as soon as possible?

Thank you in advance.

Goran
Top achievements
Rank 1
 answered on 14 Feb 2013
1 answer
96 views
When a cell changes to edit mode the cursor is set at the beginning of the cell contents.

Here the ajax function:

function RowDblClick(sender, eventArgs) {
               editedRow = eventArgs.get_itemIndexHierarchical();
               $find("<%= RadGrid1.ClientID %>").get_masterTableView().editItem(editedRow);
           }

How can I select the cell contents at the time the cell goes into Edit mode?
Eyup
Telerik team
 answered on 14 Feb 2013
2 answers
275 views
Is it possible to maintain Checkbox state while paging in RadGrid Client Side?

I have a RadGrid with the following column:

<telerik:GridTemplateColumn UniqueName="CheckRows" HeaderStyle-Width="42px" >
    <HeaderTemplate>
        <asp:CheckBox ID="chkSelectAll" runat="server" />
    </HeaderTemplate>
    <ItemTemplate>
        <asp:CheckBox ID="chkRowSelect" runat="server" />
    </ItemTemplate>
</telerik:GridTemplateColumn>


I can easily maintain CheckBox state while paging Server Side but I noticed that is very slow and it would cripple what I'm trying to do considering that I have to use the CheckedChanged event of the Checkbox and add AutoPostBack="true" which would create a partial/postback, is there anyway I can maintain what Checkboxes were Checked in Client Side and then access those values from server?

I basically want to do something similar to this tutorial
http://www.telerik.com/help/aspnet/grid/gridpersistcheckboxstateingridtemplatecolumnonrebind.html
but in client side.

Thank you.
Eyup
Telerik team
 answered on 14 Feb 2013
1 answer
127 views
Hello,

Can anyone provide me with the sample code to create an appointment context menu for the RadScheduler. I also want to add icon to the context menu items.

Please Help, Its Urgent.
Teena
Princy
Top achievements
Rank 2
 answered on 14 Feb 2013
1 answer
184 views
So...I have a page with a RadAjaxManager that is dynamacially loading a user contol. It display a RadAjaxLoadingPanel perfectly when loading the user control. Inside the User Control page (ascx) I have a RadAjaxManagerProxy defined. No matter what combo of settings I used in the proxy, I was not able to get the loading panel to display until I added the following to my Page_Load of my User Control.

RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(ddAgent, panelTarget, RadAjaxLoadingPanel1);


I've been able to work around this by adding each initiator control to the Page Load in the above fashioni. After adding this, the loading panel now displays from the User Control. The only issue is that it I can't seem to figure out how to center the Loading Panel in the center of the page.

The base page utlizes the following javascript to center the control (not showing the code since it works and was borrowed from previous code):
<ClientEvents OnRequestStart="centerLoadingPanel"></ClientEvents>

 Wondering how to get the same functionality on the RadAjaxManagerProxy which doesn't seem to support the ClientEvents..and not sure if the proxy is even being utilized any more.
Angel Petrov
Telerik team
 answered on 14 Feb 2013
1 answer
65 views
I can't find any demos for the beta that uses model binding...

I tried looking here, but couldn't find anything on it:
http://demos.telerik.com/aspnet-ajax-beta/Grid/Examples/programming/binding/defaultcs.aspx

Does anyone know where I can find any demos on this?
Pavlina
Telerik team
 answered on 14 Feb 2013
1 answer
108 views
Hello,

I have issue with cancelling Radgrid export which had been started through radbutton click.
protected void btn_export_data_OnClick(object sender, EventArgs e)
{
RadGrid1.MasterTableView.ExportToExcel();
}

Does somebody know, how to break or cancel export to excel, when RadGrid has let's say 10000 rows ? Even when I close IE browser window, in the server task manager there si still w3wp.exe process with increasing memory consumption and CPU load.

Please help me to solve this issue.

Best regards

Vasssek
Shinu
Top achievements
Rank 2
 answered on 14 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?