Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
308 views
UPDATE: I've found the problem.
I can't $find the RadMenu control until page is done rendering. 
================================================================
Hello, I'm having trouble with using $find in client-side javascript to get a reference of a RadMenu
$find returns null while $get returns an object.
However, the object $get returned doesn't support .findItemByValue() method.
I'm using Q1 2010 Net4 version with VS2010 and web.config set to .NET 4.

I've also tried $find("RadMenu1");

What kind of dependencies are there for RadMenu? web.config settings?
Thanks.
Gibson

See code below:

var menu = $find("RadMenu1"); 
var item = menu.findItemByText("Message Center"); 
 
Krishnaprabhuraja
Top achievements
Rank 1
 answered on 01 Jul 2010
1 answer
695 views
Is there a way to change the Label property via javascript.

 

 

 

<telerik:RadTextBox Width="300px" ID="txtUrl" runat="server" Label="Url: " 
 
EmptyMessage="please type url here" InvalidStyleDuration="100" > 
 
</telerik:RadTextBox> 
 

Depending on what has been selected in a combobox I want to chnage the label from Url: to something else

 

    var txtUrlInputID = $telerik.$("[id$='txtUrl']").attr("id");  
    var txtUrlInput = $find(txtUrlInputID);  
    txtUrlInput.set_emptyMessage('Please type Email here');  
    txtUrlInput.set_value("")  
 
//I would like to set label as well. I know the below does not exist but can I do it another way.  
//txtUrlInput.set_label("Email: ") 

 

Dimo
Telerik team
 answered on 01 Jul 2010
1 answer
152 views
I have a radgrid that uses an EditTemplate for the purposes of updating the data. For my Datasource i am using an objectdatasource. At runtime when i go to edit a record, the edit panel loads the data is populated correctly, but when i click update and try to save the changes i have made, the EditTemplate is not hooked up to my ObjectDataSource.

Any Ideas?

<telerik:RadGrid ID="rgTimeSheetGrid"  
    runat="server"  
    CssClass="RadGrid"  
    GridLines="None"  
    AllowPaging="True"  
    PageSize="20"  
    AutoGenerateColumns="False"  
    AllowAutomaticDeletes="True" 
    AllowAutomaticInserts="True" 
    AllowAutomaticUpdates="True" 
    DataSourceID="TaskDataSource"  
    ShowStatusBar="True"  
    AutoGenerateEditColumn="True" 
    AutoGenerateDeleteColumn="True" 
    OnItemDataBound="radTimesheetEntry_ItemDataBound" 
    OnItemUpdated="radTimesheetEntry_OnItemUpdated"> 
    <HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> 
 
    <MasterTableView 
        DataSourceID="TaskDataSource"  
        ShowGroupFooter="true"  
        CommandItemDisplay="Top"  
        EditMode="EditForms"  
        DataKeyNames="ID" 
        RowIndicatorColumn-HeaderStyle-Width="20px"  
        ExpandCollapseColumn-HeaderStyle-Width="20px"> 
        <GroupByExpressions> 
            <telerik:GridGroupByExpression> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldAlias="Date" FieldName="Date"></telerik:GridGroupByField> 
                </SelectFields> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="Date" SortOrder="None"></telerik:GridGroupByField> 
                </GroupByFields> 
            </telerik:GridGroupByExpression> 
        </GroupByExpressions> 
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" SortExpression="ID" UniqueName="ID" Visible="false" /> 
            <telerik:GridBoundColumn DataField="Date" HeaderText="Date" SortExpression="Date" UniqueName="Date" Visible="false" /> 
            <telerik:GridBoundColumn DataField="Project" HeaderText="Project" SortExpression="Project" UniqueName="Project" /> 
            <telerik:GridBoundColumn DataField="Activity" HeaderText="Activity" SortExpression="Activity" UniqueName="Activity" /> 
            <telerik:GridBoundColumn DataField="Role" HeaderText="Role" SortExpression="Role" UniqueName="Role" /> 
            <telerik:GridBoundColumn DataField="Notes" Visible="false" HeaderText="Notes" SortExpression="Notes" UniqueName="Notes" /> 
            <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description" /> 
            <telerik:GridBoundColumn DataField="Hours" DataType="System.Double" HeaderText="Hours" SortExpression="Hours" UniqueName="Hours" /> 
        </Columns> 
        <CommandItemTemplate> 
            <asp:LinkButton ID="lnkAddEntry" runat="server" CommandName="InitInsert">Add Entry</asp:LinkButton> 
        </CommandItemTemplate> 
        <EditFormSettings EditFormType="Template"> 
            <FormTemplate> 
                <table id="ManageRecord" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" 
                    style="border-collapse: collapse; background: white;"> 
                    <tr> 
                        <td> 
                            <table id="ManageLeft" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> 
                                <tr> 
                                    <td>Project</td> 
                                    <td><asp:DropDownList id="ddProject" runat="server"></asp:DropDownList></td> 
                                </tr> 
                                <tr> 
                                    <td>Activity</td> 
                                    <td><asp:DropDownList id="ddActivity" runat="server"></asp:DropDownList></td> 
                                </tr> 
                                <tr> 
                                    <td>Role</td> 
                                    <td><asp:DropDownList id="ddRole" runat="server"></asp:DropDownList></td> 
                                </tr> 
                                <tr> 
                                    <td>Date</td> 
                                    <td><asp:DropDownList ID="ddDate" runat="server"></asp:DropDownList></td> 
                                </tr> 
 
                            </table> 
                        </td> 
                        <td> 
                            <table id="ManageRight" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> 
                                <tr> 
                                    <td>Hours</td> 
                                    <td><asp:TextBox ID="txtHours" runat="server" ></asp:TextBox></td> 
                                </tr> 
                                <tr> 
                                    <td>Note</td> 
                                    <td><asp:TextBox ID="txtNotes" runat="server" ></asp:TextBox></td> 
                                </tr> 
                                <tr> 
                                    <td>Description</td> 
                                    <td><asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" ></asp:TextBox></td> 
                                </tr> 
                            </table> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="right" colspan="2"> 
                            <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button>&nbsp; 
                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> 
                        </td> 
                    </tr> 
                </table> 
            </FormTemplate> 
        </EditFormSettings>   
    </MasterTableView> 
    <ClientSettings> 
        <ClientEvents OnRowDblClick="RowDblClick" /> 
    </ClientSettings> 
