Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
522 views
Hi, 

I'm using RadUpload to upload the photo. 

After I selected the photo and click the Upload Button, I want to refresh the image in DataList only by using RadAjaxPanel, RadAjaxLodingPanel and RadAjaxManager.  

I don't want the whole page doing the postback. How can i do that? 

 

 

 

<telerik:RadUpload ID="uplPhoto" runat="server" ControlObjectsVisibility="None" MaxFileInputsCount="1" > 
        </telerik:RadUpload> 
          
        <asp:Button ID="btnUpload" runat="server" Text="Upload" onclick="btnUpload_Click" /> 
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">  
        <asp:DataList ID="dtlPhoto" runat="server" DataKeyField="CreatedBy"   
            DataSourceID="odsPhoto" RepeatDirection="Horizontal" RepeatColumns="3"   
            onitemdatabound="dtlBlogPhoto_ItemDataBound">  
            <ItemTemplate> 
                <img id="img1" alt="" src='<%# Eval("Location") %>' /> 
            </ItemTemplate> 
        </asp:DataList> 
        </telerik:RadAjaxPanel> 
 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnUpload">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="dtlPhoto"   
                            LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManagerProxy> 
          
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">  
        </telerik:RadAjaxLoadingPanel> 

 

Thanks.

Regards,
Jessie

Mohamad
Top achievements
Rank 1
 answered on 07 Jan 2017
3 answers
856 views
I am using RadAjaxPanel and want that a particular button on this page should cause postback. How can i do that?


Mohamad
Top achievements
Rank 1
 answered on 07 Jan 2017
4 answers
712 views
Hi guys,

I've been put in a situation where I need to consider which is the best solution, using RadAjaxPanel or RadAjaxManager. My site has mostly dynamically created controls, added to the page on server-side. Since I wanted to have AJAX on them, most of them are placed inside RadAjaxPanels. There are quite a few controls that interact with each other and AjaxPanel seemed the simple and logical way to handle AJAX requests between them.

However, I'm wondering if using AjaxManager would be better in terms of performance. Are there any situations when using RadAjaxManager is more desirable and efficient than putting the controls in question in a RadAjaxPanel?

Cheers,
Andrei
Mohamad
Top achievements
Rank 1
 answered on 07 Jan 2017
25 answers
1.7K+ views
Does the RadGrid come withany out of the box fuctionallity for responsive Design.

Or how would you go about it if you want to have Screens lager then 1024 and those smaller show different grids, or remove some colums for smart phones?

Markus
Rogerio
Top achievements
Rank 1
 answered on 06 Jan 2017
11 answers
377 views

1. The first filter (for a date column) wraps, such that the filter icon is below the text box instead of to the right.
How can I resize or keep it from wrapping?  I tried many different filter sizes in the aspx and TableLayout="auto"
and TableLayout="fixed".  It looks like there is not enough space for the text box, the date picker icon, and the filter icon.

2. I tried this technique:
http://www.telerik.com/help/aspnet-ajax/grdsettingfiltertextboxdimensions.html

But I do not know what value to use for "ContactName" in:
TextBox box = filteringItem["ContactName"].Controls[0] as TextBox;

I tried the Unique Name for the GridDateTimeColumn but it did not work

3. I tried this technique. It executed without error, but it did not change anything.  Do I need to delete the size declarations in the aspx? Or does this code override?
http://www.telerik.com/community/code-library/aspnet-ajax/grid/filter-textbox-sizing.aspx

4. aspx below

<rad:RadGrid ID="RadGrid1" Font-Size="Smaller" runat="server" PageSize="40" AllowPaging="True"
AutoGenerateColumns="False" ShowStatusBar="True" GridLines="None" MasterTableView-NoMasterRecordsText="No records; try different settings"
DataSourceID="MasterDatasource1" OnInit="RadGrid1_Init" AllowFilteringByColumn="True" AllowSorting="True"
Width="989px" OnItemCreated="RadGrid1_ItemCreated" >
<PagerStyle Mode="Slider" />
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
</Scrolling>
<Selecting AllowRowSelect="true" />
</ClientSettings>
<MasterTableView AutoGenerateColumns="False" Width="100%" DataKeyNames="Day" TableLayout="auto">
<ExpandCollapseColumn Visible="True"></ExpandCollapseColumn>
<Columns>
 <rad:GridDateTimeColumn DataField="Day" HeaderText="Day" UniqueName="Day" ReadOnly="true" DataFormatString="{0:d}" 
 PickerType="DatePicker" FilterControlWidth="90px" >
 <HeaderStyle Width="160px" />
 <ItemStyle Width="160px" />
 </rad:GridDateTimeColumn>
 <rad:GridBoundColumn DataField="MinPerPickTicket" HeaderText="MinPerPickTicket" UniqueName="MinPerPickTicket" ReadOnly="true" DataFormatString="{0:#,###.##}" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="SecPerPickLin" HeaderText="SecPerPickLin" UniqueName="SecPerPickLin" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="SecPerQtyToPick" HeaderText="SecPerQtyToPick" UniqueName="SecPerQtyToPick" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="PickDuration" HeaderText="PickDuration" UniqueName="PickDuration" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="NumPickTicket" HeaderText="PickTicket" UniqueName="NumPickTicket" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="NumPickLin" HeaderText="PickLine"  UniqueName="NumPickLin" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="QtyToPick" HeaderText="ToPick" UniqueName="QtyToPick" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
 <rad:GridBoundColumn DataField="QtyPicked" HeaderText="Picked" UniqueName="QtyPicked" ReadOnly="true" FilterControlWidth="50px" >
 </rad:GridBoundColumn>
