Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.1K+ views
Hello, 

What is the best way to detect if my RadGrid in batch edit mode has had any of its cells modified and has pending unsaved changes?  I understand how to detect and handle the "batchEdit" command being fired to say the grid is up to date, but I am not sure how to detect on the client that a cell was modified.  This is my first time using a RadGrid so excuse my inexperience but I didn't see this question asked elsewhere.
Rumen
Telerik team
 answered on 13 Aug 2019
1 answer
122 views

I'm attempting to use the RadMonthYearPicker inside of a RadGrid EditItemTemplate in BatchEdit mode and I'm having an issue getting the picker to accept and exit all forms of it's editors when the user clicks 'OK'

I've attached a screenshot to help illustrate what I mean.

I have a OnBatchEditCellValueChanged function that then validates the date selected and pulls some DB values to other columns.

I have everything working like I want it accept when using the picker you have to manually click off the row before the changed event will fire.

I've tried several different methods of moving the cursor, setting focus, blurs, saving the table via batch manager and I'm sure a few other things and haven't had success yet.

Any direction at this point would be much appreciated. 

Attila Antal
Telerik team
 answered on 13 Aug 2019
2 answers
162 views

Hi Team,

 

Is it possible to stack or group series on the DonutSeries?

Is there a way to add borderstyle instead of the background color?

Please see screenshot.

 

Andrew
Top achievements
Rank 1
 answered on 13 Aug 2019
6 answers
1.6K+ views

I've been trying to change the selected the item in a radcombox using the following java script code and none of it works:

var comboBox = <%=rc1.ClientID %>;  
comboBox.set_Text = "";  
//document.getElementById("<%=rc1.ClientID %>").value = "";  
  
var ddlQType = $find("<%=rc1.ClientID%>"); 
ddlQType._text = "";
ddlQType.set_selectedItem = "";

What am I doing wrong?
Thanks

 

 

 

 

 

 

 

 

Attila Antal
Telerik team
 answered on 13 Aug 2019
4 answers
1.2K+ views

Hello,

I have a user registration web form page where users have to enter specific fields. 

I go through and fill out the info but when I leave a required field blank I have a server side error check.  When it does the error check I lose the document within my radAsyncUpload control.    The file is already saved in the App_Data till I save it when the post is error free.

 

Can the control hold the file information till an error free post back is made?

I don't want my users to have to select their file multiple times.

 

Thank you,

Jerry

Rumen
Telerik team
 answered on 13 Aug 2019
7 answers
574 views
Hi We are trying to use ImageGallery but cannot make it properly responsive.

It seems that we can only set a fixed height in pixels so that the gallery shrinks horizontally but does not stay in proportion. The gallery height in the settings wizard cannot be left blank, cannot be set to a percentage or auto as then we get a run time error.  The height value writes css inline so we can't even over-ride it

If we remove it in Firebug the gallery becomes properly responsive

Does anyone know a way to solve this issue? We could just use a different gallery but this is the only problem we have 


Rumen
Telerik team
 answered on 13 Aug 2019
1 answer
270 views
I've seen the controls that are available in the Image editor and would really like to see them implemented in the image gallery. Being able to allow the client to specify image zoom, or other effects has a great value. I was curious if there was any simple solution currently to show a client a list of image thumbnails, and to open a single one in an editor.
Rumen
Telerik team
 answered on 13 Aug 2019
1 answer
127 views

According to the documentation there should be a way to set the location of the axis label position via property
    Telerik.Web.UI.HtmlChart.AxisLabelPosition. 

Which allow the values of: OnAxis, Start, or End

It is demonstrated in this demo. 

My version does not have that property. I am running "Telerik UI for ASP.NET AJAX R2 2018".  

Do I need a newer version?

Thanks, 
Mike H

 

 

Vessy
Telerik team
 answered on 12 Aug 2019
3 answers
493 views
Using ASP.Net webforms I have a pop up containing 2 tabs, which display info on a feature, 'FEATURE PROPERTIES' and 'IMAGES'. Each time a new feature is clicked the pop up is updated with the new feature details.

I was making the call back to the server where updatePanel8 was being updated. Unfortuantelly I am trying to convert my website to telerik and I am having difficulties implenting this. I have read many Q's on telerik forms some suggest trying RadAjaxPanel others suggest tryiing RadAjaxManager, but either way I cant seem to get it working as I cant use an update panel inside a panel when I am using telerik.

