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

I have a page which contain 5 user controls in it. In each user control i am using Rad Window to insert master data.  On closing i need to display that inserted data in its respective user control so i want to update that user control only. Currently i am reloading whole page to update respective Grid resides in the user control so because of that all user controls get refreshed and page gets slow.

Can you some provide example.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2014
3 answers
103 views
Hi,
    I'm having a problem with cascading RadDropDownLists where the EnableVirtualScrolling property is enabled. I have three lists that cascade so that each selection filters the available options on the next list. When I first set the screen up, none of the lists had virtual scrolling enabled. It turned out that there was quite a long list for certain combinations of filtering. When the list length exceeded the available space on the page, the user was unable to access the options lower down. After a bit of reading, I discovered the EnableVirtualScrolling property and it seemed to work great. However, I found that the drop-down lists on the lower two tiers of the cascade would only display the first record/row of their available options after a postback from the preceding  lists.

Here's my code:
<telerik:RadDropDownList ID="DropDownList1" DataSourceID="SQLDataSource1"
    DataValueField="Table1_Id" DataTextField="Table1_Text" Width="460px"
    EnableVirtualScrolling="true" DropDownHeight="250px" DropDownWidth="460px"
    AppendDataBoundItems="true" AutoPostBack="true" Skin="Metro" runat="server" >
</telerik:RadDropDownList>
 
 
<telerik:RadDropDownList ID="DropDownList2" DataSourceID="SQLDataSource2"
    DataTextField="Table2_Id" DataValueField="Table2_Text" Width="460px"
    EnableVirtualScrolling="true" DropDownHeight="250px" DropDownWidth="460px"
    AppendDataBoundItems="true" AutoPostBack="true" Skin="Metro" runat="server">
</telerik:RadDropDownList>
 
 
<telerik:RadDropDownList ID="DropDownList3" DataSourceID="SQLDataSource3"
    DataTextField="Table3_Id" DataValueField="Table3_Text" Width="460px"
    EnableVirtualScrolling="true" DropDownHeight="250px" DropDownWidth="460px"
    AppendDataBoundItems="true" AutoPostBack="true" Skin="Metro" runat="server">
</telerik:RadDropDownList>
 
 
<%-- Data Source for DropDownList1 --%>
<asp:SqlDataSource ID="SQLDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:RAMtrack %>"
    ProviderName="<%$ ConnectionStrings:RAMtrack.ProviderName %>"
    SelectCommand="Select_Table1Data"
    SelectCommandType="StoredProcedure">
 
    <SelectParameters>
        <asp:SessionParameter Name="Customer_id" SessionField="Customer_Id" Type="Int64" />
    </SelectParameters>
</asp:SqlDataSource>
 
 
<%-- Data Source for DropDownList2 --%>
<asp:SqlDataSource ID="SQLDataSource2" runat="server"
    ConnectionString="<%$ ConnectionStrings:RAMtrack %>"
    ProviderName="<%$ ConnectionStrings:RAMtrack.ProviderName %>"
    SelectCommand="Select_Table2Data"
    SelectCommandType="StoredProcedure"
    >
    <SelectParameters>
        <asp:SessionParameter Name="Customer_id" SessionField="Customer_Id" Type="Int64" />
        <asp:ControlParameter Name="Table1_Id" ControlID="DropDownList1" PropertyName="SelectedValue" DefaultValue="0" Type="Int64" />
    </SelectParameters>
</asp:SqlDataSource>
 
 
<%-- Data Source for DropDownList3 --%>
<asp:SqlDataSource ID="SQLDataSource3" runat="server"
    ConnectionString="<%$ ConnectionStrings:RAMtrack %>"
    ProviderName="<%$ ConnectionStrings:RAMtrack.ProviderName %>"
 
    SelectCommand="Select_Table2Data"
    SelectCommandType="StoredProcedure"
    >
    <SelectParameters>
        <asp:SessionParameter Name="Customer_id" SessionField="Customer_Id" Type="Int64" />
        <asp:ControlParameter Name="Table2_Id" ControlID="DropDownList2" PropertyName="SelectedValue" DefaultValue="0" Type="Int64" />
    </SelectParameters>
