Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
106 views
Hi ,

I have a RadTreeView Bound to the generic List<Category>. Nodes are loaded on Demad.

I have the code :

protected

 

void Page_Load(object sender, EventArgs e)  

{ 

 

 

    if (!Page.IsPostBack) 

    { 

        LoadRootNodes(

TreeNodeExpandMode.ServerSideCallBack);  

 

 

    }

    RadTreeView1.DataBind();

}

and 

 

protected

 

 

void RadTreeView_NodeExpand(object sender, RadTreeNodeEventArgs e)  

 

 

{

 

 

    PopulateNodeOnDemand(e,

TreeNodeExpandMode.ServerSideCallBack);

 

 

}

so when I delete Category from the RadTreeView (the delete button is nested in the NodeTemplate),  fisrt I call method to delete the category from the database : (CategoriesData.Delete(SelectedNode.Value)) and after that remove the  node from the RadTreeView.
(SelectedNode.Remove)
But when I press the refresh Button of the Browser after the node was removed from the TreeView, it appears again.So my question is how I can Refresh the TreeView   on delete operation,  when   i use Load-on demand feature and NodeTemplate.
.

Best Regards Deyana

 

 

 

 

 

 

Nikolay Tsenkov
Telerik team
 answered on 31 May 2010
4 answers
151 views
I'm using a RadSlider with an ItemType="Item" and a TrackPostion="TopLeft".  Unfortunately, the drag handle rests right on top of the text of the item.  Is there an easy was to have the text shifted down so the handle won't cover it up?  See attached image.  Thanks.

