<telerik:RadWindow ID="RadWindow1" runat="server" OpenerElementID="RadButton1"> <ContentTemplate> <br /> <br /> <telerik:RadComboBox ID="RadComboBox1" runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"> <Items> <telerik:RadComboBoxItem runat="server" Text="Item A" /> <telerik:RadComboBoxItem runat="server" Text="Item B" /> <telerik:RadComboBoxItem runat="server" Text="Item C" /> </Items> </telerik:RadComboBox> </ContentTemplate></telerik:RadWindow><telerik:RadButton ID="RadButton1" runat="server" Text="Open RadWindow"></telerik:RadButton><script type="text/javascript"> function OnClientSelectedIndexChanged(sender, args) { alert("OnClientSelectedIndexChanged Fired"); }</script>Hello,
I would like to change the binding of the ItemTemplate of a GridTemplateColumn in code behind. I am trying to use the click event of a button outside of the grid to change the binding. On the button click, I would like change the Text value of the ItemTemplate to '<%#Eval("Choose")%>'. Please assist.
APSX:
<telerik:GridTemplateColumn HeaderText="SSA Decision" SortExpression="SSA_Decision" UniqueName="SSA_Decision"><ItemTemplate> <asp:Label ID="lblSSADecision" runat="server" Text='<%#Eval("SSA_Decision")%>' /></ItemTemplate><EditItemTemplate> <telerik:RadComboBox runat="server" ID="cboSSADecision" Skin="WebBlue" Width="105px"> <Items> <telerik:RadComboBoxItem Text="Yes" Value="True" /> <telerik:RadComboBoxItem Text="No" Value="False" /> <telerik:RadComboBoxItem Text="Please Choose" Value="Choose" Selected="true" /> </Items> </telerik:RadComboBox></EditItemTemplate></telerik:GridTemplateColumn>Thanks!

Hi,
I am having issues when I click on Enter key to goto the new line and then when I use BackSpace key it does not work.
I see that its working in your demo.
I have the latest Telerik web.ui/design/skin dlls.
Thanks for your help!
==============================
This is my RadEditor control code
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<div class="demo-container size-wide">
<telerik:RadEditor ContentAreaMode="Div" runat="server" ID="RadEditor1" SkinID="DefaultSetOfTools" EditModes="Design" ToolTip="XML Editor"
Height="515px" CssClass="centered-editor" Width="99%" Skin="WebBlue" NewLineMode="Br" OnClientPasteHtml="OnClientPasteHtml" StripFormattingOnPaste="NoneSupressCleanMessage" StripFormattingOptions="NoneSupressCleanMessage">
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Print" Text="Print" />
<telerik:EditorTool Name="Cut" Text="Cut" />
<telerik:EditorTool Name="Copy" Text="Copy" />
<telerik:EditorTool Name="Zoom" Text="Zoom" />
</telerik:EditorToolGroup>
</Tools>
<ImageManager ViewPaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"
UploadPaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"
DeletePaths="~/Editor/images/UserDir/Marketing,~/Editor/images/UserDir/PublicRelations"></ImageManager>
<CssClasses>
<telerik:EditorCssClass Name="Red Text" Value=".redText"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="Table Class" Value=".table"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="Div Class" Value=".div"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="Image Class" Value=".image"></telerik:EditorCssClass>
<telerik:EditorCssClass Name="List Class" Value=".listSquare"></telerik:EditorCssClass>
</CssClasses>
</telerik:RadEditor>
function OnClientPasteHtml(editor, args) {
var commandName = args.get_commandName();
// Paste command is the one that handles plain paste, e.g., when Ctrl+V is used.
if (commandName === "Paste") {
var htmlToBePasted = args.get_value(); // Get the value to be pasted
// Use Regex to strip <strong>, <em> and <span> tags.
htmlToBePasted = htmlToBePasted.replace(/^( )+/, '');
// Set the processed content to the arguments.
args.set_value(htmlToBePasted);
}
}
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
I have following code structute
<telerik:RadGrid ID="xx"> <MasterTableView CommandItemDisplay="Top" DataKeyNames="Key"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <CommandItemTemplate> <telerik:RadToolBar ID="yy" runat="server" AutoPostBack="true" Width="100%"> <Items> <telerik:RadToolBarButton CommandName="InitInsert" ResourceName="Add" ImageUrl="~/App_Themes/Default/Add.gif" Text="Add" ></telerik:RadToolBarButton> </Items> </telerik:RadToolBar> ....................Cont....
How can I hide RadToolBarButton using C# code ? how can I access this toolbar button if its inside Grid/MasterTable/Toolbar hirarchi