</telerik:RadGrid> 
<asp:ObjectDataSource ID="TaskDataSource" runat="server"  
    DeleteMethod="Delete" InsertMethod="Create" SelectMethod="Select"  
    TypeName="T4G.TIM.Web.Data.TaskController" UpdateMethod="Update" > 
    <DeleteParameters> 
        <asp:Parameter Name="ID" Type="Int32" /> 
        <asp:Parameter Name="Project" Type="String" /> 
        <asp:Parameter Name="Activity" Type="String" /> 
        <asp:Parameter Name="Role" Type="String" /> 
        <asp:Parameter Name="Hours" Type="Double" /> 
        <asp:Parameter Name="Notes" Type="String" /> 
        <asp:Parameter Name="Description" Type="String" /> 
        <asp:Parameter Name="Date" Type="String" /> 
    </DeleteParameters> 
    <UpdateParameters> 
        <asp:Parameter Name="ID" Type="Int32" /> 
        <asp:Parameter Name="Project" Type="String" /> 
        <asp:Parameter Name="Activity" Type="String" /> 
        <asp:Parameter Name="Role" Type="String" /> 
        <asp:Parameter Name="Hours" Type="Double" /> 
        <asp:Parameter Name="Notes" Type="String" /> 
        <asp:Parameter Name="Description" Type="String" /> 
        <asp:Parameter Name="Date" Type="String" /> 
    </UpdateParameters> 
    <InsertParameters> 
        <asp:Parameter Name="ID" Type="Int32" /> 
        <asp:Parameter Name="Project" Type="String" /> 
        <asp:Parameter Name="Activity" Type="String" /> 
        <asp:Parameter Name="Role" Type="String" /> 
        <asp:Parameter Name="Hours" Type="Double" /> 
        <asp:Parameter Name="Notes" Type="String" /> 
        <asp:Parameter Name="Description" Type="String" /> 
        <asp:Parameter Name="Date" Type="String" /> 
    </InsertParameters> 
</asp:ObjectDataSource> 

Martin
Telerik team
 answered on 01 Jul 2010
1 answer
175 views
Hello!

I have a problem with Server.Transfer.

I have a asp:menu and asp:multiview and inside one multiview is a button wich should Server.Transfer to other page.

