Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Hi all,

I have a radgrid on my page.  I've checked the datasource and the field in question is, in fact, filled with an empty string ("").  However, on the page, this column has trash data in it ("Fx" in one row, "FŠ" in another, "Fâ" in another).  , Anyone have an idea why these trash characters are showing up in what should be an empty cell?  
Yavor
Telerik team
 answered on 18 Mar 2010
2 answers
90 views
Hi Folks,

Can anyone tell me how can i restrict all the modes of Edit on a Radgrid.

As i have separate piece of code to be executed on the click of Edit.

Awaiting your reply.


Thanks
Satya
Satya Sahu
Top achievements
Rank 1
 answered on 18 Mar 2010
1 answer
265 views
Hi,

Ok' I've got a multi level Hierarchy in my radgrid and trying to user server on demand loading at every level to save load on SQL.

At one stage of the Hierarchy i've got a DetailTables and I am using the DetailTableDataBind in C# to bind the datasource to the grid and its working peachy. The expected results is that it will only query the data when the user expands the item and its working fine.

My Problem is that I am trying to do this with a NestedViewTemplate as well. Now from what I read this is supported, however I'm not sure the way I'm going about it is correct.

My NestedViewTemplate contains a multipage view control with some tabs, each page view has its own SQL datasource control, that has its parameter pointing at a Label Control that evaluates the id for this row from the parent.

<asp:Label ID="Label1"  Text='<%#Eval("id")%>'  Visible="false" runat="server" /> 


This label control is inside the NestedViewTemplate (I got this method from one of the demos).

And I've set the mastertableview that contains this view template to on deamnd loading

<MasterTableView HierarchyLoadMode="ServerOnDemand" ... 


The result now is, I'm watching SQL profiler spew out 6 queries for every row that the radgrid has on load.

So it's obviously not loading these on demand.

The example that I am looking at for ondeamnd loading shows Using a separate datasource for the NestedViewTemplate, I am not using a datasource nor parent child relation ship, do I need to implement this maybe? its seems a bit superfluous.

I there something with my method that's wrong?

Thanks,

Joel



Yavor
Telerik team
 answered on 18 Mar 2010
0 answers
84 views
Dear Sir,
    I am using your trail products such as rad web controls and reporting ., it is very use ful to us. i ll but while i ll host in the webserver. Now i need your help regarding recurrence message., i need a example of this. i.e., create a new recurrence, editing & when the recurrence time occurs that time a message is to display to the user., or displaying in the log files/.

please help... as soon as possible.,
Suriya
Top achievements
Rank 1
 asked on 18 Mar 2010
3 answers
149 views
Hi,

I have added a 'add video' button to the editor. I am allowing members to add youtube or google video's to the forum. I am using the embed tag to do this. Also i am using editor.pasteHtml function and it inserts it fine.

The problem is that when insert.pasteHtml is called, the editor is in design view and nothing appears. Only when i switch manually to Html mode i see the code and when i switch back there is a big flash symbol.

Users will need some way on knowing the video has been inserted, I was thinking if there is a way to switch from design to html and back so that the flash may appear. Hoping some function like editor.switchhtmlmode or editor.switchdesignmode.

If there is another way to accomplish this, ideas are most welcome.

Thanks,
Amith
Amith S
Top achievements
Rank 1
 answered on 18 Mar 2010
9 answers
405 views
It seems after the latest release of the RadControls for ASP.NET AJAX, the ASP.NET Login control acts differently when there is a RadFormDecorator on the page.  Previously, when you enter credentials and hit the ENTER key, the form would submit by default.  After this latest release, when you hit the ENTER key nothing happens.  It seems like the RadFormDecorator does something to the Login button in the Login control that stops it from being the default button for the form.

Doug
Brook
Top achievements
Rank 2
 answered on 18 Mar 2010
3 answers
130 views

I saw your demo on opening up an advanced RadEditor inside a RadWindow. For my purposes, I am using a RadGrid to display list of items that each contain a field to store html details about the item that needs to be able to be modified by the user when they update the item.

Due to space limitations, I do not have the room to display the full editor inside the edit item template for the grid. What I want to know is, would it be possible to implement the RadEditor in a RadWindow from within the edit item template of a grid?

In case that's confusing...a user click "edit" on an item in a grid...fills out all of the text fields, but then can launch the editor in a RadWindow to update the details before completing the update on the grid item.

I cut out some of the original grid code; however, the snippet below returns an error that DialogWindow does not exist in the current context. Before going any further I wanted to verify that there was no a limitation of the gridview that would prevent me from doing this...

