Hi,
I'm trying to use Gantt chart with client side binding to web service. First I tried to return some hardcoded data and it works fine, the tasks are shown on the chart. But in order to get the real data I need to send some additional data to the web service. I tried to do this just as shown in the docs (LINK), but as soon as I add this parameter to the functions:
IDictionary<
string
, object> context
no data will be shown on the chart and the debugger doesn't stop in the functions (f.e. GetTasks). I'm 99,(9) % sure I did everything exactly like in the example.
P.S. I'm using Sharepoint 2013, don't if it's important here.
I'd grateful for any help.
Maciek
Hello,
I am using Rad Grid version with Scrolling, Static Headers, and one Frozen Column. The grid shows Arabic data (from right to left).
The problem is that the grid does not show all columns. The horizontal scroll bar reaches the end, but not all columns are visible.
You can check the attached screenshot.
Appreciate your help,
Thanks,
Hello,
I have a radgrid where I added a button in the ItemCreated event for the grid.
<
p
>if (e.Item is GridCommandItem)<
br
> {<
br
> ImageButton b = new ImageButton();<
br
> b.ID = "Export";<
br
> b.ImageUrl = "images/excel.png";</
p
><
p
>b.CommandName = "Export";</
p
><
p
>e.Item.Controls[0].Controls[1].Controls.Add(b);<
br
> }</
p
>
When the image is clicked it calls the ItemCommand event:
protected void grdInventory_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)<
br
> {<
br
> if (e.CommandName == "Export")<
br
> {<
br
> //do stuff<
br
> }<
br
> }
I want to capture the filters or grouping for that grid and export them to excel in that event. I'd also like to ignore the paging. I know there is a default exportToExcel button for these grids, but I need to export to a template. Therefore, I want to write custom code in the ItemCommand event. Unless there is something built into radgrid that will allow me to export the results to a predefined template?
Thanks!
Hi All,
Reason why I wanted to preview it with img tag for I have a special CSS that is attached to it (I have no issue when I preview it with RadImageEditor).
<
script
type
=
"text/javascript"
>
var imageUploaded = false;
function OnClientFilesUploaded(sender, args) {
$find('<%=RadAjaxManager1.ClientID %>').ajaxRequest();
imageUploaded = true;
}
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
EnablePageHeadUpdate
=
"false"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadAjaxManager1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"imgProfile"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
img
id
=
"imgProfile"
runat
=
"server"
alt
=
"Profile"
src
=
"..\default.jpg"
/>
<
telerik:RadAsyncUpload
ID
=
"AsyncUpload1"
runat
=
"server"
OnClientFilesUploaded
=
"OnClientFilesUploaded"
OnFileUploaded
=
"AsyncUpload1_FileUploaded"
MaxFileSize
=
"1024000"
AllowedFileExtensions
=
"jpg,png,gif,bmp"
AutoAddFileInputs
=
"false"
Localization-Select
=
"Upload"
/>
Protected Sub AsyncUpload1_FileUploaded(sender As Object, e As FileUploadedEventArgs)
Using stream As Stream = e.File.InputStream
Dim imgData As Byte() = New Byte(stream.Length - 1) {}
stream.Read(imgData, 0, imgData.Length)
Dim ms As New MemoryStream()
ms.Write(imgData, 0, imgData.Length)
Context.Cache.Insert(Session.SessionID + "UploadedFile", ms, Nothing, DateTime.Now.AddMinutes(20), TimeSpan.Zero)
End Using
''Code for updating Img src???
End Sub
I did try to save first the file to a folder and then use the path for the img src but its not reflecting. I still need to do refresh just to make my img update its image.
I hope anyone can suggest for better solution.
Thanks in advance,
RJ
The code used is from already posted here. http://www.telerik.com/forums/excel-like-filtering-doesn't-fire-the-filterchecklistitemsrequested-event
The problem is I have got Excel like filtering to work for the radgrid But if I have a column already filtered in the radgrid and then another column is clicked for filtering then the dropdown should display onlt the distinct values from the already filtered values.But this doesn't seem to happen. It shows all the distinct values of the particular column even though it is not being display currently.
This behavior is correct with what is being shown in this demo https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/excel-like-filtering/defaultcs.aspx
I can see the when the apply/Clear filter is selected this data is being postback to the server. Can you tell me how I can get the column name and field so that I can store them and get the unique data from the filter conditions already set.
Can you suggest on how to achieve this functionality.
Thanks.