I have ajaxified the menu with:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
         <AjaxSettings>               
            <telerik:AjaxSetting AjaxControlID="Menu1">
             <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="MultiView1"/>
             </UpdatedControls>
            </telerik:AjaxSetting>
         </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Everything works fine.

Now I noticed that if I want to Server.Transfer within the menu with a button it's not working. It fires the correct page but does not shows. If I put it outside the Menu everything works fine!

What can I do??
Sebastian
Telerik team
 answered on 01 Jul 2010
1 answer
142 views
What I want to do is this. When i open a new radwindow, a new window will appear with a tab that contains the page I opened. When I open another window. instead of a new window will appear, i want a new tab that contains the page i just opened   to be added to the previous window. Everytime I open a new window, It will just be added as a tab.




Yana
Telerik team
 answered on 01 Jul 2010
4 answers
152 views
Hello,

I am running RadEditor for Sharepoint version with 5.6.2.0 assembly and have enabled multiingual dictionaries (by editing the ToolsFile.xml) for the spell checker.
The functionality works fine for the first Telerik RadEditor control on the page in authoring mode (see attached screenshot radHtml1.jpg), however if on all the subsquent RadEditor controls, the language selection dropdown for the Spell checker is blank. (see radHtml2.jpg

Is this a bug in the control ? or am I doing something wrong.

Thanks.

 

Stanimir
Telerik team
 answered on 01 Jul 2010
1 answer
85 views
Hello,

I have a grid with 2 (or more) groups and want the current group value displayed in the group footer. 

Example: 2 groups region and country

The grid should display:
Europe
    Denmark
        some Data for Denmark
    Total for Denmark
...  some other countries
Total for Europe
America
    Canada
        some Data for Canada
    Total for Canada
...  some other countries
Total for America

To make things clear. The problem is not to get the sums for these groups but to get the current group value (bold entries above).

Any ideas ?
Thank you

Robert



Rosen
Telerik team
 answered on 01 Jul 2010
12 answers
417 views

The following is in the event viewer, All Pages display generic Webpart error

Web Part Error:
This page has encountered a critical error. Contact your system
administrator if this problem persists.

Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Runtime
Event ID: 6610
Date:  8/20/2008
Time:  12:16:46 PM
User:  N/A
Computer: RENSP1
Description:
Safe mode did not start successfully. Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Stanimir
Telerik team
 answered on 01 Jul 2010
3 answers
136 views
Hello,
I am using RadGrid created programatically in code behing on Page.Init. In the grid I have some GridBoundColumns and some GridTemplateColumns with custom classes as templates. But I have a problem with the GridBoundColumn that displays date. It looks like the whole column is selected, no matter what skin I set. The GridBoundColumn next to it, has the same code except for differences in binding and naming definition. Here is the code for columns (I use the same procedure, but I changed some values like used when creating Date column:

Dim column As GridBoundColumn 
column = New GridBoundColumn() 
 
column.UniqueName = "Date" 
column.DataType = GetType(String) 
column.HeaderText = PmResources.GetResourceString(headerResourceKey) 
column.HeaderTooltip = PmResources.GetResourceString(toolTipResourceKey) 
column.DataField = "Date" 
column.AutoPostBackOnFilter = False 
column.ShowFilterIcon = False 
column.CurrentFilterFunction = GridKnownFunction.NoFilter 
column.SortExpression = dataField 
column.Groupable = False 
column.AllowFiltering = False 
column.Reorderable = False 
column.Visible = visibile 
column.HeaderStyle.Width = Unit.Pixel(width) 
column.ItemStyle.Width = Unit.Pixel(width) 
column.ReadOnly = isReadOnly 
column.ItemStyle.VerticalAlign = VerticalAlign.Top 
column.ItemStyle.HorizontalAlign = HorizontalAlign.Left 
 
 
 

I am also posting a screenshot of the unexpected layout. I hope you can help me, I am guessing that maybe "Date" is some special name that shouldn't be used in Grid's UniqueName or Binding definition.

Thanks in advance,
Vladimir
Pavlina
Telerik team
 answered on 01 Jul 2010
1 answer
160 views
I have raddatepicker in ajax modalpopup. my problem is raddatepicker is visible but bakeend of modalpopup. its not look proper . i increase z-index also i try javascript but all try fail

i have tryed with z-index , but it is working in IE browser , not working in FF & Chrome browsers
pl let me know ASAP.
Radoslav
Telerik team
 answered on 01 Jul 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?