Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
120 views
For the sake of Google ...

If you are using RadScriptManager and you are using multiple web.config files, make sure the handler is registered in the top-most web.config file, even all the files reside beneath the folder in which your child web.config file lives.

I had an /admin/web.config file (which has my RadScriptManager handlers registered)
and I had my /web.config file (which did not)

It appeared to work until I was using the WCF element of the RadTReeView (specifically, clicking on a dynamically generated node - the tree dynamically generated fine) so this was giving a false impression.

Without the root web.config file having the handler registrations, you get a "ASP.NET Ajax client-side framework failed to load." error from JavaScript.

Those registrations, again:

<?xml version="1.0"?> 
 
<configuration> 
  
  <system.web> 
    
    <httpHandlers> 
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
 
    </httpHandlers> 
  </system.web> 
  <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true" /> 
 
      <handlers> 
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
 
      </handlers> 
  </system.webServer> 
     
</configuration> 


Hope this helps someone.
Nathan J Pledger
Top achievements
Rank 2
 asked on 29 Apr 2010
3 answers
429 views
I noticed that when you focus a radComboBox by pressing tab it doesnt expand, is there a property or a way to make it expand?
Thanks!
Kalina
Telerik team
 answered on 29 Apr 2010
2 answers
116 views
Hi,

First thanks or solution in advance ...

I have functionality in my application where i need to export current page of  grid to pdf. Its is working fine with setting property "IgnorePaging" to true. But its does not working for current page of grid and returns blank page. I got the reason that why its not working. Reason is that i  am using scrolling properties of grid. I f i am not using these properties then thi is working ok for current page too. But according to my requirement, it is mandatory for me to use scrolling properties. Please let me know how can i export current view of grid with these scrolling options true.


Thanks, 
Ankesh Bharti


Ankesh Bharti
Top achievements
Rank 1
 answered on 29 Apr 2010
10 answers
220 views
I have a little  bit of a challenging task, and I am not certain how to go about accomplishing it.  I have a grid that loads orders (detail table is the items in an order number) for the purposes of administering them.  This will primarily be used for our customer service reps.  What I need to do is to make the delete button invisible if the order status = 'pending', because at that point the order cannot be deleted from the web portal, but must rather be deleted using another method.  I hope someone can point me in the right direction of how I can accomplish this task.  Here's the grid code:

                        <telerik:RadGrid ID="rgOrderView" runat="server" AllowPaging="True" AllowSorting="True"   
                            DataSourceID="dsSelectOrders" GridLines="None" Width="95%" PageSize="25" Skin="Black">  
                            <MasterTableView AutoGenerateColumns="False" DataSourceID="dsSelectOrders" Width="95%" 
                                DataKeyNames="UserID, OrderID">  
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </ExpandCollapseColumn> 
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="ExternalOrderID" DataType="System.Int32" HeaderText="Order ID"   
                                    ReadOnly="True" SortExpression="ExternalOrderID" UniqueName="ExternalOrderID" /> 
 
                                    <telerik:GridBoundColumn DataField="StoreNum" HeaderText="Store Number"   
                                        SortExpression="StoreNum" UniqueName="StoreNum" /> 
                                    <telerik:GridBoundColumn DataField="POGNum" HeaderText="POG Number"   
                                        SortExpression="POGNum" UniqueName="POGNum" /> 
                                    <telerik:GridBoundColumn DataField="Description" HeaderText="POG Description"   
                                        SortExpression="Description" UniqueName="Description" /> 
                                    <telerik:GridBoundColumn DataField="EntryDate" DataType="System.DateTime"   
                                        HeaderText="Entry Date" SortExpression="EntryDate" UniqueName="EntryDate" /> 
                                    <telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status"   
                                        UniqueName="Status" /> 
                                    <telerik:GridBoundColumn DataField="OrderID" SortExpression="OrderID" UniqueName="OrderID"   
                                        Visible="false"/>  
                                </Columns> 
                                  
                                <NestedViewSettings DataSourceID="dsSelectOrderDetails">  
                                    <ParentTableRelation> 
                                        <telerik:GridRelationFields MasterKeyField="OrderID" DetailKeyField="OrderID" /> 
                                    </ParentTableRelation> 
                                </NestedViewSettings> 
 
                                <NestedViewTemplate> 
                                    <telerik:RadGrid ID="rgOrderDetails" runat="server" AutoGenerateColumns="False" DataSourceID="dsSelectOrderDetails" 
                                                     AllowSorting="true" AllowFilteringByColumn="true" > 
                                        <MasterTableView AutoGenerateColumns="False" DataSourceID="dsSelectOrderDetails">  
                                            <Columns> 
                                                <telerik:GridBoundColumn DataField="ItemNum" HeaderText="Item Number"   
                                                    SortExpression="ItemNum" UniqueName="ItemNum" /> 
                                                  
                                                <telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity"   
                                                    SortExpression="Quantity" UniqueName="Quantity" /> 
                                            </Columns> 
                                        </MasterTableView> 
                                        <HierarchySettings ExpandTooltip="Expand this Order to see item detail." /> 
                                    </telerik:RadGrid> 
                                </NestedViewTemplate> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
Is there an easy way to load the delete button dynamically as the grid is filled with data based on the value of the order status?  At this point, even a starting point would be helpful...
TSCGlobal
Top achievements
Rank 1
 answered on 29 Apr 2010
