| if (e.Item is GridEditableItem && e.Item.IsInEditMode) | |
| { | |
| if (e.Item.OwnerTableView.IsItemInserted) | |
| { | |
| //item is about to be inserted | |
| GridEditableItem dataItem = (GridEditableItem)e.Item; | |
| RadNumericTextBox rntBorc = (RadNumericTextBox)dataItem.FindControl("tbBorc"); | |
| RadNumericTextBox rntAlacak = (RadNumericTextBox)dataItem.FindControl("tbAlacak"); | |
| rntBorc.Value = 0.00; | |
| rntAlacak.Value = 0.00; | |
| if (rntBorc != null) | |
| { | |
| rntBorc.Attributes.Add("onKeyPress", "return onKeyPressBorcInsert('" + rntBorc.ClientID + "', '" + rntAlacak.ClientID + "');"); | |
| } | |
| if (rntAlacak != null) | |
| { | |
| rntAlacak.Attributes.Add("OnKeyPress", "return onKeyPressAlacakInsert('" + rntBorc.ClientID + "', '" + rntAlacak.ClientID + "');"); | |
| } | |
| } | |
| } |
| function onKeyPressBorcInsert(rntBorcClientID, rntAlacakClientID) | |
| { | |
| } | |
| function onKeyPressAlacakInsert(rntBorcClientID, rntAlacakClientID) | |
| { | |
| } | |
| function onKeyPressBorcInsert(rntBorcClientID, rntAlacakClientID,eventArgs) | |
| { | |
| var x = eventArgs.get_inputText(); | |
| } |
< telerik:GridTableView DataKeyNames="imageID" DataSourceID="IssueScreenshotsDataSource" Width="100%"
|
||||||||||
| runat="server" CommandItemDisplay="Top" Name="Screenshots"> | ||||||||||
| <ParentTableRelation> | ||||||||||
| <telerik:GridRelationFields DetailKeyField="issueID" MasterKeyField="issueId" /> | ||||||||||
| </ParentTableRelation> | ||||||||||
| <CommandItemSettings AddNewRecordText="Add A Screenshot" /> | ||||||||||
| <Columns> | ||||||||||
| <telerik:GridTemplateColumn HeaderText="Image Name" UniqueName="filename"> | ||||||||||
| <ItemTemplate> | ||||||||||
| <asp:Label runat="server" ID="lblName" Text='<%# Eval("fileName") %>' /> | ||||||||||
| </ItemTemplate> | ||||||||||
| <EditItemTemplate> | ||||||||||
| <telerik:RadTextBox runat="server" Width="200px" ID="txbName" Text='<%# Bind("fileName") %>' /> | ||||||||||
| <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="txbName" | ||||||||||
| ErrorMessage="Please, enter a name!" Display="Dynamic" SetFocusOnError="true" /> | ||||||||||
| </EditItemTemplate> | ||||||||||
| <HeaderStyle Width="30%" /> | ||||||||||
| </telerik:GridTemplateColumn> | ||||||||||
| <telerik:GridBinaryImageColumn DataField="data" HeaderText="Screenshot" UniqueName="screenshot" | ||||||||||
| ImageAlign="NotSet" ImageHeight="60px" ImageWidth="60px" ResizeMode="Fit"> | ||||||||||
| </telerik:GridBinaryImageColumn> | ||||||||||
| <telerik:GridButtonColumn ConfirmText="Are you sure you wish to delete this Screenshot?" | ||||||||||
| ButtonType="imageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1"> | ||||||||||
| <ItemStyle HorizontalAlign="Center" /> | ||||||||||
| </telerik:GridButtonColumn> | ||||||||||
| </Columns> | ||||||||||
| </telerik:GridTableView> |
| PROCEDURE APPS_ISSUE_GET_SCRNSHOT_BY_FK ( |
| p_issue_id IN NUMBER, |
| cur_out OUT sys_refcursor |
| ) |
| IS |
| BEGIN |
| OPEN cur_out FOR |
| SELECT image_id imageID, issue_id issueID, file_data data, |
| file_name fileName |
| FROM apps_issue_screenshots |
| WHERE (issue_id = p_issue_id); |
| END; |
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. |
|
<telerik:RadGrid ID="RadGrid1" runat="server"
AllowCustomPaging="True"
AutoGenerateColumns="False"
AllowPaging="True"
AllowFilteringByColumn="True"
AllowSorting="True"
GridLines="None"
ShowGroupPanel="True"
GroupingEnabled="True"
ongridexporting="RadGrid1_GridExporting1"
onpdfexporting="RadGrid1_PdfExporting"
onpageindexchanged="RadGrid1_PageIndexChanged1"
ongroupschanging="RadGrid1_GroupsChanging" onneeddatasource="RadGrid1_NeedDataSource">
<
MasterTableView>
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
</
MasterTableView>
<
ClientSettings AllowDragToGroup="true">
</ClientSettings>
<
PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" />
<
FilterMenu EnableTheming="True">
<
CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</
FilterMenu>
</telerik:RadGrid>
Code:
public
void PopulateGrid()
{
DataSet ds = new DataSet();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM abc", "server=10.100.111.11;database=abcd;Uid=aa;pwd=aa;");
adapter.Fill(ds);
foreach (DataColumn col in ds.Tables[0].Columns)
{
GridBoundColumn gridboundcolumn = new GridBoundColumn();
gridboundcolumn.DataField = col.ColumnName;
gridboundcolumn.HeaderText = col.ColumnName
;
gridboundcolumn.UniqueName = col.ColumnName;
gridboundcolumn.SortExpression = col.ColumnName;
gridboundcolumn.Display =
true;
gridboundcolumn.Groupable =
true;
gridboundcolumn.GroupByExpression = gridboundcolumn.GetDefaultGroupByExpression();
RadGrid1.Columns.Add(gridboundcolumn);
}
RadGrid1.VirtualItemCount = 2000;
RadGrid1.DataBind();
}
<
telerik:RadListBox ID="RadListBox1" runat="server" Height="200px" />

| function GetRadWindow() { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well) |
| return oWindow; |
| } |
| function returnArg(arg) { |
| var oWnd = GetRadWindow(); |
| if (oWnd) { |
| oWnd.close(arg); |
| } |
| else { |
| alert('oWnD Null'); |
| } |
| } |