Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
212 views

     Hi,

 

Using this ajaxify exampleI need execute code in codebehind, and then update the master page control

https://docs.telerik.com/devtools/aspnet-ajax/controls/ajaxmanager/how-to/ajaxify-and-update-controls-in-master-and-content-page

Something like this:

Content Page

protected void Page_Load(object sender, EventArgs e)
{
    RadAjaxManager AjaxManager = RadAjaxManager.GetCurrent(Page);
    RadMenu RadMenu1 = (RadMenu)this.Master.FindControl("RadMenu1");
    AjaxManager.AjaxSettings.AddAjaxSetting(btnSaveChanges, RadMenu1);
}
 
protected void btnIncrease_Click(object sender, EventArgs e)
{
     ...
     context.SaveChanges();

     // And then, Update Radmenu in MasterPage  
 

}

In my scenario, RadMenu have a CSS indicador of numbers of items in database updated in Page_Load().  But, when I click in btnSaveChanges  in Content Page, always RadMenu update before database is changed.

 

Any way to reverse this?

 

Thank you!

 

 

Marin Bratanov
Telerik team
 answered on 26 Aug 2018
17 answers
433 views
Hi everyone,

when I add AjaxSettings to my pages i often have to repeat the same Ajaxsetting for each ajax enabeld control

<telerik:AjaxSetting AjaxControlID="Button1" >  
  <UpdatedControls > 
     <telerik:AjaxUpdatedControl ControlID="container" /> 
  </UpdatedControls> 
  </telerik:AjaxSetting>         
<telerik:AjaxSetting AjaxControlID="Button2" > 
  <UpdatedControls > 
    <telerik:AjaxUpdatedControl ControlID="container"/> 
  </UpdatedControls> 
</telerik:AjaxSetting> 

this settings list tends to get very long. Would it be possible to combine the settings for example like this

<telerik:AjaxSetting AjaxControlID="Button1,Button2" > 
            <UpdatedControls > 
                <telerik:AjaxUpdatedControl ControlID="container" /> 
            </UpdatedControls> 
</telerik:AjaxSetting> 
 


Please share your thoughts on this.

Rafael





Peter Zaby
Top achievements
Rank 1
 answered on 24 Aug 2018
11 answers
658 views
I'm struggling to set 100% height on a grid. I've seen many threads open on this subject and a few code samples too but they are all too simple.

The main issue is that there is a <div> element generated (usually has an id of the form ...._GridData) that has an inline style like this:

OVERFLOW: auto; WIDTH: 100%; HEIGHT: 10px 

and thus the content will always be in a 10 pixel high box. Even if I set the Height attribute of the grid to something fixed that div stays 10 pixel high and only the lower pager area grows in height so that the grid will respect the given height.

The question is why does that div has that hardcoded height? What would be the purpose of having such a default anyway?
Kiranmayee
Top achievements
Rank 1
 answered on 24 Aug 2018
1 answer
231 views

I am using a dropdownlist on a mobile browser, the page moves when i try to scroll through the items.

I can't use my finger to scroll. It's a long page.

<telerik:RadDropDownList ID="ddlState" runat="server" DropDownHeight="300" Width="260px" Skin="Silk" RenderMode="Lightweight">
 </telerik:RadDropDownList>

Marin Bratanov
Telerik team
 answered on 24 Aug 2018
4 answers
719 views
Hello,

I hope someone can help me out with the following problem.

I have a usercontrol with a ListView which I have bound to a list of productimages. There are 12 items in the listview and I have set the pagesize to 4. This means I have 4 pageindexes.
In another usercontrol I fire an event with should look up the productimage in the above listview. What I want is to lookup the item in the listview which matches the parameter I send from the second usercontrol. As long as the parameter matches an productimage which is present in the selected pageindex it works all fine. But how can I look into all the items that are bound to the Listview and then select that item and set the correct pageindex

For a demo you can look at http://roosjen.uitverkoopinnederland.nl/index.aspx?contentid=233
On the left hand you can click on [Bekijk productinfo] and on the right topside the corresponding productimage should be set.

Thanks in advance.

Kind regards Patrick
Vasssek
Top achievements
Rank 1
 answered on 24 Aug 2018
8 answers
1.0K+ views
Hi Telerik,

  I have a RadGrid and generated auto generate columns.
My scenario is, I would like to make a total of all columns in footer.
How can i calculate dynamically and assign into footer.
Pls.. Its very urgent


Regards,
Nirmal 
Attila Antal
Telerik team
 answered on 24 Aug 2018
3 answers
128 views
     RadCombobox not showing new selected value or item after postback it always showing item selected first time when page load.
Tsvetomir
Telerik team
 answered on 24 Aug 2018
2 answers
453 views
Hello, i have a GridTableView inside a GridTableView and i want to change the Column Header Text Dynamically (Server Side), the aspx is as follow:

<telerik:RadGrid ID="rgdProducts" runat="Server" AutoGenerateColumns="False" ...>
<MasterTableView Name="MasterTable" AutoGenerateColumns="True" ...>
<DetailTables>
    <telerik:GridTableView Name="NumDetailTable" AutoGenerateColumns="True" ...>
    <DetailTables>
        <telerik:GridTableView Name="UOMDetailTable" AutoGenerateColumns="False" ...>
        <Columns>
             <telerik:GridBoundColumn UniqueName="SortOrder" HeaderText="Sort Order">
        </Columns> 

Hope anyone can help me, Thanks.
Manuel Buendia
Top achievements
Rank 1
 answered on 23 Aug 2018
1 answer
129 views
I currently am using Visual studio 2010 and connecting to the Telerik tool on my computer by using the file location of:
C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R1 2018. Here I connect to the folder called Bin40 to connect to the UI for asp.net  ajax. 
I see that I could connect to the folder called Bin45 if I want to use Visual Studio 2012. 
However, I would like to upgrade my application to using a newer version of Visual Studio 2012.
Thus if I want to use a newer version of Visual Studio, what versions can I use? Also if I use a newer version of Visual Studio, how would I connect to a newer compatible version of the Telerik tool? Would I need a new download file? If not, where in the directory path would I connect the newer version of Visual studio to the Telerik tool to?
Marin Bratanov
Telerik team
 answered on 23 Aug 2018
2 answers
316 views

I currently am using Visual studio 2010 and connecting to the Telerik tool on my computer by using the file location of:

C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R1 2018. Here I connect to the folder called Bin40 to connect to the UI for asp.net  ajax. 

I see that I could connect to the folder called Bin45 if I want to use Visual Studio 2012. 

However, I would like to upgrade my application to using a newer version of Visual Studio 2012.

Thus if I want to use a newer version of Visual Studio, what versions can I use? Also if I use a newer version of Visual Studio, how would I connect to a newer compatible version of the Telerik tool? Would I need a new download file? If not, where in the directory path would I connect the newer version of Visual studio to the Telerik tool to?

 

 

Marin Bratanov
Telerik team
 answered on 23 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?