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

Hey,

I'm currently using version 2010.1.309.35

I can't "find" rad docks or zones in JavaScript like what is shown http://demos.telerik.com/aspnet-ajax/dock/examples/clientsideapi/defaultcs.aspx

var zone = $find('ctl00_ph_rdzMain'); 

This ALWAYS returns null. 

The HTML has the element:

<div id="ctl00_ph_rdzMain" class="RadDockZone RadDockZone_Default rdVertical " style="border-color:Transparent;border-width:1px;border-style:solid;width:870px;min-width:10px;min-height:10px;"

$find is working fine tho because I can find any other telerik control. The only ones I can't fine a anything to do with docking.

What am i doing wrong :(

NaturalCause
Top achievements
Rank 1
 answered on 15 Jun 2010
1 answer
54 views
Hi,

I have created two RadGrid's each of which is contained in a RadDock.

I have tried to implement rows drag and drop functionality between the two RadGrid's.

But the RadGrid on which some taken rows are dropped is not refreshed right after the taken rows have been dropped on it,

while the RadGrid from which the rows are taken refreshes fine.

If the two RadGrid's are not cotained in RadDocks, they work fine.

So I guess that it happens because the RadGrid's are contained in RadDock's

Please help me.

Thank you
Rob Van Dullemen
Top achievements
Rank 1
 answered on 15 Jun 2010
2 answers
192 views
Hi,

I am porting an old asp application to .net and I need to replicate a fairly complex grid scenario.

I have a list of resources which are heirachical with only 2 levels at the moment. So Parent Child relationships. I then have a set of Roles which are editable by the user so the grid will have to be generated dynamically.

Basically I need a grid with the first column showing the resources using the heirachical layout and then the remaining columns need to be the generated at run-time from the Roles with checkboxes in edit mode. Each check box needs to post back on selectedindexchanged to allow the role to be added to the resource.

Obviously the checkboxes need to be databound to the roles as well to check or uncheck appropriately.

I have attached a screen shot of the classic asp version. This one uses a save button but I want to do the postback automatically if possible.

Is this easily do-able with Rad Grid?

Thanks for any help.
Jacob
Top achievements
Rank 1
 answered on 15 Jun 2010
2 answers
162 views
I have a weird problem with client data binding in the Chrome browser. All other browsers work fine. I haven't spent a lot of time investigating - mostly because I have no idea where to start.

I have a RadGrid (2010.1.415.35) with several columns, two of which are date columns and are right next to each other (Invoice Date and Due Date). The grid is bound on the client using results from a web service. The Invoice Date always populates correctly, but the Due Date only displays data for the top row in the grid. All of the other rows have a blank Due Date. All other columns are populated correctly.

As I said, everything works fine in IE, FireFox, Safari, etc. It is only Chrome that has the problem.

You can see a working example (or, non-working example as the case may be) by logging in to our demo site:
http://sandbox.invoicesmadeeasy.com/Login/UserLogin.aspx
Username: demo@invoicesmadeeasy.com
Password: demopass

Once you log in, click on the "Open (Unpaid)" folder on the left side of the screen to view the grid. You will see that all 3 rows have a Due Date in IE/FireFox/Safari, but if you log in using Chrome then only the top row displays the Due Date.

Any ideas?
Scott R
Top achievements
Rank 1
 answered on 14 Jun 2010
2 answers
121 views
Is there a simple way to remove the header entirely from a grid?

I had assumed a simple Visible="false" or perhaps Height="0px" would do the trick, but the header seems quite persistent in displaying itself, and I am at a loss. Anything simple I am missing?

Thanks!
Dan
Top achievements
Rank 1
 answered on 14 Jun 2010
2 answers
98 views
Hi. I am using a RadGrid on a page that allows users to select multiple options from checkboxes in the grid. The problem arises when users try to do a printscreen of the page after making their selections (but before submitting the page): the grid prints correctly, but in the printout all checkboxes are unchecked, which is their initial state.

Is there a way to capture the checked state of the checkboxes inside a RadGrid for a printscreen? Note that all other functionality is fine; the only issue is with the printscreen.

Thank you!
lauren
Top achievements
Rank 1
 answered on 14 Jun 2010
7 answers
615 views
Hi Telerik Support staff,
I have the following issue,
I have a Treeview populating perfectly with server side code, and changing the node text using the editor.content client side.
I set up a web service to handle load on demand and I end up with the following error:

A potentially dangerous Request.Form value was detected from the client (RadTreeView1_ClientState="...:{"text":"<span style=\"color:...").

I load the root nodes from server side, however I add nodes clientside and change the node text client side:

string connectstr = SqlConnect;

 

 

SqlConnection Sqlconnect = new SqlConnection(connectstr);

 

 

string sql = "Select TemplateID, TemplateLineID, TemplateNodeOrder, SectionID, ParentTemplateLineID, NodeLevel, NodeText "+

 

 

"From TemplateNode " +

 

 

"Where ParentTemplateLineID is null "+

 

 

"Order By SectionID ";

 

 

SqlDataAdapter adapter = new SqlDataAdapter(sql, connectstr);

 

 

DataTable dataTable = new DataTable();

 

adapter.Fill(dataTable);

RadTreeView1.WebServiceSettings.Method =

"LoadNodes";

 

RadTreeView1.WebServiceSettings.Path =

"TemplateLoadOnDemand.asmx";

 

 

 

foreach (DataRow row in dataTable.Rows)

 

{

 

RadTreeNode node = new RadTreeNode();

 

node.Text = row[

"NodeText"].ToString();

 

node.Value = row[

"TemplateLineID"].ToString();

 

 

node.ExpandMode =

TreeNodeExpandMode.WebService;

 

RadTreeView1.Nodes.Add(node);

}

 

My settings for the treeview are :

 

<

 

telerik:RadTreeView ID="RadTreeView1" Runat="server" EnableDragAndDrop="true"

 

 

onnodedrop="RadTreeView1_NodeDrop" EnableDragAndDropBetweenNodes="True"

 

 

onclientnodedropping="nodeDropping" OnClientContextMenuItemClicking="OnClientContextMenuItemClicking"

 

 

 

 

 

MultipleSelect="True" OnClientNodeEdited="OnClientNodeEditedHandler"

 

 

Skin="Outlook" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick"

 

 

CheckChildNodes="True" onnodeedit="RadTreeView1_NodeEdit"

 

 

style="white-space: normal;" PersistLoadOnDemandNodes="true" OnNodeDataBound="RadTreeView1_NodeDataBound"

 

 

OnClientNodeClicked="OnClientNodeClicked" >

 

 

 


I did the following to resolve the error but continue to get it....

In Script Manager I set

 

 

EnablePartialRendering="False"

 


Everything works when I don't use the webservice, client side calls and server side calls are perfect.... Its when I load the webservice that I start throwing errors.  The web service loads the child nodes fine... Editing or adding is a big issue when using the web service.

Thank you in advance for your help.
~Julie





Courtney Mills
Top achievements
Rank 1
 answered on 14 Jun 2010
3 answers
168 views
I have a RadComboBox that I'm using to allow users to perform assisted searches.  As they type in the combo box field, "search assist" values are populated in the drop down section.  The user can either hit enter (or click a search button) or select one of the values in the drop down to perform a search.   Let me rephrase and emphasize that the user can either use their freely entered text or select one of the suggested search terms.

If the user hits the enter key, I am capturing this with the OnClientKeyPressing event. Most of the time this works fine but the event fails to fire if I hit enter at the exact moment I see the "Loading..." text in the drop down.  If I hit enter a fraction of a second before or after the loading text, it works normally.

Here is my combo box:
<telerik:RadComboBox ID="ddlTextSearch" runat="server" Width="200px" CssClass="SearchControl" 
            AllowCustomText="True" EnableLoadOnDemand="True"   
            ShowDropDownOnTextboxClick="False" ShowToggleImage="False" 
            onclientitemsrequesting="ddlTextSearch_ItemRequesting" 
            OnClientKeyPressing="ddlTextSearch_HandleKeyPress"   
            OnClientSelectedIndexChanged="ddlTextSearch_SelectionChanged" ZIndex="9900">  
            <WebServiceSettings Method="GetCompletionList" Path="~/TextSearchAutoComplete.aspx" /> 
</telerik:RadComboBox> 
<script type="text/javascript">  
            Telerik.Web.UI.RadComboBox.prototype._onInputCellClick = function(e) {  
                if (this._enabled) {  
                    //  if (this.get_text() !== this.get_emptyMessage())  
                    //       this.selectText(0, this.get_text().length);  
                    if (!this.get_dropDownVisible() && this._showDropDownOnTextboxClick)  
                        this._showDropDown(e);  
                    return true;  
                }  
            }  
</script> 

Here is my js method:
 function ddlTextSearch_HandleKeyPress(sender, eventArgs)  
        {  
            if(eventArgs.get_domEvent().keyCode == 13)  
            {  
                var combo = $find("<%= ddlTextSearch.ClientID %>");  
                var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");  
                if (combo && combo.get_highlightedItem() != null)  
                {  
                    ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.SearchAssist %>");  
                }  
                else 
                {  
                    ajaxManager.ajaxRequestWithTarget("<%= ddlTextSearch.UniqueID %>","<%= WebUtils.HttpRequestEventArguments.Search %>");  
                }  
           }  
        } 

As you can see, I need to differentiate between selecting an item from the drop down list and the freely entered text.

Again, everything works except when I hit enter while I see the "Loading..." text in the drop down portion of the combo box.  When I hit enter at that time, the event is not fired and nothing appears to happen.  How do I handle this scenario with your control?



James
Top achievements
Rank 1
 answered on 14 Jun 2010
4 answers
137 views

We encountered some problems in telerik controls when using it for Hebrew view (right to left.(

1.       When adding scroll option to RadGrid, the header row is not shown well, as can be seen in image 'radgrid scroll' attached.

The code in aspx specifying the scroll is:

<Scrolling AllowScroll="true" UseStaticHeaders="true" />

2.       In Scheduler control, the scroll appears as default, and again the header row is not shown well, as can be seen in image 'rad Scheduler' attached.

Peter
Telerik team
 answered on 14 Jun 2010
2 answers
188 views
I have a telerik grid with one templete column of several controls(labels, telerik grid, html tables), and it renders with extra padding and white space inside the grid. I have the same structure asp grid, but it does not render any extra padding and white space. Can any one tell me why?

Thanks for help!

Joseph Hua
Joseph Hua
Top achievements
Rank 1
 answered on 14 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?