Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
199 views
Hello ,

I wanted to open rad window when user clinked one of my menu item. Consider that menu item is "Product". Menu click event code is as follows:

protected void NavigationMenu_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
        {
            if (e.Item.Value == "Theme")
            {
                 
            }
            else if (e.Item.Text == "Product")
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "openWin", "openWin();", true);            
            }
 
        }


And my JavaScript function is as follows :

function openWin() {
var oWnd = radopen("Product.aspx", "RadWindow1");
oWnd.moveTo(125, 60);
}

Now when I clicked on Produce menu I am getting following JavaScript error .


Error: b is undefined
Source File: http://localhost/Company/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1317.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a8fa155ef-f4b5-45a5-8081-4caa696cfcad%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aa7e79140%3a874f8ea2%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4
Line: 8175

If any one knows how to solve this then please tell me.In short I want to open rad window from server side.

-Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2011
10 answers
129 views
Hi All

Every now and again, with no real pattern our application throws a server error.

The error is 'There was a problem Extracting the DataKeyValues from the Datasource Please ensure that dataKeynames are specified......

The error is raised from several places.

The pages are hit 100's of times an hour with the error 4-5 time a day. 

The error I'm using version 1215 but the problem as also pressent in previous versions

I have try catches around all my code, but this still gets trhough.

Can anyone shead any light on this please.

Andy
Maria Ilieva
Telerik team
 answered on 27 Jan 2011
2 answers
89 views
Hi,
I have a question regarding AsyncUploader. I use this control to upload multiple files(images) and everything is working perfect. But I have a great problem regarding the layout. What I need is a button to call the function that the button " Select " calls it. I mean a button called "Load Photos" for example, which once clicked to open the window "Open" where I can select the files I need. A js script is perfect, a code behind will do also.
Thank you in advance,
Moroianu George
Moroianu George-Gabriel
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
300 views
All Telerik Devs,

I tried this on multiple rad controls... it appears when I add ClientIDMode="Static" on the RadScheduler, or RadMenu, or the RadButton the RadWindow Control will just not open, or when it does open it will not show the content w/in the content template. 

Just an FYI
Georgi Tunev
Telerik team
 answered on 27 Jan 2011
1 answer
57 views
Hi,

We are facing a problem with hierarchal grid in our application. when we expand the arrow and select a child item and collapse the arrow then the selected child items are getting deselected. Any help will be appreciated. 
Mira
Telerik team
 answered on 27 Jan 2011
4 answers
123 views
Hi guys ,
I have gridview and listview in my page , i want to drag item from gridview to listview , can you give me a good example ?
Thanks
Nikolay Rusev
Telerik team
 answered on 27 Jan 2011
6 answers
770 views
I am creating a grid dynamically and its datasource is a datatable. I am not using need data source event since I am creating the grid dynamically.
I cannot insert an item or update an item. The datasource does not reflect the changes.
Also, when I click on 'Insert' link  the grid remains in edit mode.
Can someone tell me how to insert and update to an im-memory datatable ( not database)?

Thanks
Vasssek
Top achievements
Rank 1
 answered on 27 Jan 2011
2 answers
176 views
Dear Support,

I have used Radsplitter in which I want to fixed the header section, while my body section should scroll.
While scrolling my header section should not scroll it should be steady there only.
Both my header and Body section are in RadPane only.
Please guid me.

<telerik:RadSplitter ID="RadSplitter1" runat="server" OnClientLoad="SplitterLoad" Skin="Vista">
            <telerik:RadPane ID="LeftPane" runat="server" Width="670px">
                <div id="divHeading" runat="server" style="position: fixed; width:650px;">
            Here his my table showing Header Section
        </div>
                <div id="divBody" runat="server" style="overflow: auto;">
            Here I have used radGridView
         </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Both"></telerik:RadSplitBar>
            <telerik:RadPane ID="EndPane" runat="server">
                Another gridview
            </telerik:RadPane>