<asp:Panel ID="ViewFeatureProperties" runat="server" BackColor="Snow" Width="300"
               HorizontalAlign="Center">
               <asp:UpdatePanel runat="server" ID="UpdatePanel8" UpdateMode="Conditional" ChildrenAsTriggers="true"
                   Style="position: relative; overflow: hidden; background-color: White;              
                  width: 300px; height: 300px; margin: 5px; text-align: center; outline-style: none; overflow-y: hidden; overflow-x:hidden;">
 
                   <ContentTemplate>
                           <div id="DivHolding2Tabs" class="overflowcontent webkit-scrollbar webkit-scrollbar-track webkit-scrollbar-thumb" style="width:100%;border-color:Black;border-width:1px;border-style:solid;">
                               <ul id="tabList" style="width:100%">
                                   <li><a href="#tabs-1">Info</a> </li>
                                   <li><a href="#tabs-2" style="display:none;">Images</a> </li>
                               </ul>
 
                               <div id="tabs-1" class="WorkFlowLayout">
                                       <b><font color="FF6600">Feature Properties </font></b>
                                        <div id="divFeatureInfo" runat="server">
                                        </div>
                               </div>
 
                               <div id="tabs-2" class="WorkFlowLayout">
                                        <b><font color="FF6600">Images</font></b>
                                        <div id="ImagesRelatingToFeatureDIV" runat="server"> 
                                       </div>
                               </div>
                           </div>
                           <br />
                           <br />
                           <div class="buttonwrap">
                               <span id="Span5" class="ActionBtns">
                                   <asp:Button ID="ViewFeatureWorkflowImagePostBackBtn" runat="server" Style="display: none;
                                       visibility: hidden;" OnClick="ViewFeatureWorkflowImagePostBackBtn_Click" />
                               </span>
                           </div>
 
                   </ContentTemplate>
                   <Triggers>
                       <asp:AsyncPostBackTrigger ControlID="ViewFeatureWorkflowImagePostBackBtn" EventName="Click" />
                   </Triggers>
               </asp:UpdatePanel>
           </asp:Panel>

