Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
175 views
Hi,   
     Intellisense doesn't seem to work in ASPX pages for Telerik controls, in our project.
          1) The assemblies(Telerik.Web.UI & Telerik.Web.Design) are added to the GAC 
          2) The 'web.config' refers to the latest dll's of the same.
          3) The assembly is also registered in the ASPX page like below:

                <%

@ Register Assembly="Telerik.Web.UI", Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
          4) Intellisense is working fine in the code behind files.

   But, still it doesn't seem to work in the ASPX files alone. Can you please suggest a solution to enable intellisense to show up in the ASPX pages also for Telerik controls ? 

    We are using Visual Studio 2008 with SP1.

Thanks & Regards,
Karthik.
  
   

 

Peter
Telerik team
 answered on 01 Sep 2010
5 answers
296 views
Dears,
In radGrid Template I have radcombobox and a button, when user clicks the button I open a radwindow to let hime insert new choice, if user click ok in the radwindow dialog I have to add a new item to radcombobox item.
I am call javascript function in the main page from the dialog. this function fire the ajaxRequest of RadAjaxManger.
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
In the ajaxrequest handler I tried to get the radcombobox of the radgrid template as following:
Dim GridItem As GridDataItem = CType(grdTrngs.EditItems(0), GridDataItem)
Dim cmbDocs As RadComboBox = GridItem.FindControl("cmbTrngsHR_DOCS_ID")
but it didn't work and the FindControl retuen nothing.
So, could you please help in
Thanks in Advance
Best Regards


 

 

 

Pavlina
Telerik team
 answered on 01 Sep 2010
11 answers
301 views
Hi, I hope someone can help me with the following issue - It seems like there is a problem with the javascript when using the RadNumericTextBox with a ValidatorCalloutExtender.

It seems like the problem is caused when page tries to dispose of the CalloutValidator.

To reproduce the issue, slap a simple webform together that looks something like this:
        <telerik:RadScriptManager runat="server" ID="rsm"></telerik:RadScriptManager> 
        <telerik:RadNumericTextBox ID="txtAmount" Runat="server"></telerik:RadNumericTextBox> 
        <asp:RangeValidator runat="server" id="rv1" MinimumValue=0 MaximumValue=1 ControlToValidate="txtAmount" ErrorMessage="Please fix"></asp:RangeValidator> 
        <ajaxControlToolkit:ValidatorCalloutExtender runat="Server" ID="vcerv1" TargetControlID="rv1" /> 
        <asp:Button runat="server" Text="Save" ID="btnSave"  /> 
        
Now, run it and enter an invalid value in the txtAmount textbox to get the CalloutExtender to pop up. Now press F5 - I get a "'_events' is null or not an object" javascript exception. Looking at the stack trace - this seems to stem from some cleanup method called by the browser on page unload. 

Am I doing something wrong, or is this a known issue - I had a look at the existing posts in the forum and couldn't find anything about this issue.

Thank you,
Peter

AjaxControlToolkit.dll : v3.0.20820.16598
Telerik.Web.UI.dll : v2008.2.1001.35
Dimo
Telerik team
 answered on 01 Sep 2010
2 answers
126 views
I have a table "template" on my page, and the tbody is the XmlHttpPanel...idea was to return just the <tr>s and <td>s which make up the panel (from the webservice) seeing as the headers and footers are rather large, and really all the same (never change).

...ok so the issue I'm having is that in this context the panel renders ABOVE the table (in firefox, havent tested others yet).

<div>
    <table>
        <thead>
            ...HEADERS
        </thead>
        <tbody>
           <telerik:RadXmlHttpPanel ID="workflowPanel" runat="server" WebMethodName="GetWorkflow" RenderMode="Block" WebMethodPath="~/Apps/RTO/Webservices/WorkflowChain.asmx" OnClientResponseEnding="onWorkflowEnding" OnClientResponseEnded="onWorkflowEnded" OnClientResponseError="onWorkflowError" EnableViewState="false" >
 
                </telerik:RadXmlHttpPanel>
        </tbody>
    </table>
</div>

