Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
We are using the Office2010Black skin and the tree view on a white background -- and the opening and closing branch icons don't show up well.  Is there an easy way to use just the open/closing icon from another skin?  or custom icons?  At this point we don't want to change the background color.

Thanks,
Todd.
Princy
Top achievements
Rank 2
 answered on 08 Dec 2011
5 answers
164 views
Hi,
I am using "Transfer to multiple RadListBoxes using Drag and Drop" feature. I got a jQuery function from Telerik team for this.

After implementing this i am not able to get the transfered listbox item either in client side or in serverside.

How can i get the selected/checked items from any of the listboxes?
Rakesh
Top achievements
Rank 1
 answered on 08 Dec 2011
4 answers
457 views
My query string in the window.open is not working correctly,
but my real issue is being able to grab the first column's cell value
when someone clicks in a cell on the grid.  So var SITE wouldn't be hard coded, it would get the value
on the client side to pass to the window.open..
I found an example from 2008 on the site, but I can't get it to work
even if I completly replace my code with it.  Any help is appreciated.

<script type=
"text/javascript" >
      function RowClick(sender, args)
      {
          var grid = sender;
          var MasterTable = sender.get_masterTableView();
          var cellindex = args.get_domEvent().target.cellIndex
          var DOS = MasterTable.get_columns()[cellindex].get_uniqueName();
          var SITE = "140006"
          window.open("'Detail.aspx?1=" & DOS & "&2=" & SITE & "',newwindow","toolbar=no,location=no,menubar=no,width=300,height=300,resizable=no,scrollbars=no,top=200,left=250");return false;
      }
   </script>
Princy
Top achievements
Rank 2
 answered on 08 Dec 2011
1 answer
128 views
I have one webform.  I would like to know if its possible to place part of a webform in a radwindow popup.  So just say I have a panel with controls in it.  Can I display the panel in a radwindow.

Princy
Top achievements
Rank 2
 answered on 08 Dec 2011
3 answers
161 views
I need to get the column header and the cell value of the row header (hidden column 0 cell text) for when someone clicks on the grid.

The examples I can find for this just don't work, maybe they are for the old radgrid and not for the new AJAX grid? 
I will do it client or server side.

When i try to do it server side I fail to get the column name and when I try to do it client side I can't get the hidden(visible = false) column(0)'s value for that row.
Any help is appreciated, I have been strugling with this for days.


Shinu
Top achievements
Rank 2
 answered on 08 Dec 2011
1 answer
130 views
I can't seem to get my old code for adding a literal to the new grid control I updated yesterday (in my case a message that customer 123 was deleted when done so). Is there a different way or something I'm missing? Here's the code:
Private Sub DisplayMessage(text As String)
        grdList.Controls.AddAt(0, New LiteralControl(String.Format("<span style='color:red'>{0}</span>", text)))
    End Sub

Thanks for any help in advanced!
Shinu
Top achievements
Rank 2
 answered on 08 Dec 2011
1 answer
96 views
Hi,

I'm currently trying to create an example page using the RadGrid control.  I'm basing the demo on your own here, the only difference being that I'm only using a single detail level, instead of two.  Unfortunately though, I can't seem to get and detail rows to show up at all! When I click to expand the row, I get the column headings but no actual data.  The mark-up I'm using is as follows:

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="SqlDataSource1" GridLines="None" AutoGenerateColumns="False">
    <MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="JOB_ID" HierarchyLoadMode="ServerBind" AutoGenerateColumns="false">
        <DetailTables>
            <telerik:GridTableView DataSourceID="SqlDataSource2" Width="100%" runat="server" HierarchyLoadMode="ServerBind" AutoGenerateColumns="false">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="JOB_ID" MasterKeyField="JOB_ID" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="SET_TIME" HeaderText="SET_TIME" HeaderButtonType="TextButton" DataField="SET_TIME" UniqueName="SET_TIME" />
                    <telerik:GridBoundColumn SortExpression="NODE_NAME" HeaderText="NODE_NAME" HeaderButtonType="TextButton" DataField="NODE_NAME" UniqueName="NODE_NAME" />
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>                    
            <telerik:GridBoundColumn SortExpression="JOB_ID" HeaderText="JOB_ID" HeaderButtonType="TextButton" DataField="JOB_ID" UniqueName="JOB_ID" />
            <telerik:GridBoundColumn SortExpression="PROCESS_NAME" HeaderText="PROCESS_NAME" HeaderButtonType="TextButton" DataField="PROCESS_NAME" UniqueName="PROCESS_NAME" />                    
        </Columns>
    </MasterTableView>            
