
I have a RadImageGallery that appears in a boostrap modal when a button is clicked. I want to load different sets of images based on the project that was selected.
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableEmbeddedjQuery="false" />
<div class="col-lg-12">
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel2">
<h2 class="Heading">Image Viewer</h2>
<telerik:RadImageGallery RenderMode="Lightweight" runat="server" ID="ImageViewerGallery" Height="473px" DisplayAreaMode="Image">
<Items></Items>
</telerik:RadImageGallery>
</telerik:RadAjaxPanel>
</div>
</form>
In jQuery, whenever I call
var imageGalleryItems = $find('<%=ImageViewerGallery.ClientID%>').get_items();
I get an error message "Cannot read property 'get_items' of null.
Any ideas?

Hello,
since I downloaded the latest version of Firefox, a few days ago, I see the checkboxes "duplicated" (2 squares for each checkbox).
How can I solve the problem?
Many thanks
Kurt

Hi,
We deployed a page with the editor with Document Manager in a shared hosting.
We can add/delete file but when try to move file, we get the error Nopermissionstomovefile.
Please refer to the attachment.
How can we fix this issue?
Thanks.

I am trying to consume a JSON service for client-side data binding.
The service requires a JWT token to be included in a 'Authorization' http header.
I'm assuming i need to implement something on <ClientEvents OnDataBinding="">, but i have little idea where to start.
Any help would be appreciated.
the dataservice is setup as follows
<DataService Location="http://localhost:39338/" DataPath="/list/notifications" EnableCaching="true" ResponseType="JSON" HttpMethod="Get" CountPropertyName="Count" DataPropertyName="Data" />
I have a Grid with a Binary Image and a Description field. Inserts work great, both binary image and description are saved correctly.
On updates, though, the description field is not getting updated, the "old" value is passed to the SqlDataSource, not the new edited value from the grid.
In other words... I add a record, with an image and a description (say, 'testing'). Verified it is saved in the database correctly (query in SQL Management Studio).
I then edit the record and change the description to 'Testing1234', tab off description field, click save, the new value is not saved, the old value 'testing' is.
I added some code to the SQL Datasources' OnInserting and OnUpdating events (see code below.)
On insert, the value of the @Description parameter is 'Testing' (when Testing is typed in the description.)
On update, changing the value in the Grid to 'Testing1234' and clicking the save button yields 'Testing' for the value of the @Description parameter in the OnUpdating event, not the new 'Testing1234' value entered in the Grid.
Any thoughts on why this is happening would be helpful. I've been staring at it now for 6 hours w/ no success, and other, similar Grids work fine (although this is my only grid which uses an Binary Image.)
My code:
<asp:SqlDataSource ID="SqlDataSource_Receipts" runat="server" ConflictDetection="CompareAllValues" OnInserting="SqlDataSource_Receipts_Inserting" OnUpdating="SqlDataSource_Receipts_Updating" ConnectionString="<%$ ConnectionStrings:Receipts %>" DeleteCommand="DELETE FROM Receipts WHERE Receipt_GUID = @Receipt_GUID" InsertCommand="INSERT INTO Receipts (Receipt_GUID, Employee_GUID, Description, ReceiptImage) VALUES (NEWID(), @Employee_GUID, @Description, @ReceiptImage)" SelectCommand="SELECT * FROM Receipts WHERE Employee_GUID = @Employee_GUID" UpdateCommand="UPDATE Receipts SET Description = @Description, ReceiptImage = CASE WHEN ISNULL(DATALENGTH(CONVERT(varbinary(MAX), @ReceiptImage)), -1) = -1 THEN ReceiptImage ELSE CONVERT(VARBINARY(MAX), @ReceiptImage) END WHERE Receipt_GUID = @Receipt_GUID"> <DeleteParameters> <asp:Parameter Name="Receipt_GUID" /> </DeleteParameters> <InsertParameters> <asp:ControlParameter ControlID="RadGrid_Employees" Name="Employee_GUID" PropertyName="SelectedValues['Employee_GUID']" DbType="Guid" /> <asp:Parameter Name="Description" /> <asp:Parameter Name="ReceiptImage" /> </InsertParameters> <SelectParameters> <asp:ControlParameter ControlID="RadGrid_Employees" Name="Employee_GUID" PropertyName="SelectedValues['Employee_GUID']" DbType="Guid" /> </SelectParameters> <UpdateParameters> <asp:Parameter Name="Receipt_GUID" /> <asp:Parameter Name="Description" /> <asp:Parameter Name="ReceiptImage" /> </UpdateParameters></asp:SqlDataSource>
The radgrid definition:
<telerik:RadGrid ID="RadGrid_Receipts" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource_Receipts" GridLines="None" Width="100%" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" AllowAutomaticDeletes="True" AllowSorting="True" OnItemDataBound="RadGrid_Receipts_ItemDataBound" CellSpacing="0" ShowStatusBar="True" ShowFooter="true" AutoGenerateDeleteColumn="False" AutoGenerateEditColumn="False"> <MasterTableView CommandItemDisplay="Bottom" AllowPaging="True" EditMode="InPlace" DataKeyNames="Receipt_GUID, Employee_GUID"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> <HeaderStyle Width="50px" /> <ItemStyle CssClass="MyImageButton" Width="50px" /> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delete this Receipt?" ConfirmTitle="Delete" Text="Delete" UniqueName="DeleteColumn"> <HeaderStyle Width="25px" /> <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" Width="25px" /> </telerik:GridButtonColumn> <telerik:GridBinaryImageColumn DataField="ReceiptThumb" HeaderText="Receipt Image" UniqueName="ReceiptThumb" ResizeMode="Fit" ImageWidth="100" ImageHeight="100" /> <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description" ItemStyle-Width="500px" HeaderStyle-HorizontalAlign="Center" /> </Columns> </MasterTableView></telerik:RadGrid>My Datasource onInserting/Updating events:
protected void SqlDataSource_Receipts_Inserting(object sender, SqlDataSourceCommandEventArgs e){ SqlParameter d = (SqlParameter)e.Command.Parameters["@Description"]; // d.Value = 'Testing' , correct, this is what I enter on the form.}protected void SqlDataSource_Receipts_Updating(object sender, SqlDataSourceCommandEventArgs e){ SqlParameter d = (SqlParameter)e.Command.Parameters["@Description"]; // d.Value = 'Testing' despite having typed 'Testing1234' in the RadGrid before clicking Save}
I'm using the code from the Telerik documentation to maintain the selected row, but it's not working properly. Instead of keeping the selected row, it's jumping to the top row in the table after each postback.
Here's the markup for the grid:
<telerik:RadGrid runat="server" ID="rgAdList" DataSourceID="sdsRgAdList" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowGroupPanel="True" OnSelectedIndexChanged="rgAdList_OnSelectedIndexChanged" OnPreRender="rgAdList_OnPreRender" OnItemCommand="rgAdList_OnItemCommand"> <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True"> <Selecting AllowRowSelect="True"></Selecting> <ClientEvents OnRowSelected="RowSelected"></ClientEvents> <ClientEvents OnFilterMenuShowing="filterMenuShowing" OnRowSelected="rgAdList_RowSelected" OnRowCreated="rgAdList_RowCreated" OnRowDeselected="rgAdList_RowDeselected" /> </ClientSettings> <FilterMenu OnClientShown="MenuShowing" /> <GroupingSettings CaseSensitive="False"></GroupingSettings> <PagerStyle AlwaysVisible="True"></PagerStyle> <MasterTableView DataKeyNames="mail" DataSourceID="sdsRgAdList"> <PagerStyle PageSizes="5, 10, 25, 50, 100, 200, 300, 400"></PagerStyle> <Columns> <telerik:GridBoundColumn DataField="givenName" HeaderText="First Name" SortExpression="givenName" UniqueName="givenName" FilterControlAltText="Filter givenName column" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="sn" HeaderText="Last Name" SortExpression="sn" UniqueName="sn" FilterControlAltText="Filter sn column" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="mail" ReadOnly="True" HeaderText="Email" SortExpression="mail" UniqueName="mail" FilterControlAltText="Filter mail column" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="title" HeaderText="Title" SortExpression="title" UniqueName="title" FilterControlAltText="Filter title column" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="department" HeaderText="Department" SortExpression="department" UniqueName="department" FilterControlAltText="Filter department column" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="manager" HeaderText="Manager" SortExpression="manager" UniqueName="manager" FilterControlAltText="Filter manager column" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid>
Here's the script I'm trying to get to work?
<script type="text/javascript"> function rgAdList_RowSelected(sender, args) { var id = args.getDataKeyValue("mail"); var selected = (JSON.parse(sessionStorage.getItem("selectedItems")) != null) ? JSON.parse(sessionStorage.getItem("selectedItems")) : {}; if (!selected[id]) { selected[id] = true; sessionStorage.setItem("selectedItems", JSON.stringify(selected)); } } function rgAdList_RowDeselected(sender, args) { var id = args.getDataKeyValue("mail"); var selected = JSON.parse(sessionStorage.getItem("selectedItems")); if (selected[id]) { selected[id] = null; sessionStorage.setItem("selectedItems", JSON.stringify(selected)); } } function rgAdList_RowCreated(sender, args) { var id = args.getDataKeyValue("mail"); var selected = JSON.parse(sessionStorage.getItem("selectedItems")); if (selected && selected[id]) { args.get_gridDataItem().set_selected(true); } }
Thanks, J


I'm hoping this is a silly error
this is the markup
<telerik:RadClientDataSource ID="ClaimsDataSource" runat="server" EnableServerPaging="true" EnableServerSorting="true" AllowPaging="true" > <DataSource> <WebServiceDataSourceSettings BaseUrl="http://localhost:39338/" > <Select Url="ui/list/claims" RequestType="Get" DataType="JSON" EnableCaching="true" /> </WebServiceDataSourceSettings> </DataSource> <Schema DataName="Data"> <Model> <telerik:ClientDataSourceModelField FieldName="DateofLoss" DataType="Date" /> </Model> </Schema></telerik:RadClientDataSource><telerik:RadGrid ID="grdCLaims" runat="server" ClientDataSourceID="ClaimsDataSource" AllowPaging="true" PageSize="2" AllowSorting="true" > <MasterTableView ClientDataKeyNames="ClaimItemID" DataKeyNames="ClaimItemID"> <Columns> <telerik:GridBoundColumn DataField="PolicyNumber" HeaderText="Policy Number" /> <telerik:GridBoundColumn DataField="ClientName" HeaderText="Client" /> <telerik:GridBoundColumn DataField="DateofLoss" HeaderText="Date of Loss" DataFormatString="{0:dd MMM yyyy}" /> </Columns> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> </ClientSettings></telerik:RadGrid>
this is the JSON that the service is returning
{ "Data":[ { "ClientName":"Ethan McWindsor", "PolicyNumber":"PUMA100558", "DateofLoss":"2015-12-09T00:00:00", "ClaimItemID":256, }, { "ClientName":"Ethan McWindsor", "PolicyNumber":"PUMA100558", "DateofLoss":"2016-11-25T00:00:00", "ClaimItemID":413, } ], "Count":2}no matter what i do, the service is getting called three times on the in initial page load
from the network log in chrome
http://localhost:39338/ui/list/claims?take=2&skip=0&page=1&pageSize=2http://localhost:39338/ui/list/claims?take=2&skip=0&page=1&pageSize=2http://localhost:39338/ui/list/claims?take=10&skip=0&page=1&pageSize=10
(there is nothing in the code-behind)
any ideas?