1 answer
114 views

 Hi ,
       I am using Q2 2008 telerik version.
       Here is my Aspx code ,
  

 

 

        <telerik:RadUpload Localization-Select="Select Photo" ID="UploadFile" runat="server"

 

 

        Skin="Vista" ControlObjectsVisibility="None"  OverwriteExistingFiles="false" InitialFileInputsCount="1" />

 

 

 

        I dont want Add , Delete , Remove etc button , want only a text box  and select button.
       So i have set ControlObjectsVisibility="None" property.
       If i set this property in code and test in Opera browser , Upload control do not work.When i click on select nothing  happens.
       Where as when i set ControlObjectsVisibility="All" it runs in Opera.But i dont want to show all other controls.

      Is there any solution for this?

Thanks.

      

Dimitar Milushev
Telerik team
 answered on 29 Apr 2010
1 answer
160 views

I have a Formview and a RadGrid on my page.

I am getting details in my RadGrid for the Selected Value in my FormView based on Client ID (cID).
I want to use PopUp edit form. However I am having the following issues when creating new items in my radgird using popup..

1. I need to set the cID in the RadGrid to the current selected value for my FormView.
2. I need on of my columns in Popup Edit form to present a dropdown for ProductID (pID) whiohc ties the dropdown datasource to another lookup table.

I need to hide some of the colums that are  being display in the Insert form of the popup editfiorm as they are not required. But are using in SQL Joins.

Anybody have any clue where to start on any of this?

Pseudo Code for Setting cID
...I know "CurrentMode" dosne't exist for RadGrid...but I don't know where to put this.

 Protected Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As EventArgs)  
        Dim strCID As String = fvClients.SelectedValue  
        If RadGrid.CurrentMode = RadGrid.Insert AndAlso (DirectCast(RadGrid.FindControl("cIDTextBox"), TextBox)).Text.Length = 0 Then 
            Dim tbox As TextBox = TryCast(RadGrid1.FindControl("cIDTextBox"), TextBox)  
            tbox.Text = strCID  
        End If 
    End Sub 

Also how do I change pID column to dropdown with different datasource? And how to do I hide "Name" column in Insert/Edit Forms?
  <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="dsPrescriptionItems" 
                        GridLines="None" AutoGenerateEditColumn="True" AutoGenerateColumns="False" Skin="Forest">  
                        <HeaderContextMenu EnableAutoScroll="True">  
                        </HeaderContextMenu> 
                        <MasterTableView DataKeyNames="ID" DataSourceID="dsPrescriptionItems" AllowAutomaticDeletes="True" 
                            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Bottom" 
                            EditMode="PopUp">  
                            <Columns> 
                                <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" Display="False" HeaderText="ID" 
                                    ReadOnly="True" SortExpression="ID" UniqueName="ID">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="cID" DataType="System.Int32" Display="False" 
                                    HeaderText="cID" SortExpression="cID" UniqueName="cID">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="pID" DataType="System.Int32" Display="False" 
                                    HeaderText="pID" SortExpression="pID" UniqueName="pID">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" 
                                    UniqueName="Name">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ScriptRefills" DataType="System.Int32" HeaderText="Refills" 
                                    SortExpression="ScriptRefills" UniqueName="ScriptRefills">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="StartDate" DataFormatString="{0:MMM dd, yyyy}" 
                                    DataType="System.DateTime" HeaderText="Start Date" SortExpression="StartDate" 
                                    UniqueName="StartDate">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
                            <EditFormSettings CaptionFormatString="Edit Prescription" 
                                InsertCaption="Add Prescription:" PopUpSettings-Modal="True">  
                                <PopUpSettings Modal="True" /> 
                            </EditFormSettings> 
                        </MasterTableView> 
                        <ClientSettings> 
                            <ClientEvents OnPopUpShowing="PopUpShowing" /> 
                            <Selecting AllowRowSelect="true" /> 
                        </ClientSettings> 
                    </telerik:RadGrid> 
Nikolay Rusev
Telerik team
 answered on 29 Apr 2010
3 answers
154 views
Hi i'm looking at the following entry on the code library.

http://www.telerik.com/community/code-library/aspnet-ajax/combobox/show-the-selected-item-image-in-input.aspx

I'm sure i'm very close to getting this to work. My combobox causes a postback.

When this function runs

                function showImageOnSelectedItemChanging(sender, eventArgs) {
                    var input = sender.get_inputDomElement();
                    input.style.background = "url(" + eventArgs.get_item().get_imageUrl() + ") no-repeat";
                }

it seems to set the image correctly. But after the postback is complete

                function showFirstItemImage(sender) {
                    var input = sender.get_inputDomElement();
                    alert(input);
                    alert(sender.get_items().getItem(0).get_imageUrl());
                    input.style.background = "url(" + sender.get_items().getItem(0).get_imageUrl() + ") no-repeat";
                }

that returns null. I've added in a couple of alerts to see whats going on, the alert(input) line is returning an element as expected, but the second alert is returning null.

Why is this ?







Alan T
Top achievements
Rank 1
 answered on 29 Apr 2010
2 answers
120 views
I'm populating my listview with some objects via linq (where\orderby) in the NeedsDataSourceEvent

I then also have a textbox on the page for searching...when text is typed into the box, user clicks "search" which really just rebinds the listview and in needsdatasource I grab that textbox search value and bind on that.

The issue I'm running into is when the user does a search filter and clicks a pager item, the entire thing re-binds with the full default datasource again...

Is there some trick to this?
Craig
Top achievements
Rank 2
 answered on 29 Apr 2010
1 answer
119 views
When I click on a color from ColorPicker, it disappears and the previous selected color reappears...
please post me some code with css so i can test on my local host then apply on the website...
Tsvetie
Telerik team
 answered on 29 Apr 2010
1 answer
91 views
How do I get current selected resource key at inserting?
Assume my resource is selected from dropdown, and I am using a customized advanced template and my own dbscheduler provider.
Peter
Telerik team
 answered on 29 Apr 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?