</telerik:RadGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
    SelectCommand="SELECT [JOB_ID], [PROCESS_NAME] FROM [JOB]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
    SelectCommand="SELECT [SET_TIME], [NODE_NAME] FROM [JOB_HISTORY] WHERE ([JOB_ID] = @JOB_ID)">
    <SelectParameters>
        <asp:SessionParameter Name="JOB_ID" SessionField="JOB_ID" Type="Object" />
    </SelectParameters>
</asp:SqlDataSource>

Thanks for your help.
Princy
Top achievements
Rank 2
 answered on 08 Dec 2011
1 answer
148 views
I have a dropdown whose datasource i'm trying to link to the selection of another drop down.
When I add a record the user selects a customer - I then want the category dropdown to populate based on which customer is selected.   I cannot seem to get this to work.   Please advise.

ASPX Code -






<

 

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 

 

 

<div align="center" style="width: 100%">

 

<

 

 

br />

 

<

 

 

table style="width: 100%">

 

 

 

<tr>

 

 

 

<td align="right" style="width: 25%">

 

 

 

<asp:Label ID="Label1" runat="server" Text="Customer:" SkinID="mediumlbl"></asp:Label>&nbsp;</td>

 

 

 

<td align="left" style="width: 25%">

 

 

 

<asp:DropDownList ID="dropCustomer" runat="server" SkinID="RegDrop"

 

 

 

AutoPostBack="True">

 

 

 

</asp:DropDownList>

 

 

 

</td>

 

 

 

<td align="right" style="width: 25%">

 

 

 

<asp:Label ID="Label4" runat="server" Text="Active:" SkinID="mediumlbl"></asp:Label>&nbsp;</td>

 

 

 

<td align="left" style="width: 25%">

 

 

 

<asp:DropDownList ID="dropActive" runat="server" SkinID="RegDrop"

 

 

 

AutoPostBack="True">

 

 

 

<asp:ListItem Selected="True" Value="1">Active</asp:ListItem>

 

 

 

<asp:ListItem Value="0">Deleted</asp:ListItem>

 

 

 

</asp:DropDownList>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

<

 

 

hr />

 

 

 

<asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>

 

 

 

<br />

 

 

 

<table style="width: 80%" align="center">

 

 

 

<tr>

 

 

 

<td align="left">

 

 

 

<asp:Button ID="btnExcel" runat="server" Text="Export to Excel" />

 

 

 

</td>

 

 

 

<td align="center">

 

 

 

<asp:Button ID="btnWord" runat="server" Text="Export to Word" />

 

 

 

</td>

 

 

 

<td align="right">

 

 

 

<asp:Button ID="btnCSV" runat="server" Text="Export to CSV" />

 

 

 

</td>

 

 

 

</tr>

 

</

 

 

table>

 

<

 

 

br />

 

 

 

<telerik:RadGrid ID="RadCustomerParts" runat="server" AllowSorting="True"

 

 

 

GridLines="None" Skin="WebBlue"

 

 

 

DataSourceID="dsCustomerParts" OnItemCommand="RadCustomerParts_ItemCommand"

 

 

 

AutoGenerateColumns="False" AllowPaging="True" PageSize="20"

 

 

 

AllowFilteringByColumn="True" >

 

 

 

<GroupingSettings CaseSensitive="false" />

 

<

 

 

HeaderContextMenu>

 

<

 

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

 

HeaderContextMenu>

 

<

 

 

GroupingSettings CaseSensitive="False"></GroupingSettings>

 

 

 

<ExportSettings ExportOnlyData="True" FileName="Customer Parts"

 

 

 

IgnorePaging="True" OpenInNewWindow="True">

 

 

 

</ExportSettings>

 

<

 

 

MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="CustomerPartNumberID" DataSourceID="dsCustomerParts" >

 

 

 

<CommandItemTemplate>

 

 

 

<table>

 

 

 

<tr>

 

 

 

<td width="10%">

 

 

 

<asp:LinkButton ID="btnAddNewItem" Text="Add new item"

 

 

 

Runat="server" CommandName="InitInsert"></asp:LinkButton>

 

 

 

</td>

 

 

 

<td width="80%">

 

 

 

</td>

 

 

 

<td width="10%">

 

 

 

<asp:LinkButton ID="btnRefresh" Text="Refresh data" CommandName="Rebind" Runat="server"></asp:LinkButton>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</CommandItemTemplate>

 

 

 

 

<EditFormSettings EditFormType="Template">

 

 

 

<FormTemplate>

 

 

 

<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"

 

 

 

style="border-collapse: collapse;background:white;">

 

 

 

