Hi All,
I'm generating a PDF using my own code which is fired by a gridcolumbutton. The PDF is created on the server side without any issue but doesn't export the file Client side.
CodeSnip
filename = "pdf_sample_" & TEST & ".pdf"
TEST_UtilityClass.generateTESTPDF(strPath,SampleName )
' strPath is serverpath
Response.ContentType = "application/pdf"
Response.AddHeader("Content-Disposition", "attachment;filename=" & filename)
Me.EnableViewState = False
Response.WriteFile(strPath)
Response.Flush()
Response.Close()
I have a simple site running on IIS with Windows Authentication enabled. When I try to use the RadFileExplorer upload it prompts the for user credentials.
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"
Configuration-DeletePaths="~/PCardFiles"
Configuration-UploadPaths="~/PCardFiles"
Configuration-ViewPaths="~/PCardFiles"
Height="300px"
TreePaneWidth="180px"
Width="99%">
<configuration maxuploadfilesize="2000000" searchpatterns="*.*"></configuration>
</telerik:RadFileExplorer>
I'm fairly certain I've given all the permissions that I need to for the AppPool, users, etc. Can anyone let me know what I might be missing? Thanks!
Hi,
I need to get the rowindex of the RadGrid when the RadCombobox from the ItemTemplate is Selected
I need on the Client Side only
Hi.
I have a grid and i want to create a inline drop down. I cannot add drop down editor to the field in the grid. Can you please let me know where i am incorrect in this.
<div id="partnerGrid"></div>
function mpnDropDownEditor(container, options) {
$('<input required name="' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataTextField: "MPN_ID",
dataValueField: "MPN_ID",
dataSource: {
type: "odata",
transport: {
read: dsMPNID
}
}
});
}
var dsMPNID = new kendo.data.DataSource({
transport: {
read: {
// the remote service url
url: $.appConfig.ServiceUri + "/GetMPNIDs",
// the request type
type: "odata",
// the data type of the returned result
dataType: "jsonp",
}
},
// describe the result format
schema: {
// the data, which the data source will be bound to is in the "list" field of the response
data: "MPN_ID"
}
});
dsPartnerGrid = new kendo.data.DataSource({
serverFiltering: true,
serverPaging: true,
serverSorting: true,
autoBind: false,
batch: false,
autoSync: true,
pageSize: 30,
schema: {
model: {
id: "MPN_ID",
fields: {
"MPN_ID": { type: "string", editable: true, validation: { required: true } },
}
}
},
type: "odata",
transport: {
read: {
url: $.appConfig.ServiceUri + "/GPLs",
dataType: "jsonp"
}
},
requestEnd: function (e) {
if (typeof (e.response) == 'undefined')
return;
if (e.response == null)
return;
if (typeof (e.response.d) == 'undefined')
return;
if (e.response.d.length == 0)
return;
}
})
$("#partnerGrid").kendoGrid({
dataSource: dsPartnerGrid,
pageable: true,
height: 550,
//filterable: {
// mode: "row"
//},
toolbar: ["create"],
columns: [
{ command: ["edit", "destroy"], title: " ", width: "150px" },
{ field: "MPN_ID", title: "MPN_ID", width: "150px", editor: mpnDropDownEditor, template: "#=Mpn.MPN_ID#"},
],
editable: "inline"
});
We're wanting to use RadEditor as a robust TextArea replacement, and we want the user to have access to the full array of tools, but only if they ask for them by clicking on an icon.
We're doing this now, by hiding all of the EditorTool buttons when the Editor is loaded, but this is leaving behind a bunch of empty EditorToolGroups. Is there a way to show/hide an EditorToolGroup instead?
var oTool; oTool = editor.getToolByName("Undo"); if (oTool) oTool.get_element().style.display = "none";
I've attached screenshots of what it looks like when the toolbars are closed and opened.
I Have Two RadComboboxes (One Country Dropdown and State Dropdown)
1)Grid is binded on the Client side
2)Need to Bind the Country Dropdown using JqueryAjax Call
3)Need to Bind the State Dropdown based on the country selected Using JQuery Ajax Call
4)I dont want to use PageMethods
Hi All,
I'm using a RADGRID and the detail table is not expanding when i put this code below in. if i remove this code the detail grid expands without any issues with the correct data.
Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs)
If TypeOf e.Item Is GridDataItem Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
If item("Status").Text = "Unknown" Then
item("Test").Text = ""
End If
End If
End Sub
protected
void
gridItems_EditCommand(
object
source, GridCommandEventArgs e)
{
GridEditableItem editableItem = e.Item
as
GridEditableItem;
string
status = e.Item.Cells[6].Text;
//i mapped this out, 6 is the Status column value.
switch
(status.ToLower())
{
case
"rejected"
:
//TODO: disable the UI for editing my particular columns here:
// GridCheckBoxColumn
// GridDropDownColumn
// GridTemplateColumn
break
;
}
}
I would like to use RadGrid in Batch Edit mode.
Here is my code:
<
telerik:RadGrid
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"gvOpSetting"
AutoGenerateColumns
=
"false"
AllowPaging
=
"true"
MasterTableView-TableLayout
=
"Fixed"
OnNeedDataSource
=
"gvOpSetting_NeedDataSource"
AllowMultiRowSelection
=
"true"
OnItemDataBound
=
"gvOpSetting_ItemDataBound"
OnItemCommand
=
"gvOpSetting_ItemCommand"
>
<
MasterTableView
NoMasterRecordsText
=
"No Data!!"
DataKeyNames
=
"WStationID,CtrlOrder"
CommandItemDisplay
=
"Top"
EditMode
=
"Batch"
AutoGenerateColumns
=
"false"
Width
=
"500px"
>
<
BatchEditingSettings
EditType
=
"Cell"
OpenEditingEvent
=
"Click"
/>
<
Columns
>
<
telerik:GridEditCommandColumn
UniqueName
=
"EditCommandColumn"
Visible
=
"false"
>
</
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"WStationID"
Visible
=
"false"
HeaderStyle-Width
=
"250px"
/>
<
telerik:GridBoundColumn
DataField
=
"CtrlOrder"
Visible
=
"false"
/>
<
telerik:GridBoundColumn
DataField
=
"CtrlItem"
HeaderText
=
"CtrlItem"
/>
<
telerik:GridNumericColumn
DataField
=
"StandardValue"
HeaderText
=
"StandardValue"
SortExpression
=
"StandardValue"
UniqueName
=
"StandardValue"
>
</
telerik:GridNumericColumn
>
<
telerik:GridNumericColumn
DataField
=
"TolerancePlus"
HeaderText
=
"TolerancePlus"
SortExpression
=
"TolerancePlus"
UniqueName
=
"TolerancePlus"
>
</
telerik:GridNumericColumn
>
<
telerik:GridNumericColumn
DataField
=
"ToleranceMinus"
HeaderText
=
"ToleranceMinus"
SortExpression
=
"ToleranceMinus"
UniqueName
=
"ToleranceMinus"
>
</
telerik:GridNumericColumn
>
</
Columns
>
<
NoRecordsTemplate
>
<
table
width
=
"300px"
border
=
"0"
cellpadding
=
"20"
cellspacing
=
"20"
>
<
tr
>
<
td
align
=
"center"
>
<
h2
style
=
"color: black; font-size: xx-large; font-weight: bold;"
>No Data!!</
h2
>
</
td
>
</
tr
>
</
table
>
</
NoRecordsTemplate
>
</
MasterTableView
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
/>
<
ClientSettings
EnableRowHoverStyle
=
"false"
EnablePostBackOnRowClick
=
"true"
AllowKeyboardNavigation
=
"true"
>
<
ClientEvents
OnRowDblClick
=
"rowDblClick"
OnPopUpShowing
=
"onPopUpShowing"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
When I click cell into edit mode, a textbox show for a second, then it closed immediately.
I couldn't edit at all.
Which setting did I miss?