</asp:SqlDataSource>
 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
 
        <telerik:AjaxSetting AjaxControlID="DropDownList1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DropDownList2" LoadingPanelID="pnl_SystemAffected" />
                <telerik:AjaxUpdatedControl ControlID="DropDownList3" LoadingPanelID="pnl_SystemAffected" />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
        <telerik:AjaxSetting AjaxControlID="DropDownList2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DropDownList3" LoadingPanelID="pnl_SystemAffected" />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
    </AjaxSettings>
</telerik:RadAjaxManager>

If I remove the [EnableVirtualScrolling="true" DropDownHeight="250px" DropDownWidth="460px"], it all works fine (except that some lists are too long). Am I missing another property or setting somewhere?

Geoff
Geoff
Top achievements
Rank 1
 answered on 08 Jul 2014
1 answer
152 views
Is filtering using wildcard available in in the latest release (as of 7/7/14) or would that still need to be a composite?

For example:

I have a column 'Part Number' and would like to filter where Part Number like 'AB%11' which would return AB845711 and AB348511 in the results.

Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
3 answers
152 views
It looks like by default the RadMap is Pannable - very nice.  However, when I add markers, then pan to the next map left or right, those markers do not follow.  When I pan back to the original view they are there.

Is this by design?  In development?  Or am I missing something?
Ianko
Telerik team
 answered on 08 Jul 2014
8 answers
219 views
Hi,