<tr >

 

 

 

<td colspan="2" style="font-size: small">

 

 

 

<b>Customer Part Details</b></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<table id="Table3" cellspacing="1" cellpadding="1" width="98%" border="0" >

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Customer ID:

 

</td>

 

 

 

<td>

 

 

 

<asp:DropDownList ID="DropCustEdit" runat="server" SelectedValue='<%# Bind("CustomerID") %>'

 

 

 

DataSourceID="dsCustomerDrop" DataTextField="Name"

 

 

 

DataValueField="CustomerID" TabIndex="1" AppendDataBoundItems="True" >

 

 

 

<asp:ListItem Selected="True" Text="Select Customer" Value="0"></asp:ListItem>

 

 

 

</asp:DropDownList>

 

 

 

<span style="color: Red">*</span>

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator5"

 

 

 

ControlToValidate="DropCustEdit" ErrorMessage="This field is required" runat="server" InitialValue="0"></asp:RequiredFieldValidator></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Part Number:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtpartnumber" runat="server" Text='<%# Bind( "PartNumber") %>' TabIndex="2">

 

 

 

</asp:TextBox>

 

 

 

<span style="color: Red">*</span>

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator4"

 

 

 

ControlToValidate="txtpartnumber" ErrorMessage="This field is required" runat="server"></asp:RequiredFieldValidator>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Part Description:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtDesc" runat="server" Text='<%# Bind( "Description") %>' TabIndex="3">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

UOM:

 

</td>

 

 

 

<td>

 

 

 

<asp:DropDownList ID="dropUOM" runat="server" SelectedValue='<%# Bind("UnitOfMeasureCD") %>'

 

 

 

DataSourceID="dsUOM" DataTextField="Description" DataValueField="UnitofMeasureCD" TabIndex="4" AppendDataBoundItems="True">

 

 

 

<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>

 

 

 

</asp:DropDownList>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Category:

 

</td>

 

 

 

<td>

 

 

 

<asp:DropDownList ID="DropCategory" runat="server"

 

 

 

DataSourceID="dsCustomerCategory" DataTextField="Category" TabIndex="5"

 

 

 

DataValueField="Category" >

 

 

 

</asp:DropDownList>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Length:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtLength" runat="server" TabIndex="6"

 

 

 

Text='<%# Bind( "Length") %>'>

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Height:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtHeight" runat="server" Text='<%# Bind( "Height") %>' TabIndex="7">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Width:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtWidth" runat="server" Text='<%# Bind( "Width") %>' TabIndex="8">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Weight:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtWeight" runat="server" Text='<%# Bind( "Weight") %>' TabIndex="9">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Manufacturer:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtManu" runat="server" Text='<%# Bind( "Manufact") %>' TabIndex="10">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Alt Ref #:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtAltRef" runat="server" Text='<%# Bind( "AltRefOne") %>' TabIndex="11">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Serialized:

 

</td>

 

 

 

<td>

 

 

 

<asp:CheckBox ID="chkSerial" Checked='<%# Bind("Serialized") %>' runat="server" TabIndex="12" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Parts Quantity Per Unit:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtPQPU" runat="server" Text='<%# Bind( "PartQuantityPerUnit") %>' TabIndex="13">

 

 

 

</asp:TextBox>

 

 

 

<span style="color: Red">*</span>

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator3"

 

 

 

ControlToValidate="txtPQPU" ErrorMessage="This field is required" runat="server"></asp:RequiredFieldValidator></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Quantity Alert Minimum:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtMin" runat="server" Text='<%# Bind( "QuantityAlertMinimum") %>' TabIndex="14">

 

 

 

</asp:TextBox>

 

 

 

<span style="color: Red">*</span>

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator2"

 

 

 

ControlToValidate="txtMin" ErrorMessage="This field is required" runat="server"></asp:RequiredFieldValidator>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Quantity Alert Maximum:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtMax" runat="server" Text='<%# Bind( "QuantityAlertMaximum") %>' TabIndex="15">

 

 

 

</asp:TextBox>

 

 

 

<span style="color: Red">*</span>

 

 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator1"

 

 

 

ControlToValidate="txtMax" ErrorMessage="This field is required" runat="server"></asp:RequiredFieldValidator></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Special Instructions:

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtSpecial" runat="server" Text='<%# Bind( "SpecialInstructions") %>' TabIndex="16" TextMode="MultiLine" Width="250px">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Active:

 

</td>

 

 

 

<td>

 

 

 

<asp:CheckBox ID="chkActive" Checked='<%# Bind("Active") %>' runat="server" TabIndex="17" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Button ID="btnUpdatep2" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'

 

 

 