</telerik:RadSplitter>
Asif
Top achievements
Rank 1
 answered on 27 Jan 2011
8 answers
318 views
I have rad grid in user control and I want to edit in the grid on row double click .My problem is that when I write the javascript code in user control is not working and gives error "RowDblClick not undefine" when I write the code in the aspx page "parent window" javascript is calling but grid not found is shown in that page.I donot know what is the problem can any one help me.I want to write this javascript code in user control not in the parent window beacuse I want resuable user control not like that half portion of code in user control and half portion in aspx page.

<script type="text/javascript">
     function RowDblClick(sender, eventArgs) {
         debugger
         //sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
         editedRow = eventArgs.get_itemIndexHierarchical();
         $find("<%= grdEvaluation.MasterTableView.ClientID %>").editItem(editedRow);
     }
  
     
  
</script>

<telerik:RadGrid ID="grdEvaluation" runat="server" AllowSorting="True" Skin="Outlook"
                Width="100%" AutoGenerateColumns="false">
                <MasterTableView Width="100%" EditMode="EditForms" DataKeyNames="QuestNo" Dir="<%$ Resources:Common,DIR %>">
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldName="EvalGroupName" HeaderText="Group Name"></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="EvalGroupName" SortOrder="Ascending"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderText="Question">
                            <ItemTemplate>
                                <asp:Label ID="lblQuestion" runat="server"></asp:Label>
                                <asp:Label ID="lblQuestionTypeID" runat="server" Visible="false"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="40%" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="QuestionType">
                            <ItemTemplate>
                                <asp:Label ID="lblQuestionType" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="10%" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Answer">
                            <ItemTemplate>
                                <asp:Label ID="lblAnswer" runat="server"></asp:Label>
                                <asp:HiddenField ID="hfAnswer" runat="server" />
                            </ItemTemplate>
                            <ItemStyle Width="50%" />
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                        <FormTemplate>
                            <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0">
                                <tr>
                                    <td style="width: 5%">
                                        <asp:Label ID="Label2" runat="server" Text="Question :"></asp:Label>
                                    </td>
                                    <td style="width: 95%">
                                        <asp:Label ID="lblQuestions" runat="server" Text='<%# Bind("QuestionName") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text="Answer :"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtAnswer" TextMode="MultiLine" Height="50px" Width="900px" runat="server"
                                            Visible="false" Text='<%# Bind("Answer") %>'></asp:TextBox>
                                        <asp:DropDownList ID="ddlAnswer" runat="server" Visible="false">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                            <table style="width: 20%;">
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:Button ID="Button1" Text="Update" runat="server" CommandName="Update" CausesValidation="false">
                                        </asp:Button
                                        <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                        </asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                        <%--<PopUpSettings Modal="True"></PopUpSettings>--%>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings EnablePostBackOnRowClick="false">
                    <ClientEvents OnRowDblClick="RowDblClick" />
                </ClientSettings>
            </telerik:RadGrid>


Farrukh
Top achievements
Rank 1
 answered on 27 Jan 2011
1 answer
180 views
Hello,

I have a page with multiple RadTabs and clicking a button on one of them brings up a modal RadWindow. When the modal window is closed, the page does a postback and some of the data is refreshed.  Afterwards, if you navigate to another tab, the CSS on the Telerik controls doesn't display properly

I've inspected it with Firebug, and some of the CSS files from WebResource.axd are missing after the windows was opened/closed (compare attached 0css.png to 2css.png).  The content in the RadWindow doesn't have any special CSS, and is using the same Telerik theme as the rest of the application.

In our code, we don't make any changes to anything CSS during the process of opening/loading the RadWindow. When we do a hard refresh, the page will correct itself.  When we do a refresh with re-sending the Post data, the CSS problems remain.

Included are several screenshots of the application before, during, and after the RadWindow is shown, with the list of CSS resources during each step.  Do you know what could be causing this loss in CSS resources from a RadWindow being closed?
Georgi Tunev
Telerik team
 answered on 27 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?