I'm using telerik (v2010.2.826.35) RadUpload control. The control works fine in IE9, but when I use it in IE8, the browse button doesn't work (the dialogue box on browse button click doesn't opens).

Can you please provide some solution to this.

One more condition, I can't apply meta tag in the head section of the page to set the document mode to IE7 as there's some kind of bindings in my application.


Thanks

Sumit
Kostas
Top achievements
Rank 1
 answered on 08 Jul 2014
3 answers
273 views
I have been trying to set the value of a hidden field by using Javascript and
then access the value from within my C# codebehind. When I run the code that is
copied below, the value that is assigned to hidden field is null

i have a rad combo in rad grid on OnClientSelectedIndexChanged i am setting selected value to hidden field , and i have another rad combo on this rad combo item request event i am trying to get value from hidden field 

I would appreciate any help with the matter. I have spent hours trying to
solve what seems like a very simple problem.


<telerik:GridTemplateColumn DataField="CostEntityName" HeaderText="Cost Entity" AllowFiltering="true" UniqueName="CostEntityName1">
  <ItemTemplate>
     <telerik:RadComboBox ID="rcb_PODetailCostEntity" runat="server" MarkFirstMatch="True"
                         EnableLoadOnDemand="True" Height="140px" ShowMoreResultsBox="True"
                         ItemRequestTimeout="500" OnItemsRequested="rcb_PODetailCostEntity_ItemsRequested"
                        Width="99%" DataTextField="StatusEntityName" DataValueField="StatusEntityID"
                        DropDownWidth="280px" ExpandEffect="pixelate" OnClientSelectedIndexChanged="GetSelectedCostEntityID">
     </telerik:RadComboBox>
  </ItemTemplate>
<ItemStyle Width="5%" />
<HeaderStyle Width="5%" />
</telerik:GridTemplateColumn>  

<telerik:GridTemplateColumn DataField="CostEntityKeyName" HeaderText="Cost Entity Key" AllowFiltering="true" UniqueName="CostEntityKeyName1">
<ItemTemplate>
    <telerik:RadComboBox ID="rcb_PODetailCostEntityKey" runat="server" MarkFirstMatch="True"
             EnableLoadOnDemand="True" Height="140px" ShowMoreResultsBox="True"
             ItemRequestTimeout="500" OnItemsRequested="rcb_PODetailCostEntityKey_ItemsRequested"
             Width="99%" DataTextField="StatusEntityName" DataValueField="StatusEntityID"
             DropDownWidth="280px" ExpandEffect="pixelate">
    </telerik:RadComboBox>
</ItemTemplate>
<ItemStyle Width="7%" />
<HeaderStyle Width="7%" />
</telerik:GridTemplateColumn>  



Jva script function calling on client selected index changed
function GetSelectedCostEntityID(sender, eventArgs)  
                {
                    var combo = $find("<%= rgPODetailsForNonInv.ClientID%>").get_masterTableView().get_dataItems()[0].findControl("rcb_PODetailCostEntity");
                    //alert(eventArgs._item._properties._data.value);

                    document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_PODetailCostEntityID").value = eventArgs._item._properties._data.value;
                    //$(document).ready(function() {
                    //$("<%=  HiddenField_PODetailCostEntityID.ClientID  %>").val(eventArgs._item._properties._data.value);
                    //});
                    //$("<%= HiddenField_PODetailCostEntityID.ClientID %>").val(eventArgs._item._properties._data.value);
                    //alert(document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_PODetailCostEntityID").value);
                    //document.getElementById("ctl00_MainContentPlaceHolder_lbl_PODetailcostEntity").value = eventArgs._item._properties._data.value;
                }   

code behind Item request event for 2nd rad combo
 protected void rcb_PODetailCostEntityKey_ItemsRequested ( object sender, RadComboBoxItemsRequestedEventArgs e ) 
    {
        try
        {
            string PageParameter = null;
            RadComboBox rcb_CostEntityKey = (RadComboBox)sender;
            GridDataItem dataItem = (GridDataItem)rcb_CostEntityKey.NamingContainer;
            RadComboBox rcb_CostEntity = (RadComboBox)dataItem.FindControl("rcb_PODetailCostEntity");
            int CostEntityID =0;
            int.TryParse(HiddenField_PODetailCostEntityID.Value, out CostEntityID);
            if (CostEntityID == GlobalConstants.CONTRACT_ENTITY_ID)
                PageParameter = "contract";
            if (CostEntityID == GlobalConstants.CSSALES_ORDER_ENTITY_ID)
                PageParameter = "cssalesorder";
            if (CostEntityID == GlobalConstants.CONTRACT_ITEM_ENTITY_ID)
                PageParameter = "contractitem";
            if (CostEntityID == GlobalConstants.PROJECT_ENTITY_ID)
                PageParameter = "project";
            if (CostEntityID == GlobalConstants.TRADING_SALES_ENTITY_ID)
                PageParameter = "tradingsales";
            if (CostEntityID == GlobalConstants.MANUFACTURE_ORDER_ENTITY_ID)
                PageParameter = "ManufactureOrder";
            GetIDValues.rcb_dKey_ItemsRequested(sender, e, int.Parse(rcb_CostEntity.SelectedValue), rcb_CostEntityKey, PageParameter);
        }
        catch (Exception ex)
        {
            XITingExceptionProcessor.ProcessException(this, ex);
        }
    }





Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
1 answer
108 views
Hi,
I am interested in knowing how the radeditor handles requestvalidation - does it encode the html within a javascript function and then decode server-side? Can you provide any information on how radeditor handles validation - like, when it does it, and where?

Thanks

Daniel
Ianko
Telerik team
 answered on 08 Jul 2014
3 answers
280 views
I am binding a set of addresses to the RadMap server-side, and would like to set the Zoom and CenterPosition so that the points on the map are all within view.

For instance, the user may have zoomed into the US - the selects a list that adds addresses in Europe.  I would like to reset the map zoom/center to show this whole group.  How would I go about doing this?
Ianko
Telerik team
 answered on 08 Jul 2014
3 answers
165 views
How to resize image on AsyncUpload?
I want to specify a maximum width (Constrain Proportions) when uploading a picture.
If the picture I upload is 1800px wide, I want to be saved as a maximum of 600 px wide.
Tips on how I solve it. I am using the "AsyncUpload - Validation" example....
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2014
8 answers
227 views
I have a Radgrid which is part of a popup window. the popup window has a panel which has an update panel to which the radgrid is added. The refresh and delete do not work here because the RadGrid1_ItemCommand is never invoked! Whereas if I add the same control, without the popup it works fine.
Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?