runat="server"

 

 

 

CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'

 

 

 

TabIndex="17" >

 

 

 

</asp:Button>

 

 

 

</td>

 

 

 

<td>

 

 

 

<asp:Button ID="btnCancel" CommandName="Cancel" runat="server" Text="Cancel" CausesValidation="false" TabIndex="18" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</td>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</FormTemplate>

 

 

 

</EditFormSettings>

 

<%

 

--<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>--%>

 

<%

 

--<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>--%>

 

<

 

 

RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

 

<

 

 

ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridButtonColumn ButtonType="PushButton"

 

 

 

CommandName="Edit" Text="Edit" UniqueName="EditPart">

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridButtonColumn ButtonType="PushButton" ConfirmText="Delete this part?"

 

 

 

CommandArgument="CustomerPartNumberID" CommandName="Delete" Text="Delete"

 

 

 

UniqueName="DeletePart">

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridBoundColumn ReadOnly="True" DataField="CustomerPartNumberID"

 

 

 

UniqueName="CustomerPartNumberID" DataType="System.Int32"

 

 

 

HeaderText="CustomerPartNumberID" SortExpression="CustomerPartNumberID" Visible="false" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="CustomerID" UniqueName="CustomerID" Visible="true" HeaderText="Customer ID" DataType="System.Int32" SortExpression="CustomerID" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="CustomerName" UniqueName="CustomerName" Visible="true" HeaderText="Customer" Readonly="true" SortExpression="CustomerName" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="PartNumber" UniqueName="PartNumber"

 

 

 

Visible="True" HeaderText="Part Number"

 

 

 

SortExpression="PartNumber" AllowFiltering="true" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Description" HeaderText="Description"

 

 

 

SortExpression="Description" UniqueName="Description" AllowFiltering="false" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="AltRefOne" HeaderText="Alt Ref #"

 

 

 

SortExpression="AltRefOne" UniqueName="AltRefOne" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Serialized" UniqueName="Serialized"

 

 

 

Visible="True" HeaderText="Serialized" DataType="System.Byte"

 

 

 

SortExpression="Serialized" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Category" HeaderText="Cat" SortExpression="Category"

 

 

 

UniqueName="Category" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="UOM" HeaderText="UOM" SortExpression="UOM"

 

 

 

UniqueName="UOM" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Height" HeaderText="Height"

 

 

 

SortExpression="Height" UniqueName="Height" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Length" HeaderText="Length"

 

 

 

SortExpression="Length" UniqueName="Length" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Width" HeaderText="Width"

 

 

 

SortExpression="Width" UniqueName="Width" AllowFiltering="false" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Weight" HeaderText="Weight"

 

 

 

SortExpression="Weight" UniqueName="Weight" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="UnitOfMeasureCD" HeaderText="UnitOfMeasureCD" SortExpression="UnitOfMeasureCD"

 

 

 

UniqueName="UOMCD" Visible="false" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="PartQuantityPerUnit" UniqueName="PartQuantityPerUnit"

 

 

 

Visible="False" HeaderText="Part Quantity Per Unit" DataType="System.Int32"

 

 

 

SortExpression="PartQuantityPerUnit" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="QuantityAlertMinimum" UniqueName="QuantityAlertMinimum"

 

 

 

Visible="False" HeaderText="Quantity Alert Minimum" DataType="System.Int32"

 

 

 

SortExpression="QuantityAlertMinimum" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="QuantityAlertMaximum"

 

 

 

DataType="System.Int32" HeaderText="Quantity Alert Maximum"

 

 

 

SortExpression="QuantityAlertMaximum" UniqueName="QuantityAlertMaximum"

 

 

 

Visible="False" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="SpecialInstructions"

 

 

 

HeaderText="Special Instructions" SortExpression="SpecialInstructions"

 

 

 

UniqueName="SpecialInstructions" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Manufact" HeaderText="Manufacturer"

 

 

 

SortExpression="Manufact" UniqueName="Manufacturer" AllowFiltering="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn DataField="Active" DataType="System.Byte"

 

 

 

HeaderText="Active" SortExpression="Active" UniqueName="TempActive" AllowFiltering="false">

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="chkActive" runat="server" Checked='<%# eval("Active") %>' />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

</

 

 

MasterTableView>

 

<

 

 

FilterMenu>

 

<

 

 

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

</

 

 

FilterMenu>

 

 

 

</telerik:RadGrid>

 

 

 

 

 

<asp:SqlDataSource ID="dsCustomerParts" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:HDN_ConnectionString %>"

 

 

 