Why would that be?...firefox not liking the div of the panel?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 01 Sep 2010
2 answers
184 views
I have a radgrid on my page
<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" AllowPaging="True"
                            PageSize="25" AutoGenerateColumns="False" GridLines="None" AllowSorting="True"
                            AllowFilteringByColumn="true" AlternatingItemStyle-BackColor="#eeeeee" ShowGroupPanel="True"
                            ShowStatusBar="True" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand"
                            OnPageIndexChanged="RadGrid1_PageIndexChanged" OnPageSizeChanged="RadGrid1_PageSizeChanged"
                            OnItemCreated="RadGrid1_ItemCreated" OnPreRender="RadGrid1_PreRender" Width="100%" >
                            <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
                            <MasterTableView DataKeyNames="ExcelImportID" PagerStyle-Mode="NextPrevNumericAndAdvanced" AllowFilteringByColumn="True">
                                <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>
                                <Columns>
                                    <telerik:GridBoundColumn SortExpression="ClientName" DataField="ClientName" HeaderText="Client Name"
                                        HeaderStyle-Width="300px">
                                        <FilterTemplate>
                                            <telerik:RadComboBox ID="RadComboBoxClientName" DataTextField="ClientName" DataValueField="ClientName"
                                                AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ClientName").CurrentFilterValue %>'
                                                runat="server" Skin="Office2007" AutoPostBack="true" OnSelectedIndexChanged="ClientCombo_SelectedIndexChanged" />
                                        </FilterTemplate>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="BankName" DataField="BankName" HeaderText="Bank Name"
                                        HeaderStyle-Width="300px">
                                        <FilterTemplate>
                                            <telerik:RadComboBox ID="RadComboBoxBankName" DataTextField="BankName" DataValueField="BankName"
                                                AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("BankName").CurrentFilterValue %>'
                                                runat="server" Skin="Office2007"  AutoPostBack="true" OnSelectedIndexChanged="BankCombo_SelectedIndexChanged" />
                                        </FilterTemplate>
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ExcelFile" HeaderText="Excel File Name" SortExpression="ExcelFile"
                                        HeaderStyle-Width="300px" UniqueName="ExcelFile" Visible="True" />
                                    <telerik:GridBoundColumn DataField="ImportBy" HeaderText="Imported By" SortExpression="ImportBy"
                                        UniqueName="ImportBy" Visible="True" />
                                    <telerik:GridBoundColumn DataField="ImportDate" HeaderText="ImportDate" SortExpression="ImportDate"
                                        UniqueName="ImportDate" Visible="True" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" />
                                    <telerik:GridBoundColumn DataField="ProcessedBy" HeaderText="Processed By" SortExpression="Error"
                                        UniqueName="ProcessedBy" Visible="True" />
                                    <telerik:GridBoundColumn DataField="ProcessedDate" HeaderText="Processed Date" SortExpression="Processed Date"
                                        UniqueName="ProcessedDate" Visible="True" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" />
                                </Columns>
                                <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                            </MasterTableView>
                            <ClientSettings AllowDragToGroup="True">
                            </ClientSettings>
                        </telerik:RadGrid>

and in the code behind I have

protected void BankCombo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
      {
          string filterExpression;
          filterExpression = "([BankName] = '" + e.Value + "')";
          RadGrid1.MasterTableView.FilterExpression = filterExpression;
          RadGrid1.MasterTableView.Rebind();
    }

but when I run I get the erroe Expression expected on the Rebind().  What is wrong?
Eric Klein
Top achievements
Rank 1
 answered on 01 Sep 2010
2 answers
89 views
Hello

I want to customize my Area chart to look like the one I attached.
Is it possible to modify point's X position so that I can insert additional points to achieve only horiziontal and vertical lines between points ?



Adam Kochanowski
Top achievements
Rank 1
 answered on 01 Sep 2010
8 answers
161 views
Using version 2008.1.515.20

I found another thread that mentioned anchor tags have been fixed in a recent version, but I'm wondering if there is any workarounds for those of us that are unable to upgrade at this time? The problem seems to stem from what the rad window adds to the querystring.

http://localhost/dialogs/popupgeneric.aspx#shipping?rwndrnd=0.8012201152955385  doesnt work, but
http://localhost/dialogs/popupgeneric.aspx#shipping does.
Georgi Tunev
Telerik team
 answered on 01 Sep 2010
1 answer
126 views
I have two questions regarding the HeaderContextMenu in the grid:

1) How do I prevent the menu from posting back on click? I have a client-side event handler:

<HeaderContextMenu OnClientItemClicked="grid_HeaderContextMenu_ClientItemClicked" />

In this handler, I do all the processing I need client-side. However, after that client code executes, the grid still posts back. How do I prevent this? I've tried calling set_cancel(true) on the eventArgs, but the eventArgs in this case doesn't have that method. I've also tried doing the eventArgs.get_domEvent().stopPropagation() and preventDefault() as is shown in other code elsewhere, but that doesn't work either. The postback defeats my whole purpose of doing the processing client-side.

2) How do I customize the context menu options based on the column? I have added two new options to the context menu (which I add during the OnPreRenderComplete). For most of the columns, these two new options are valid, but for one column, they are not valid and so I want to hide them for only that column. How can I do this? It doesn't matter if I do this client-side or server-side.

Thanks.
Pavlina
Telerik team
 answered on 01 Sep 2010
2 answers
218 views
Hello, I'm creating a RadScheduler context menu dynamically.  I call the method to create the menu in the Page Onload event.  This works great unti I switch a view.  Even though in the OnLoad event I can see that the Scheduler has my custom context menu items, when I right-click, I get the default menu shown.  Is this something that has a workaround?
Dasha
Top achievements
Rank 1
 answered on 01 Sep 2010
1 answer
145 views
Hi, is there a sample on counting rows in each group and displaying the count in the group header or footer?


Thanks
Pavlina
Telerik team
 answered on 01 Sep 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?