Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
139 views
I used RADGrid Control to create grid data as FreeView. My code in ASP.NET below:


<telerik:RadGrid ID="gridDocs" runat="server" AllowPaging="false" BorderWidth="0px"
        AutoGenerateColumns="False" OnItemCommand="gridDocs_ItemCommand" 
        OnItemDataBound="gridDocs_ItemDataBound" OnItemCreated="gridDocs_ItemCreated" OnColumnCreated="gridDocs_ColumnCreated"
        EnableLinqExpressions="false">
        <%-- JHE :  HierarchyDefaultExpanded="false" parameter which define if all is expanded or not--%>        
        <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind"
            DataKeyNames="ID, ParentID" Width="100%" ExpandCollapseColumn-Display="true" RowIndicatorColumn-Visible="true"
            GridLines="Both"> 
                      
            <NestedViewTemplate>
                <asp:Panel runat="server" ID="InnerContainer">
                    <asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>                         
                  </asp:Panel>
                </NestedViewTemplate>

            
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Resizable="true">
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID"/>  
            <PagerStyle Mode="numericpages" />
            <NoRecordsTemplate>
                no records retrieved
            </NoRecordsTemplate>
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>            
            <Columns> 
....
The BOLD lines: I want to View Detail of a row. But If I don't user lines:

 <NestedViewTemplate>
                <asp:Panel runat="server" ID="InnerContainer">
                    <asp:Label runat="server" ID="lblTest" Text="test"></asp:Label>                         
                  </asp:Panel>
                </NestedViewTemplate>


It works OK
If I use the Bold lines to show detail=> it does't work.
The problem: If I use  <NestedViewTemplate>=> The tree view is broken.

attached file is what I exptect: When I click on icon"+"=> detail will be shown.


Pls help me to do it
Thanks alot
Iana Tsolova
Telerik team
 answered on 01 Nov 2011
1 answer
61 views
Unexpected behavior: when highlighting a line of text from right to left, the RadEditor toolbar disappears. I tested IE 8, FF 7, and Chrome 15--of the browsers tested, the behavior only occurs in IE8.

This only occurs if I "sweep" the cursor across the line of text. If I very carefully select only up to the first character in the line, the toolbar remains present.
Rumen
Telerik team
 answered on 01 Nov 2011
14 answers
175 views
I looked up the web and there are plenty of issues/workarounds with handling the viewstates for dynamically created controls and statically designed elements.   However they are more like hacks and I'd prefer to avoid going to that route.

What is the best approach and gotchas if I need to create RadEditor, RadCombo, RadTextbox dynamically?

My page would have some static elements on the top and bottom of the page, and the center of the page would have some dynamically created controls based on what the user has selected from a dropdown.

It will have a RadUpload statically created and a button to validate during postback.
After postback if validation fails, the values the user entered in the dynamically created controls (RadTextbox/Combo/Editor) should remain.

I don't see VS2010 to mention any additional feature to the dynamically created control's viewstate issue.
Marbry
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
96 views
Hello ALL,

I have used RadDatePicker into my web page, Now i want to restrict feature date selection to user.

So i had set the max date property as today's date from code behind.it's working properly, user can't able to select feature date from calender.

In case if user try to add feature date manually, then date picker highlighted with warning symbol with yellow color.

But when i click on save button and checked Page.IsValid property, it will always give me true and i got the date picker selected value as null.

How can i validate RadDatePicker for feature date? Please help me.

Here is my code :

aspx :
  <telerik:RadDatePicker ID="dpCompletedDate" Calendar-ShowRowHeaders="false"
                                    Skin="Office2007" runat="server"  />

Page Load cs :
dpCompletedDate.MaxDate = System.DateTime.Now;

Kevin
Top achievements
Rank 2
 answered on 01 Nov 2011
3 answers
183 views
Hello;

I'm trying to add a new row to a Radgrid client-side using insertItem() and then update all inserted items in a single batch.

I've got several questions:

1)  What's the correct way to use the client-side API call insertItem() ?
2)  Can insert operations be batched like edit operations?

Thanks...
Iana Tsolova
Telerik team
 answered on 01 Nov 2011
3 answers
119 views
I'm using resolution 800x600 and when show radwindow with a big size (940 width , 730 height) it shifted up and the controls in the top of the page which is displayed in the radwindow became unreachable .. how to fix this
thanks for effort 
Marin Bratanov
Telerik team
 answered on 01 Nov 2011
5 answers
271 views
I am using a usercontrol for my grid edit form and have editmode set to popup.

When I edit an item in my grid, the popup edit form shows along with a caption bar along the top with a big "X" close-button at the right end of the caption bar.

I read here:

http://www.telerik.com/help/aspnet-ajax/grdcustomeditforms.html       

"Please note that all settings related to the edit form caption are applied only if the EditFormType is "AutoGenerated". Otherwise a caption is not rendered automatically by RadGrid, however, you can add a custom caption in the edit form template or user control edit form."

I thought this meant that having my EditFormType set to "WebUserControl" would suppress the rendering of a caption on the popup edit form.

I don't mind having a caption (I am able to put change the caption content via the captiondatavield and captionformatstring) but I am having trouble controlling its appearance.  The caption bar that renders is only about half as wide as the usercontrol that I have created as my edit form and any of the formatting I apply to *it* seems to only render as wide as the caption.  That is, I put a border around my edit form control and when it pops up, the border only shows around the left half of the form (showing only as wide as the rendered caption).

Is there a way to force the caption to be as wide as my control?  If not, is there a way to specifically suppress the rendering of the caption?

Thanks,

Mike
Augusto
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
130 views
Hello,
I open popup window which displays a page. When I try to call web service from pageLoad() function, I always get a message "Insufficient stack space". When I put function to main window and call if with wnd.BrowserWindow.MyFunction(), I get no errors and everything works fine. Does this mean I cannot call web service directly from RadWindow?
Thank you.
Marin Bratanov
Telerik team
 answered on 01 Nov 2011
1 answer
189 views
Hi

I have a rad grid that shows a list of names and a delete column. I do not want the user to be able to edit the names, they should only be able to delete (using the delete column) and insert (using the EditMode="InPlace" built in elements).

How do I get the standard built in Update/Cancel command buttons to appear without having to have an Edit column in my grid?

Thanks
Corina
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
111 views
Hello,

I want to know if the control is Telerik control in clientside ( javascript)
Is it possible to know  ?
Rumen
Telerik team
 answered on 01 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?