SelectCommand="sp_CPMSCustomerPartNumbersByCustomerIDByBusinessType"

 

 

 

SelectCommandType="StoredProcedure">

 

 

 

<SelectParameters>

 

 

 

<asp:ControlParameter ControlID="dropCustomer" Name="CustomerID"

 

 

 

PropertyName="SelectedValue" Type="Int32" />

 

 

 

<asp:ControlParameter ControlID="dropActive" DefaultValue="1" Name="Active"

 

 

 

PropertyName="SelectedValue" Type="Byte" />

 

 

 

<asp:SessionParameter DefaultValue="6" Name="BusinessTypeID"

 

 

 

SessionField="BusinessTypeID" Type="Int32" />

 

 

 

</SelectParameters>

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

<asp:SqlDataSource ID="dsCustomerDrop" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:HDN_ConnectionString %>"

 

 

 

SelectCommand="sp_CPMSCustomerDropByBusinessType"

 

 

 

SelectCommandType="StoredProcedure">

 

 

 

<SelectParameters>

 

 

 

<asp:SessionParameter DefaultValue="6" Name="BusinessTypeID"

 

 

 

SessionField="BusinessTypeID" Type="Int32" />

 

 

 

</SelectParameters>

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

<asp:SqlDataSource ID="dsCustomerCategory" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:HDN_ConnectionString %>"

 

 

 

SelectCommand="sp_CPMCustomerCategoryDrop" SelectCommandType="StoredProcedure">

 

 

 

<SelectParameters>

 

 

 

<asp:ControlParameter ControlID="dropCustomer" Name="CustomerID"

 

 

 

PropertyName="SelectedValue" Type="Int32" />

 

 

 

</SelectParameters>

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

<asp:SqlDataSource ID="dsUOM" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:HDN_ConnectionString %>"

 

 

 

SelectCommand="sp_UnitofMeasureDrop" SelectCommandType="StoredProcedure">

 

 

 

</asp:SqlDataSource>

 

 

VB Code -

 

 

Protected Sub RadCustomerParts_selectedIndexChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadCustomerParts.SelectedIndexChanged

 

 

 

If TypeOf e.Item Is GridDataItem Then

 

 

 

Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)

 

 

 

Dim ddList As DropDownList = CType(editedItem("dropcategory").Controls(0), DropDownList)

 

ddList.DataSource = dsCustomerCategory

ddList.DataBind()

 

 

 

End If

 

Shinu
Top achievements
Rank 2
 answered on 08 Dec 2011
1 answer
778 views
Can some one provide me a sample for implementing an edit using a pop up in a rad control.

I found the below article and tried...but I was not able to execute the pgm..
I am very new for telerik ..plz advise..

http://demos.telerik.com/aspnet-classic/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=window


I am getting error for not having telerik.webcontrols dll..

Thanks
Princy
Top achievements
Rank 2
 answered on 08 Dec 2011
0 answers
69 views
Hello

I am currently using 2011 Q2 version. Is it this version support add/update reminder on a existing appointment in scheduler?

Here is my setting, but I am not able to add & update reminder. Or do I need to add code behind?

 <telerik:RadScheduler ID="RadScheduler1" runat="server" 
        DataDescriptionField="Description" DataEndField="End" DataKeyField="ID" 
        DataRecurrenceField="RecurrenceRule" 
        DataRecurrenceParentKeyField="RecurrenceParentID" DataReminderField="Reminder" 
        DataSourceID="EntityDataSource1" DataStartField="Start" 
        DataSubjectField="Subject" EnableDescriptionField="True" Height=""
        Reminders-Enabled="true">
        <ResourceTypes>
            <telerik:ResourceType DataSourceID="EntityDataSource2" 
                ForeignKeyField="TestResourceId" KeyField="Id" Name="Resource Type 0" 
                TextField="Description" />
        </ResourceTypes>
            <AdvancedForm Modal="true" />
            <Reminders Enabled="true" />
            <TimeSlotContextMenuSettings EnableDefault="true" />
            <AppointmentContextMenuSettings EnableDefault="true" />
    </telerik:RadScheduler>
    <asp:EntityDataSource ID="EntityDataSource2" runat="server" 
        ConnectionString="name=IAppointmentEntities" 
        DefaultContainerName="IAppointmentEntities1" EnableFlattening="False" 
        EntitySetName="TestResources">
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=IAppointmentEntities" 
        DefaultContainerName="IAppointmentEntities1" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" 
        EntitySetName="Appointments">
    </asp:EntityDataSource>
envy kok
Top achievements
Rank 1
 asked on 08 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?