(In this example I'm only using numeric values but I may want to do the same thing with text values too.)

Robert Lampe
Top achievements
Rank 1
 answered on 31 May 2010
2 answers
144 views
Hi,
    I want to draw a(or more) special control line in Y-Axis, like the property "stripLines" of MSChart.
    For example, a rad line at YAxis 35, so if the y value bigger than the control line, I can fill it with a special color.

    By the way , it seems if I Bind a DateTime Collections to  RadChart1.PlotArea.XAxis.DataLabelsColumn, it will be error.



                                                                                                          yours alexzchen
Ves
Telerik team
 answered on 31 May 2010
6 answers
259 views

Throw a simple radgrid onto a page, and by default, it takes up 100% or the whole width of the browser window,
even if you have only one or two columns.

Of course you can set the width of the whole grid, then all the columns expand to fill that 100%.

Or you can set the width of each column, but that is tedious and inflexible.

How can you setup the radgrid so each column only takes the exact width needed based on
the cell contents, expanding up to 100% if necessary, but not if it isn't needed.

err....just like the GridView....

Thanks...
Richard Gregg
Top achievements
Rank 1
 answered on 31 May 2010
1 answer
190 views

I have a very strange problem.  Hopefully I can explain it to you.  Unfortunately due to the complexities of my application I doubt I'll be able to provide a sample via a support ticket.

Here's the scenario:

I have a master page, a child master page, a content page and a user-control on the content page.  My main master page simply has a header, main menu, content placeholder and a footer, and is used on every page of my application.  I have several different child masters, but this one in particular has two columns - one for a left vertical menu and one for the content.  I use this combination more often than any other, as most of my pages display a left menu.

In one particular user control, I have a nested radGrid.  The data is displaying properly.  However, whenever I expand a parent item the parent column widths change (even though I specify the columns widths in the HeaderStyle and ItemStyle of the grid).  So, I thought I should add the TableLayout="Fixed" attribute to my MasterTableView.  This solved the column width problem, but now my left menu (which resides in my child master page) disappears.  As soon as I remove the TableLayout="Fixed" attribute the left menu appears again.

Also, if I leave the TableLayout attribute there but simply hide the entire grid, the left menu appears again.  As soon as I make the grid visible again, the left menu disappears.

Needless to say it took me quite some time just to figure out that the TableLayout attribute was causing the problem, but I have no idea how to fix it.  Is there some other way I should be enforcing that the column widths don't change when I expand a parent item?

Hopefully somebody can help me out with this one.

Thanks.

Steven Black
Top achievements
Rank 1
 answered on 30 May 2010
4 answers
579 views
Hi,

Hope someone can help figure this out with me.

I am exporting data from RadGrid to CSV ...

RadGrid1.ExportSettings.OpenInNewWindow =

true;
RadGrid1.ExportSettings.ExportOnlyData =
true;
RadGrid1.ExportSettings.IgnorePaging =
true;
RadGrid1.MasterTableView.ExportToCSV();

I have paging switched on and PageSize set to 10.
I have over 10 pages of data but when I click to export it only exports the first page.

Please can someone help. I'm sure its probably something really simple but I cannot see it.

Many thanks

Talys
Top achievements
Rank 1
 answered on 29 May 2010
4 answers
144 views
Dear Sir
 
i Want to worked on Scheduler control. Its working Fine.
But In case of multiple Provider i want to disable particular Cell. How can i do this.

i just attach my jpg file please see and give me feedback.

Thank you.
Chandan Kumar
Top achievements
Rank 1
 answered on 29 May 2010
3 answers
274 views
Hi Team,

I have a 3-level Grid with usercontrol popups for edit form. When I enter data in the popup for the 1st level (parent grid) and click save, the data is getting validated and the validation summary is being displayed in a radwindow. But if I do the same for the 2nd level (child grid) popup, it is not displaying the validation summary. It just displays the text "*" if there's an error on validation. How can I get it to display the validation summary?

Btw, the RadGrid is enclosed in a RadAjaxPanel. And childgrid's popup controls are also enclosed in a RadAjaxpanel, RajPanelBar. Could this by any chance have anything to do with the validation summary not getting displayed for the childgrid popup?

Please let me know if you need more information. Thanks for your help!
UserControl - Popup1: 
--------------------------- 
<uc1:ContactDtls ID="uctlLocationDtls1" ValidationGroup="ADDRESS" Title="Address" 
runat="server" /> 
<asp:Button ID="btn_Save" runat="server" Text="Save" CommandName="PerformInsert" 
                            Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' ValidationGroup="ADDRESS" OnClientClick="ShowAlert2()" /> 
                     
UserControl - Popup2: 
--------------------------- 
<telerik:RadTextBox ID="txt_ContactLName" runat="server" Width="100" MaxLength="50"   ValidationGroup = "CONTACT"                                                       onkeypress="return isCharKey(event);" CausesValidation="true"> 
</telerik:RadTextBox> 
<asp:RequiredFieldValidator ID="rfv_txt_LastName" ControlToValidate="txt_ContactLName" ValidationGroup="CONTACT" ErrorMessage="Last Name required" Text="*" runat="server"></asp:RequiredFieldValidator> 
<asp:Button ID="btn_Save" runat="server" Text="Save" CommandName="PerformInsert" 
Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' CausesValidation="true" ValidationGroup="CONTACT" OnClientClick="ShowAlert1()" /> 
<asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="false" ShowSummary="true" runat="server" ValidationGroup="CONTACT" />                                                      
 
Client.aspx: (File containing the Grid) 
--------------------------------------------- 
<script language="javascript" type="text/javascript"> 
 
     function ShowAlert1() { 
         var valGroup = Page_ClientValidate("CONTACT"); 
         var summary = document.getElementById('divSummary1'); 
         if (!valGroup) { 
             radalert(summary.innerHTML, 400, 100, 'Summary'); 
             return false; 
         } 
         else 
             return true; 
     } 
 
     function ShowAlert2() { 
         var valGroup = Page_ClientValidate("ADDRESS"); 
         var summary = document.getElementById('divSummary2'); 
         if (!valGroup) { 
             radalert(summary.innerHTML, 400, 100, 'Summary'); 
             return false; 
         } 
         else 
             return true; 
     } 
 
        function isCharKey(evt) { 
             //debugger; 
            var charCode = (evt.which) ? evt.which : event.keyCode 
            if ((charCode > 64 && charCode < 91) || (charCode > 96 && charCode < 123) || charCode == 39 ) { 
                return true; 
            } 
            else { 
                return false; 
            } 
        } 
    </script>                                                    

Pradeep Enugala
Top achievements
Rank 1
 answered on 29 May 2010
2 answers
120 views
Greetings,
    In my MVC application there is a page which uses RadMultiPage with two views.  Each view contains code which uploads data to the Server, like the following:

 

<iframe src='EditPage.aspx' name='hFinderUpload' id='Iframe2' style="width:0;height:0;border:0px solid #fff;" ></iframe>

 

 

<form action="<%=Url.Action("UploadAttachment", "PageContent")%>" method="post" enctype="multipart/form-data" target='hFinderUpload'>

 

 

<fieldset>

 

 

<div id='Div1'>

 

 

<label for='hFinderUploadFile'>File:</label>

 

 

<input type='file' name='hFinderUploadFile'id='File1' size='40' />

 

 

</div>

 

 

<div id='Div2'>

 

 

<input type='submit' id='Submit1' name='hFinderButton' value='Upload File' />

 

 

</div>

 

 

</fieldset>

 

 

</form>

The problem is that when the mouse is passed over the submit buttons, the controller/action url that appears at the bottom of the browser is correct for one but not for the other view.  The view that doesn't work shows Edit?rwndrnd=some decimal number, where some number varies with the execution of the app.  And then ofcourse, the action in the controller does not get called when the browser shows Edit?rwndrnd=somenumber.

Is this something that cannot be done or is this an issue with RadWindow / RadMultiPage ?

Thanks in advance,
Eugene

 

Eugene
Top achievements
Rank 1
 answered on 28 May 2010
2 answers
79 views
I added a custom control, a text box, to the Advanced form. I also added a CustomValidator for the control with a server side function for the OnServerValidate event.  However, my CustomValidator is totally ignored when the form is submitted.  I noticed that the CustomValidator for the default DurationValidator is called but not my added CustomValidator.
Do I need to add my CustomValidator to the Scheduler ValidatorGroup? If the answer is yest, then how should I add my CustomValidator to the scheduler's ValidatorGroup?
Thanks.
Derek Feng
Top achievements
Rank 1
 answered on 28 May 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?