</Columns>
<DetailTables>
<rad:GridTableView DataSourceID="DetailDataSource1" Name="DS1Detail"
CellSpacing="-1">
<ParentTableRelation>
 <rad:GridRelationFields DetailKeyField="Day" MasterKeyField="Day" />
</ParentTableRelation>
<Columns>
  <rad:GridBoundColumn DataField="PickTicket" HeaderText="PickTicket" UniqueName="PickTicket">
  </rad:GridBoundColumn>
  <rad:GridBoundColumn DataField="PickDurationSecPerPickLin" HeaderText="PickDurationSecPerPickLin" UniqueName="PickDurationSecPerPickLin">
  </rad:GridBoundColumn>
  <rad:GridBoundColumn DataField="PickDurationSecPerQtyToPick" HeaderText="PickDurationSecPerQtyToPick" UniqueName="PickDurationSecPerQtyToPick">
  </rad:GridBoundColumn>
  <rad:GridBoundColumn DataField="PickDurationSec" HeaderText="PickDurationSec" UniqueName="PickDurationSec">
  </rad:GridBoundColumn>
  <rad:GridBoundColumn DataField="NumPickLin" HeaderText="NumPickLin" UniqueName="NumPickLin">
  </rad:GridBoundColumn>
  <rad:GridBoundColumn DataField="QtyToPick" HeaderText="QtyToPick" UniqueName="QtyToPick">
  </rad:GridBoundColumn>
  <rad:GridBoundColumn DataField="QtyPicked" HeaderText="QtyPicked" UniqueName="QtyPicked">
  </rad:GridBoundColumn>
</Columns>
</rad:GridTableView>
</DetailTables>
</MasterTableView>
</rad:RadGrid>

Celeste
Top achievements
Rank 1
 answered on 06 Jan 2017
1 answer
65 views

RadCloudUpload sends request to {AccountName}.blob.core.windows.net, but this leads to an error if the german azure cloud is used. The german endpoint is {AccountName}.blob.core.cloudapi.de/


Is there a way to determine the endpoint itself?

 

Regards

Dimitar
Telerik team
 answered on 06 Jan 2017
3 answers
95 views
Hello everyone,

it seems like it is not possible to freeze the first two columns of my grid and at the same time allow resizing of the individual columns. Is there a way to achieve this functinality?

Thank you very much!

best regards,

Max
Viktor Tachev
Telerik team
 answered on 06 Jan 2017
1 answer
607 views
Hello,
 How can I download and install Telerik.Web.UI.dll 2015.1.225.45.  I tried using the Telerik Control Panel and Telerik account  but don't see the version I need.
 Thanks,
 Nick
Marin Bratanov
Telerik team
 answered on 06 Jan 2017
2 answers
91 views

Hi,

     When I looked into this demo,

      http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/manual-crud-operations/defaultcs.aspx

    I found if I input a long enough product name  such as 

')aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

     The text will be split into two lines in the text box.

     The first line only has a single character ( , and other characters are placed in the second line.

     Please see the attached screen shot.

     What I expect is that the produce name should be in a single line.

     This error only reproduce in IE but not in Chrome.

      Thanks.

Best regards

Zhang Rui

Rui
Top achievements
Rank 1
 answered on 06 Jan 2017
6 answers
834 views

Hi!

I do somes verification on the codeBehind on the event "RadWizard_ActiveStepChanged(object sender, EventArgs e)".

I need to show or not the finishbutton on c#. How i can do?

thanks

PETER
Top achievements
Rank 1
 answered on 05 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?