**CODE BEHIND**<br>protected void ViewFeatureWorkflowImagePostBackBtn_Click(object sender, EventArgs e)<br>{<br>ReloadUploadedImagesForFeatureWorkflow();<br>}<br><br><br>private void ReloadUploadedImagesForFeatureWorkflow()<br>{<br>//generate the new details for the popup<br>UpdatePanel8.Update();<br>script.Append("OpenPropertiesPopUp();");<br><br>ScriptManager.RegisterClientScriptBlock(UpdatePanel8,                                                        UpdatePanel8.GetType(),                                             "OpenPropertiesPopupCall()",<br>script.ToString(),<br>true);<br>}


Some exmaples I have tried are:

<asp:Panel ID="Panel1" runat="server">
                    <div id="Div1" class="overflowcontent webkit-scrollbar webkit-scrollbar-track webkit-scrollbar-thumb"
                         style="width: 100%; border-color: Black; border-width: 1px; border-style: solid;">
 
                     <asp:Button ID="ViewFeatureWorkflowImagePostBackBtn" runat="server" Text="Update the first Panel" OnClick="ViewFeatureWorkflowImagePostBackBtn_Click" />
                     <asp:Label ID="Label4" runat="server" Text="Label4"></asp:Label>
 
 
                         <ul id="Ul1" style="width: 100%">
                             <li><a href="#tabs-1">Info</a> </li>
                             <li><a href="#tabs-2" style="display: none;">Images</a> </li>
                         </ul>
                         <div id="tabs-1" class="WorkFlowLayout">
                             <b><font color="FF6600">Feature Properties </font></b>
                             <div id="divFeatureInfo" runat="server">
                             </div>
                         </div>
                         <div id="tabs-2" class="WorkFlowLayout">
                             <b><font color="FF6600">Images</font></b>
                             <div id="ImagesRelatingToFeatureDIV" runat="server">
                             </div>
                         </div>
                     </div>
                     <br />
                     <br />
                     <div class="buttonwrap">
                         <span id="Span6" class="ActionBtns">
                             <asp:Button ID="Button2" runat="server" Style="display: none; visibility: hidden;"
                                 OnClick="ViewFeatureWorkflowImagePostBackBtn_Click" />
                         </span>
                     </div>
 
     </asp:Panel>
     <br />
 
        <telerik:radajaxloadingpanel id="RadAjaxLoadingPanel2" runat="server" skin="Default"></telerik:radajaxloadingpanel>

code behind UpdatePanel8.AjaxRequest;
// UpdatePanel8.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", UpdatePanel8.ClientID));

Rumen
Telerik team
 answered on 12 Aug 2019
1 answer
120 views

Hello, have good time
I have a page where it's a grid.

In this grid one of the columns is hidden where the user ID is and in the other column it fills the user name with another List in the event ItemDataBound
But when grouping it shows the user ID while I need the name to show it.

Aspx

01.<telerik:RadGrid ID="RadGrid1" runat="server" ShowFooter="true" AllowFilteringByColumn="true" GroupingEnabled="true" ShowGroupPanel="True"
02.                ClientSettings-AllowDragToGroup="true" AllowSorting="true" AllowPaging="true" PageSize="5" Skin="WebBlue" AllowMultiRowSelection="false" CellSpacing="-1" GridLines="Both"
03.                OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" OnPageIndexChanged="RadGrid1_PageIndexChanged" OnItemDataBound="RadGrid1_ItemDataBound">
04.                <ClientSettings EnablePostBackOnRowClick="true">
05.                    <Selecting AllowRowSelect="True" />
06.                    <ClientEvents OnRowCreated="onRowCreated" OnRowSelected="onRowSelected" OnRowDeselected="onRowDeselected"
07.                        OnGridCreated="gridCreated" OnGridCreating="masterTableCreating" />
08.                </ClientSettings>
09.                <GroupingSettings ShowUnGroupButton="true" GroupContinuesFormatString="" />
10.                <MasterTableView ShowGroupFooter="true" AutoGenerateColumns="False" DataKeyNames="Food_User_ID" ClientDataKeyNames="Food_ID_"
11.                    NoMasterRecordsText="اطلاعاتی برای نمایش وجود ندارد">
12.                    <Columns>
13.                        <telerik:GridClientSelectColumn UniqueName="SelectColumn" Visible="true" />
14.                        <telerik:GridTemplateColumn HeaderText="ردیف" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="100px" Groupable="false">
15.                            <ItemTemplate><%# (Container.ItemIndex+1).ToString() %> </ItemTemplate>
16.                        </telerik:GridTemplateColumn>
17.                        <telerik:GridBoundColumn DataField="Food_ID_" Groupable="false" DataType="System.Int32" FilterControlAltText="Filter Food_ID_ column"
18.                            HeaderText="" ReadOnly="True" SortExpression="Food_ID_" UniqueName="Food_ID_" Visible="false" />
19.                        <telerik:GridBoundColumn DataField="Food_Name" Groupable="true" FilterControlAltText="Filter Food_Name column"
20.                            HeaderText="نام" SortExpression="Food_Name" UniqueName="Food_Name" />
21.                        <telerik:GridBoundColumn DataField="Food_Price" Groupable="true" FilterControlAltText="Filter Food_Price column"
22.                            HeaderText="قیمت" SortExpression="Food_Price" UniqueName="Food_Price" DataType="System.Int32" />
23.                        <telerik:GridBoundColumn DataField="Food_Image" Groupable="false" FilterControlAltText="Filter Food_Image column"
24.                            HeaderText="تصویر" SortExpression="Food_Image" UniqueName="Food_Image" />
25.                        <telerik:GridBoundColumn DataField="Food_User_ID" Groupable="false" SortExpression="Food_User_ID"
26.                            HeaderText="" UniqueName="User_ID" DataType="System.Int32" Visible="false" />
27.                        <telerik:GridBoundColumn DataField="Food_User_ID" Groupable="true" FilterControlAltText="Filter Food_User_ID column"
28.                            HeaderText="کاربر" SortExpression="Food_User_ID" UniqueName="UserFLName" DataType="System.Int32" />
29.                        <telerik:GridCheckBoxColumn DataField="Food_Status" Groupable="false" DataType="System.Boolean" FilterControlAltText="Filter Food_Status column"
30.                            HeaderText="وضعیت" SortExpression="Food_Status" UniqueName="Food_Status" />
31.                    </Columns>
32.                </MasterTableView>
33.                <FilterMenu></FilterMenu>
34.                <HeaderContextMenu RenderMode="Classic"></HeaderContextMenu>
35.            </telerik:RadGrid>

 

C#

01.protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
02.        {
03.            if (e.Item is GridDataItem)// to access a row
04.            {
05.                GridDataItem item = (GridDataItem)e.Item;
06.                if (RadGrid1.GroupingEnabled)
07.                {
08.                    item["UserFLName"].Text = LstUser.FindAll(x => x.User_ID_ == int.Parse(item["User_ID"].Text))[0].User_FName + " " + LstUser.FindAll(x => x.User_ID_ == int.Parse(item["User_ID"].Text))[0].User_LName;
09.                }
10.            }
11.}
Attila Antal
Telerik team
 answered on 09 Aug 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?