Has there been a change to the height of the command bar for the grid with the Material theme? I did a test install and one of the issues that I have with it is that the command bar height seems to be the same as any content. Before there was some padding or a margin to force some extra height to it. I'm interested to hear if this is a bug or if there has been a change to the skin.
Regards
Jon


Please see this page to demo some size issues. Something in the popup form is causing the font size to increase. Make sure skin is set to Material.
http://demos.telerik.com/aspnet-ajax/spell/examples/overview/defaultcs.aspx
Interestingly the buttons are set to inherit the font size, not sure why but the css inspection doesn't reveal what the source of the increased size is.
Regards
Jon
Hi,
I have a project which allows upload of large files using drag and drop functionality and saves it to the file system. I use RadProgressArea to show the upload progress for these large files. When I drag and drop a huge video file in the drop zone, the radprogressarea starts displaying the progress, while the file is still uploading I drag another file to the drop zone. The RadProgressArea hangs and loses the first file which was uploading. It works good without any issue when I chose multiple large files and drag and drop in the drop zone at the same time.Can anyone let me know what I am missing?
(I am using Telerik for asp.Net version 2016.1.225.45)
Thanks
Vidya
I'm currently going through updating an application that was using RadGrid.Net2 and RadChart.Net2, to be using the latest release of Telerik ASP.NET AJAX Grid and Chart controls.
So far I've encountered numerous issues with skinning of the Grid, and am now experiencing issues with some of the databinding and controls usage for the grid which I'm hoping you could advise on.
One of the failing instances of the RadGrid used to use the following code:-
<radG:RadGrid id="GridOutcomes" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" Skin="Default" OnNeedDataSource="GridOutcomes_NeedDataSource" OnItemCommand="GridOutcomes_ItemCommand" OnItemDataBound="GridOutcomes_ItemDataBound" Visible="False"><MasterTableView DataSourcePersistenceMode="NoPersistence"><Columns><radG:GridBoundColumn DataField="ID" HeaderText="Case" UniqueName="columnId" Visible="False" /> <radG:GridTemplateColumn DataField="GmcCode" HeaderText="GMC" UniqueName="columnGMC" SortExpression="GmcCode"> <ItemStyle HorizontalAlign="Left" /> <HeaderStyle HorizontalAlign="Left" /> <ItemTemplate> <des:Button ID="ButtonDrillDown" runat="server" CssClass="linkButtonNoValidate showInPrint" CommandName="DrillDown" Text='<%#((string)Eval("GmcCode")) + " "%>' CausesValidation="false" /> </ItemTemplate></radG:GridTemplateColumn><radG:GridBoundColumn DataField="FormattedName" HeaderText="Name" UniqueName="columnName" /></MasterTableView><PagerStyle Mode="NextPrevAndNumeric" /></radG:RadGrid>With the Telerik DLLs updated, I've noticed that the 'DataSourcePersistenceMode' property is no longer valid for the MasterTableView.
Also, when the application runs, clicking on one of the row buttons which calls 'GridOutcomes_ItemCommand' no longer is able to extract the correct value from the grid, and the value returned is the Empty Cell Default Value.
01.protected void GridOutcomes_ItemCommand(object source, GridCommandEventArgs e)02.{03. Logger.Write(User.Identity.Name + ": SearchPersonnel:GridOutcomes_ItemCommand", Defines.LoggingCategoryMain);04. 05. switch(e.CommandName)06. {07. case "DrillDown":08. try09. {10. GridDataItem gridItem = e.Item as GridDataItem;11. TableCell cell = gridItem[GridOutcomes.Columns[(int)GridColumn.PersonnelId].UniqueName];12. 13. int personnelId = 0;14. if(int.TryParse(cell.Text, out personnelId))15. {16. ApplicationStore.Instance.SelectedPersonnel = new Personnel(new PersonnelRecord(), personnelId);
Could you please advise on what I should do to replace the missing DataSourcePersistenceMode property in order to retain the same functionality, and also could you please let me know if you have a guide on migrating from the .Net2 versions of the RadGrid and RadChart to the up to date releases since I'm guessing I'm going to find a lot of issues when I get to testing the chart control.
Thanks,
Jonathan
