<httpHandlers> <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false" /> <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" /> <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" /> </httpHandlers><system.webServer> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" /> <add name="Telerik_Web.UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" /> <add name="Telerik_Web.UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" /> </system.webServer>
I have a requirement to display to seperate RadGrids, which I can do successfully (https://www.telerik.com/forums/displaying-the-same-grid-on-two-different-pages)
But now I need to be able to export both to PDF & Excel from the CommandItemTemplate LinkButton. This process works of course for one of the Grids but not both. How do I get that CommandItem to fire for both my grids?

I tried to create responsive radgrid on mobile but all solutions so far failed. I have combined several suggestions I found in forums and internet now into a new CSS which create a fully responsive grid on desktop, mobile and tablet.
See the attached files for some screenshots.
The CSS:
<style>
.RadGrid {
min-width: inherit;
}
.RadGrid table {
border-collapse: collapse;
width: 100%;
}
.RadGrid th {
background-color: #eee;
font-weight: bold;
}
.RadGrid th,
.RadGrid td {
border: 0em none #333;
line-height: 1.5;
padding: 0.25em;
text-align: left;
}
html body .RadGrid .rgRow,
html body .RadGrid .rgAltRow,
html body .RadGrid .rgEditRow,
html body .RadGrid .rgFooter,
html body .RadGrid .rgHeader,
html body .RadGrid .rgGroupHeader
{
height: auto;
}
/* Stack rows vertically on small screens */
@media only screen and (min-width: 40em) and (max-width: 60em) {
/* Hide column labels */
.RadGrid thead tr {
position: absolute;
top: -9999em;
left: -9999em;
}
.RadGrid tr {
border: 0.125em solid #333;
}
/* Leave a space between table rows and rows and pager */
.RadGrid tr + tr
{
margin-top: 0em;
}
.RadGrid .rgPager {
margin-top: 1em;
}
/* Get table cells to act like rows */
.RadGrid tr,
.RadGrid td {
display: block;
}
.RadGrid td {
border: none;
border-bottom: 0.125em none #333;
/* Leave a space for data labels */
padding-left: 50%;
}
/* Add data labels */
.RadGrid .rgRow td:before,
.RadGrid .rgAltRow td:before {
content: attr(data-label);
float: left;
font-weight: bold;
}
.RadGrid .rgRow > td,
.RadGrid .rgAltRow > td {
display: block;
border-top: 1px solid ;
text-align: right;
padding: .25em .4375em
}
/* Show only the current page number*/
.RadGrid .rgWrap.rgNumPart a:not(.rgCurrentPage) {
display: none;
}
.RadGrid .rgWrap.rgAdvPart {
margin-top: 4px;
}
}
/* Stack labels vertically on smaller screens */
@media only screen and (max-width: 40em) {
/* Hide column labels */
.RadGrid thead tr {
position: absolute;
top: -9999em;
left: -9999em;
}
.RadGrid tr {
border: 0.125em none #333;
}
/* Leave a space between table rows and rows and pager */
.RadGrid tr + tr
{
margin-top: 0em;
}
.RadGrid .rgPager {
margin-top: 1em;
}
/* Get table cells to act like rows */
.RadGrid tr,
.RadGrid thead tr,
.RadGrid td {
display: block;
}
.RadGrid td {
border: none;
border-bottom: 0.125em none #333;
/* Leave a space for data labels */
padding-left: 50%;
padding: .25em .4375em;
}
/* Add data labels */
.RadGrid td:before {
content: attr(data-label);
display: inline-block;
font-weight: bold;
line-height: 1.0;
width: 100%;
}
/* Show only the current page number*/
.RadGrid .rgWrap.rgNumPart a:not(.rgCurrentPage) {
display: none;
}
.RadGrid .rgWrap.rgAdvPart {
margin-top: 4px;
}
html body .RadGrid .rgHeader,
html body .RadGrid .rgGroupHeader
{
height:150px;
}
}
</style>

I having having some issue with the filter of RadGrid.
When i type ‘ the result is showing no data found which is what i wanted.
but if i type something like abc.get(‘abc’); or ‘) OR 1=1 -- the filter textbox get cleared and all result is shown. Would like to check other than this, is there anyway to not clear the filter textbox and for the result to show no data found instead?

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderBody" runat="Server"> <script type="text/javascript"> function getvalue() { var combo = <%=RadComboBox1.ClientID %>; alert(combo.SelectedItem); alert( document.getElementById(combo.UniqueID + "_value").value ); } </script> <telerik:RadComboBox ID="RadComboBox1" runat="server"> <Items> <telerik:RadComboBoxItem Text="Item1" Value="Value1" /> <telerik:RadComboBoxItem Text="Item2" Value="Value2" /> <telerik:RadComboBoxItem Text="Item3" Value="Value3" /> </Items> </telerik:RadComboBox> <input id="Button1" type="button" value="button" onclick="getvalue();" /> </asp:Content>
<script>function rtbClientDebts_ButtonClick(sender, args) { var button; button = args.get_item(); ProcessGridCommand (button.get_commandName()); }</script><telerik:RadToolBar runat="server" ID="rtbClientDebts" Skin="Metro" Width="100%" OnClientButtonClicked="rtbClientDebts_ButtonClick" EnableViewState="false"> <Items> <%----- OLD BUTTON -----%> <telerik:RadToolBarButton runat="server" Text="Add" CommandName="AddCreditor" SearchName="AddCreditor" Enabled="True" /> <%----- NEW DESIRED BUTTON -----%> <telerik:RadToolBarButton> <ItemTemplate> <telerik:RadButton runat="server" Text="Add" CommandName="AddCreditor" SearchName="AddCreditor" Enabled="True"> <Icon PrimaryIconCssClass="rbAdd" /> </telerik:RadButton> </ItemTemplate> </telerik:RadToolBarButton></Items></telerik:RadToolBar>
We have a RadCloudUpload control that saves files to an S3 bucket. A postback is done afterwards by a save button. Works fine on dev machines.
On the AWS servers, some files get deleted after upload and save, but not all.
I uploaded 18 files today, 17 of them got deleted after the UncommitedFilesExpirationPeriod (which is set to 1 hour). This was during the day, when we run 16 web servers in a load balanced server group.
I tried later in the evening, when we reduce it to 2 web servers in the group. At that point, I uploaded 18 files again, and 9 were deleted.
That made me suspect that the problem is that the postback is done to a different webserver, and thus the RadUploadControl does not set the files as committed. Does that seem likely? If not, what could be the cause of this?
And more importantly, how should I solve it? I looked in the forum here and found how to override the DeleteFile method, which works... but then how do I allow users to delete files (which seems to work by simply never committing the file and then deleting it from S3 after the UncommitedFilesExpirationPeriod ).
Thanks.
I found this thread but couldn't get the behavior I wanted.
I would like to debounce requests to a WebService method I attached to a RadComboBox.
I am using Lodash and Underscore.js' "debounce" function, but I find that each keypress or even focus on the RadComboBox (perhaps I should set_cancel(true) on focus).
My current setup is:
HTML:
1.<telerik:RadComboBox OnClientItemsRequesting="requesting" EnableLoadOnDemand="true" AllowCustomText="true" ItemRequestTimeout="0">2. <WebServiceSettings Path="Service.asmx" Method="GetData">3. </WebServiceSettings>4.</telerik:RadComboBox>
JS:
01.function requesting(sender, args) {02. let context = args.get_context();03. context["FilterString"] = args.get_text();04. 05. // Set a delay before requesting items06. let debounceTimer = 1000;07. 08. // Begin debouncing09. _.debounce(setContext, debounceTimer);10.}11. 12.function setContext(sender, args) {13. var context = args.get_context();14. if (!sender.prefix)15. sender.prefix = "";16. if (!window.event || sender.directcall) {17. sender.prefix = args.get_text();18. }19. var id = sender.get_id();20. // Limit minimum character length to 321. if (sender.prefix.length < 3) {22. // Ensure clear is only called when backspacing to an empty value23. if (window.event && window.event.type != "click") {24. clearText(); // Clear results if nothing is typed in25. }26. args.set_cancel(true); // cancel server call if nothing typed in27. return false;28. }29. context["prefix"] = sender.prefix;30. return true;31.}
Is there something I am missing/incorrect in my setup?
The pseudocode I am thinking goes along the lines of:
1. Type at least 3 or more characters in the combo box input
2. Wait 1000ms
3. If another key is entered within 1000ms, reset debounce timer
4. Else proceed call to WebService method
5. Combo box populated
window.OnClientAppointmentsPopulating = function (sender, eventArgs) { var combobox = $find("<%=ddlCatToShow.clientID %>"); var list = ""; var items = combobox.get_items(); var array = combobox._checkedIndices.toString().split(',') for (var i = 0; i < array.length-1; i++) { var item = items.getItem(array[i]); //alert(item.get_text()); //alert(item.get_value()); list += item.get_value() + ","; } eventArgs.get_schedulerInfo().CategoryList = list.replace(/,\s*$/, "");};
| protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) |
| { |
| //Get the GridEditableItem of the RadGrid |
| GridEditableItem editedItem = e.Item as GridEditableItem; |
| //Get the Primary Key associated with the edited row |
| //Get the Control Values for the associated rows |
| //Insert and update soem information in the database |
| } |
| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem && e.Item.OwnerTableView.DataSourceID == "SQLDataSourceParent") |
| { |
| //Get the GridEditableItem of the RadGrid |
| GridDataItem dataItem = e.Item as GridDataItem; |
| //Get the primary key value of the row using the DataKeyValue. |
| //Set the Template Column values based on database records |
| } |
| } |
