Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 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
100 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
630 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
175 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
141 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
193 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
2 answers
159 views
Hi,

Let's suppose that there is a grid (RadGrid, of course) which has all its columns with explicitly, absolutely defined width (e.g. in pixels). Then, we make this grid wider than the total width of all its columns. When using Firefox, Chrome etc. the last column automatically extends to the right to fill all remaining space. But IE doesn't do it - the last column remains as wide as it is defined.
Is there any way to force the last column to fit the remaining space even under IE?

Best regards
Tomasz
Dimo
Telerik team
 answered on 14 Jun 2010
1 answer
161 views
I would like to set the skin for all of the loading panels in my app to the simple skin. In the web.config I have the following code.

<appSettings> 
    <add key="Telerik.AjaxLoadingPanel.Skin" value="Simple"/>  
</appSettings> 

Instead of the loading panel appearing with the simple skin, I am just getting a blank space white space where the loading panel should be.

Thanks
Dimo
Telerik team
 answered on 14 Jun 2010
2 answers
162 views
Dear Telerik Team,

I created a radgrid with Template Edit Form on row double click. I want to place rad tab inside that from. Is that possible? I just tried but i am not getting. Please let me know.


Thanks
Babu
Babu Puchakayala
Top achievements
Rank 1
 answered on 14 Jun 2010
2 answers
95 views
Hello,
I am trying to setup the RadFileExplorer to allow creating folders.  However, when I set EnableCreateNewFolder to true, the create folder option doesn't appear as it should.  I am wondering if this could partly be because I am using a custom FileProvider class.  Can someone please help me with this?  Thanks.
Ryan Dailey
Top achievements
Rank 1
 answered on 14 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?