Thanks,

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
        <telerik:radgrid id="RadGrid2" runat="server" allowfilteringbycolumn="True" allowpaging="True" 
            allowsorting="True" autogeneratedeletecolumn="True" autogenerateeditcolumn="True" 
            datasourceid="LinqDataSource2" gridlines="None" showgrouppanel="True" skin="WebBlue">  
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="FeedbackID" DataSourceID="LinqDataSource2" 
                CommandItemDisplay="Top" EditMode="PopUp">  
                <EditFormSettings PopUpSettings-Modal="true">  
                    <PopUpSettings Modal="True"></PopUpSettings> 
                </EditFormSettings> 
                <Columns> 
                <telerik:GridTemplateColumn DataField="Details" DataType="System.String" HeaderText="Feedback Details" 
                        SortExpression="Details" UniqueName="Details">  
                        <ItemTemplate> 
                            <%--Nothing here yet--%> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadWindow OnClientShow="SetDialogContent" OnClientPageLoad="SetDialogContent" 
                                NavigateUrl="EditorInWindow.aspx" runat="server" Behaviors="Maximize,Close,Move" 
                                ID="DialogWindow" VisibleStatusbar="false" Width="800px" Modal="true" Height="700px" />      
                                                          
                            <telerik:RadEditor ID="RadEditor1" EnableResize="false" runat="server" Width="460px" 
                                Height="200px">  
                                <Tools> 
                                    <telerik:EditorToolGroup> 
                                        <telerik:EditorTool Name="RichEditor" Text="Open Advanced Editor" /> 
                                    </telerik:EditorToolGroup> 
                                </Tools> 
                                <Content> 
                                   <img src="../../Img/productLogoLight.gif" alt="product logo" /> 
                                 <ul> 
                                        <li><em>Single-file, drag-and-drop deployment</em></li>  
                                        <li><em>Built on top of ASP.NET AJAX</em></li>  
                                    </ul> 
                                </Content> 
                            </telerik:RadEditor> 
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="True">  
            </ClientSettings> 
        </telerik:radgrid> 
 
        <script type="text/javascript">  
            //<![CDATA[
            var editorContent = null;
            Telerik.Web.UI.Editor.CommandList["RichEditor"] = function(commandName, editor, args) {
                editorContent = editor.get_html(true); //get RadEditor content
                $find("<%=DialogWindow.ClientID%>").show(); //open RadWindow
            };
            function SetEditorContent(content) {
                //set content to RadEditor on the mane page from RadWindow
                $find("<%=RadEditor1.ClientID%>").set_html(content);
            }
            function SetDialogContent(oWnd) {
                var contentWindow = oWnd.get_contentFrame().contentWindow;
                if (contentWindow && contentWindow.setContent) {
                    window.setTimeout(function() {
                        //pass and set the content from the mane page to RadEditor in RadWindow
                        contentWindow.setContent(editorContent);
                    }, 500);
                }
            }
            //]]> 
        </script> 
Dominick DeStasio
Top achievements
Rank 1
 answered on 18 Mar 2010
2 answers
78 views
Does anyone know why my RadWindow is distorted looking under IE8 when not in compatibility mode? I have tried changing the skin (and removing it) to no avail. The code and screenshot are both attached. Running in compatibility mode it looks fine...but outside of it it does not.

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false" 
        VisibleStatusbar="false" ReloadOnShow="true" Skin="Black"
        <Windows> 
            <telerik:RadWindow ID="PristineWindow" Behaviors="Close" OnClientClose="OnClientClose" VisibleTitlebar = "true" 
                NavigateUrl="http://www.pristine.com" Width="610px" Height="590px" Modal="true" Title="Access Pristine" KeepInScreenBounds="true" > 
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 

Dominick DeStasio
Top achievements
Rank 1
 answered on 17 Mar 2010
2 answers
258 views
I've searched the help documents and forum for a simple CSS example of controlling the appearance of the RadMenu's items and sub menu items.  Any simple examples of just the CSS controlling the main menu items and sub menu items forecolor and background out there? 

All I need to do is make the menu background blue and forecolor white for the main menu items.  Then make the submenu items white background and black forecolor.
DTech
Top achievements
Rank 1
 answered on 17 Mar 2010
1 answer
128 views
I have two GridImageColumn(s). One for my own edit command and one for my own delete command.

How do I attach events to to the edit and delete images so I know what record I need to edit or what row I need to delete?

The OnRowClick event won't fire when a GridImageColumn is clicked.

robertw102
Top achievements
Rank 1
 answered on 17 Mar 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?