Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views

Hi there, is there a way to make the appointments be 'behind' the timeslots?  I am looking on a scheduler
that will allow you to hover on anytime slot and highlight it, no matter if there is an appointment there or not, now, when you hover,
the timeslot only highlights when you touch the 10% left over by the appointment.

If the Appointment had some sort of z -index prop, and the timeslot was transparent , maybe this will work but I have no clue where to begin.

Thanks.
Magdalena
Telerik team
 answered on 12 Jun 2013
5 answers
561 views
With much prior help from Telerik Support, I've implemented a fairly sophisticated RadListBox which let's the user single-click and double-click.  I thought everything was working perfectly until I discovered today that the vertical scrollbar is not maintaining its position between Postbacks.  This needs to be fixed.

Here's the pertinent layout code:

<asp:Panel ID="panelMain" runat="server" style="border-top: solid 1px #000000; padding-bottom:20px">
  <telerik:RadSplitter ID="radSplitter" runat="server" LiveResize="false">
    <telerik:RadPane ID="radPaneLeft" runat="server" Scrolling="None" MinWidth="232" MaxWidth="272">
      <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" Height="0" ClickToOpen="true" DockedPaneId="radSlidingPane">
        <telerik:RadSlidingPane ID="radSlidingPane" runat="server" BackColor="#F0F8FF" CssClass="slidingPane" TabView="TextAndImage" IconUrl="~/Images/hierarchy.gif"
                                DockOnOpen="true" OnClientDocked="radSlidingPane_Docked" OnClientUndocked="radSlidingPane_Undocked" Width="200">
 
          <telerik:RadListBox ID="radListBoxMuck" runat="server" Width="100%" Height="100%" OnClientSelectedIndexChanged="rlbClicked" OnClientItemDoubleClicked="rlbDoubleClicked"
                              OnClientContextMenu="rlbContextMenu" onselectstart="return false;" OnItemCreated="radListBoxMuck_ItemCreated" EnableDragAndDrop="false">

And here's the Javascript code that handles the RadListBox:

var rlbClickTimer;  // Required presence for logic to distinguish between single & double-clicks
 
function rlbClicked() {
  if (rlbClickTimer) clearTimeout(rlbClickTimer);
 
  rlbClickTimer = setTimeout(function () {
    // Code in 'rlbContextMenu' causes this method to be called.  When a right-click occurs,
    // we don't want a PostBack to occur so we're just going to exit quietly.
    var rlbRightClicked = $('input[id$=_radListBoxIsRightClicked]')[0].id;
    var hidVar = document.getElementById(rlbRightClicked);
    if (hidVar.value == 'true') {
      hidVar.value = '';  // We successfully intercepted the right-click that got us to here so clear the hidden variable for when a left-click occurs
      return;
    }
 
    var updatePanel = $('div[id$=_UpdatePanel1]')[0].id;
    var slidingZone = $find($('table[id$=_radSlidingZone]')[0].id);
    var slidingPane = slidingZone.getPanes()[0];
    var listBox = $find($("#" + slidingPane.get_id() + " div[id$=_radListBoxMuck]")[0].id);
 
    var rlbIdxName = $('input[id$=_radListBoxIndex]')[0].id;
    hidVar = document.getElementById(rlbIdxName);
    var rlbIdxVal = hidVar.value;
 
    var parameters;
 
    if (rlbIdxVal == '')
      parameters = 'radListBoxMuck,' + listBox.get_selectedIndex();
    else {
      parameters = 'radListBoxMuck,' + rlbIdxVal;
      hidVar.value = '';
    }
 
    parameters += ',1';
 
    __doPostBack(updatePanel, parameters);
  }, 250);
 
  setTimeout(function() { scrollIntoView() }, 400);
}
 
// Works in conjunction with 'rlbClicked' and handles double-clicking on a RadListBox item.
function rlbDoubleClicked() {
  var updatePanel = $('div[id$=_UpdatePanel1]')[0].id;
  var slidingZone = $find($('table[id$=_radSlidingZone]')[0].id);
  var slidingPane = slidingZone.getPanes()[0];
  var listBox = $find($("#" + slidingPane.get_id() + " div[id$=_radListBoxMuck]")[0].id);
 
  clearTimeout(rlbClickTimer);
 
  var parameters = 'radListBoxMuck,' + listBox.get_selectedIndex() + ',2';
 
  __doPostBack(updatePanel, parameters);
}
 
// Ensures that the selected item, if there is one, remains visible to the user after a postback.
function scrollIntoView() {
  var slidingZone = $find($('table[id$=_radSlidingZone]')[0].id);
  var slidingPane = slidingZone.getPanes()[0];
  var listBox = $find($("#" + slidingPane.get_id() + " div[id$=_radListBoxMuck]")[0].id);
 
  var item = listBox.get_selectedItem();
  if (item != null)
    item.scrollIntoView();
}

Please note the last line of code, which calls the "scrollIntoView()" method of the RadListBoxItem.  I've stepped through the code and it appears to be running okay.  I've also confirmed that the "item" in question is always the correct one.  But it's as if "scrollIntoView()" isn't doing anything.

Is there something wrong with my code?

As an ancillary comment, I should mention that I've created a quite extensive function library that uses the AJAX Event Handler functions to maintain the position of any DIV scrollbar that I so identify during initialization.  It also works perfectly with your RadTreeView control.  But, when I tried using it with the RadListBox, it didn't work.  It relies on the fact that the "scrollTop" property of each DIV will range from '0' at its top position to a positive integer at the bottom.  So alternatively, if you could tell me how to adapt this code for the RadListBox then I'd also have a solution.  In other words, what RadListBox property maintains the scroll position?

Hope you can help!

Robert

Robert
Top achievements
Rank 1
 answered on 12 Jun 2013
2 answers
82 views
Hello  Telerik  folks,can You help here
<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"
            AutoGenerateColumns="false" onitemcommand="RadGrid1_ItemCommand">
            <MasterTableView AutoGenerateColumns="false">
                <Columns>
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server"   />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="employeenaem" HeaderText="EmployeeName">
                        <ItemTemplate>
                            <%#Eval("Employeename") %>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="employeeDesgination" HeaderText="EmployeeDesignation">
                        <ItemTemplate>
                            <%#Eval("EmployeeDesignation")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Salary" HeaderText="salary">
                        <ItemTemplate>
                            <%#Eval("EmployeeSalary") %>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <telerik:RadButton ID="RadButton1" runat="server" Text="Print"
        onclick="RadButton1_Click">
        </telerik:RadButton>

.aspx.cs
protected void RadButton1_Click(object sender, EventArgs e)
    {
        PrintDocument pd = new PrintDocument();
        foreach (GridDataItem item1 in RadGrid1.MasterTableView.Items)
        {  
            CheckBox ChkedList = (CheckBox)item1.FindControl("CheckBox1");
            if (ChkedList.Checked)
            {
                Index = item1.ItemIndex;
                DrawImage();
            }
           
        }
    }

 public void  DrawImage()
    {
        if (m_oConn.State != ConnectionState.Closed)
        {

            m_oConn.Open();
        }
        m_oCmd = new MySqlCommand("select * from  printtest",m_oConn);
        DataSet ds = new DataSet();
        m_aDp = new MySqlDataAdapter(m_oCmd);
        m_aDp.Fill(ds);
        string dempname,dempdesg;
        decimal dsalary;
        dempname=(string)ds.Tables[0].Rows[Index]["Employeename"];
        dempdesg=(string)ds.Tables[0].Rows[Index]["EmployeeDesignation"];
        dsalary=(decimal)ds.Tables[0].Rows[Index]["EmployeeSalary"];
        string drawString2 = string.Empty;
        Graphics g;
        Bitmap b;
        Page p;
        b = new Bitmap(790, 1050);
        g = Graphics.FromImage(b);
        p = this.Page;
        p.Response.ContentType = "image/jpeg";
        g.FillRectangle(new SolidBrush(Color.White), 0, 0, 790, 325);
        g.FillRectangle(new SolidBrush(Color.White), 0, 325, 790, 1050)
        FontFamily fm1 = new FontFamily("Consolas");
        Font drawFont = new Font(fm1, 12);
        Font drFont = new Font("Arial", 8);
        Font drFont1 = new Font("Arial", 9);
        Font drsmallFont = new Font("Arial", 8);
        Font drnarrowFont = new Font("Arial Narrow", 8);
      
        Font drnarrowFont1 = new Font("Verdana,sans-serif", 8);
        Font drarialblackFont = new Font("Arial Black", 10);

        SolidBrush drawBrush = new SolidBrush(Color.Black);

        PointF drawPoint = new PointF(140.0F, 290.0F);

        Pen pn = new Pen(drawBrush);
     
        string path = Server.MapPath("images/InfoImg.png");
        Bitmap logo = new Bitmap(path);

        Graphics gra = Graphics.FromImage(logo);
      
        g.DrawImage(logo, 15.0F, 30.0F);

        ImageConverter ic = new ImageConverter();

        g.DrawString("PAY TO THE ORDER OF ____" + "__________________________________________________________________", drnarrowFont1, drawBrush, 15.0F, 120.0F);
        g.DrawString(dempname + "is worked as " + dempdesg + "and erans" + dsalary, drnarrowFont1, drawBrush, 145.0F, 117.0F);
        b.Save(p.Response.OutputStream, ImageFormat.Jpeg);
        
    }

Here ...I want to print the .....Data That in database....not current document......based user select  Data-rows and then click on Print.. ...presently.  I want to print the Multiple Image files...based on user selected rows ..only one Image Show in page......I don't want to show printing information ..I want to Print ...Image files......I search many website...I am not getting results.....That why I am post the thread...
Andrey
Telerik team
 answered on 12 Jun 2013
1 answer
367 views
overall, i would like a nested grid where there is a radio button list column. The column will have an approve option and a reject option if reject is selected all the items in the child grid will automatically inherit that value as well. If the reject button is pushed, also a text box for the parent item and each child item will appear next to the corresponding row. Your help would be so greatly appreciated!!!!
Eyup
Telerik team
 answered on 12 Jun 2013
1 answer
332 views
hey guys, got an application that is stuffed full of  dozens of radgrids & i have one on a page that's doing some strange behavior.i've got a workaround but i'd like to get an expert opinion - not a link please - on this.
we have "stand alone filters" on all of our grids - not the column filters that are built in.
normal behavior seems to be - we use the breakout filter and when u page to the next page - it basically uses the contents of the grid. on this particular one - this one goes to need datasoure & ignores either the contents in the grid or the filtering that populated it.
i've pasted the mark-up if anyone can see why this is happening.
my workaround is in the need datasource itself. it looks to see if "filterexpression" == "" , if blank then does the fetch using the filter. worked like a charm but i'd love to know why this grid has that behavior.
thanks
rik

<telerik:RadGrid ID="TransferItemsRadGrid" runat="server" AllowPaging="true" AllowSorting="true"

                    PageSize="10" AutoGenerateColumns="false" Skin="WebBlue" OnItemDataBound="TransferItemsRadGrid_ItemDataBound"

                    OnNeedDataSource="TransferItemsRadGrid_NeedDataSource">

                    <ClientSettings EnableRowHoverStyle="true" />

                    <GroupingSettings CaseSensitive="false" />

                    <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true" />

                    <MasterTableView DataKeyNames="WORKORDERNUMBER,LOCATIONID,WORKORDERID,WORKORDERDETAILID,MATERIALTYPEID,MATERIALDESCRIPTION,INVENTORYID,ITYPE"

                        CommandItemDisplay="TopAndBottom" CommandItemStyle-HorizontalAlign="Left">

                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />

                        <CommandItemSettings ShowExportToExcelButton="true" ExportToExcelText="Export to Excel"

                            ShowAddNewRecordButton="false" />

                        <NoRecordsTemplate>

                            <div style="text-align: center; margin: 20px;">

                                There are no transfer items associated with this work order.

                            </div>

                        </NoRecordsTemplate>

                        <HeaderStyle HorizontalAlign="Left" />

                        <Columns>

                            <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="60px" UniqueName="OptionsMenuCell"

                                ItemStyle-HorizontalAlign="Left">

                                <ItemTemplate>

                                    <asp:Image ID="RecordInfoImage" runat="server" ImageUrl="~/App_Themes/GOLD Main/Images/grid_info.gif"

                                        CssClass="gridviewOptionsImage" />

                                    <telerik:RadToolTip ID="InfoRadToolTip" runat="server" TargetControlID="RecordInfoImage"

                                        Skin="Sunset" Position="MiddleRight" CssClass="gridviewToolTip" />

                                </ItemTemplate>

                            </telerik:GridTemplateColumn>

                            <telerik:GridBoundColumn DataField="WORKORDERITEMDISPLAY" HeaderText="WO Item #" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="ITYPE" HeaderText="Type" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="MATERIALTYPE" HeaderText="Material" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="STATUS_MESSAGE" HeaderText="Status" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="SIZEVALUE" HeaderText="Size" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="WEIGHTPERLENGTH" HeaderText="Weight" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="MATERIALGRADE" HeaderText="Grade" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="MATERIALTHREAD" HeaderText="Thread" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="MATERIALCOLORBAND" HeaderText="Color" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="MATERIALCOATING" HeaderText="Coating" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="MATERIALRANGE" HeaderText="Range" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="RACKNUMBER" HeaderText="Rack" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="ADJ_QTY" HeaderText="Inv Qty" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="ADJ_LENGTH" HeaderText="Length" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="OWNER_COMPANYNAME" HeaderText="Owner" AllowFiltering="false" />

                            <telerik:GridBoundColumn DataField="LOCATIONNAME" HeaderText="Division"  AllowFiltering="false" />

                        </Columns>

                    </MasterTableView>

                </telerik:RadGrid>

 

Andrey
Telerik team
 answered on 12 Jun 2013
3 answers
236 views
in my radwindow I have <a class="toggler" > + </a> which has a piece of javascript attached: 
$(document).ready(function() {

            $('.toggler').click(function() {
                $(this).next('.tobetoggled').toggle(400);
                $(this).text($(this).text() == '+' ? '-' : '+');
                return false;
            });
        });

This jquery is used to toggle the visibility of a div:
<div class="tobetoggled" > test div </div>


exactly same setup works on a normal .aspx page, but not on this radwindow. The radwindow is very simple, got nothing but the anchor and the div described above

any idea what I am doing wrong?
thanks in adavnce
Shinu
Top achievements
Rank 2
 answered on 12 Jun 2013
3 answers
141 views

Hi

I have a 100000 record in my database. I want to bind this data in RadGrid as cluster. That’s mean I want to bind 10 records per page from code behind.  And this time I want to filter using multiple columns in all records and want to bind 10 filtered records (per page) to RadGrid.

So that, I want to do search, filter and bind data (page by page) in RadGrid from code behind.

Please response any.

Aminul

Shinu
Top achievements
Rank 2
 answered on 12 Jun 2013
4 answers
364 views
Hi,

I have a radpanelbar in a radpane inside a splitter. The problem is when the radpanelbar have too many items, the height exceed the height of the radpane. How I can set the height of the radpanelbar do not exceed and it just scroll within the radpane ? Inside the splitter I have splitterbar too which the user can choose to expand to left or right, but the width of the radpanelbar did not follow the width of the radpane. How to make the radpanelbar width and height tie to the radpane, so when radpane expand, the radpanelbar follow. When radpane shrink, the radpanelbar will shrink too.

<head runat="server">

<title></title>
<style type="text/css">

 html, body, form

{

margin:0px;
padding:0px;

height:100%;

}

 </style>

 </head>

 <body>

<form id="form1" runat="server">

 <div>

 <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

 </telerik:RadScriptManager>

 <telerik:RadSkinManager ID="RadSkinManager1" Runat="server">

 </telerik:RadSkinManager>

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">

 </telerik:RadAjaxLoadingPanel>

 <telerik:RadSplitter ID="RadSplitter1" Runat="server" Height="100%"  Orientation="Horizontal" style="margin-top: 0px" Width="100%">

<telerik:RadPane ID="RadPane1" Runat="server" Height="52px" Scrolling="None">

<table border="0" cellpadding="0" cellspacing="0" style="border: 0px none #000000" width="100%">

<tr bgcolor="black">

<td align="right" width="100">

</td>

<td style="background-color: #C0C0C0" valign="bottom">

    <asp:Label ID="lblDate" Runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="12px"     ForeColor="Black">
    </
asp:Label>

</td>

 <td align="right" style="background-color: #C0C0C0" valign="bottom">

 <asp:Label ID="lblUser" Runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="12px" ForeColor="Black"></asp:Label>

 <br />

 <asp:HyperLink ID="LogHyper" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="9pt" Font-Underline="True" ForeColor="Black" NavigateUrl="~/Login.aspx" Target="_parent">LOGOUT</asp:HyperLink>

 <br />

 </td>

 </tr>

 </table>

 </telerik:RadPane>

 <telerik:RadPane ID="RadPane2" Runat="server" Height="525px">

<telerik:RadSplitter ID="RadSplitter2" Runat="server" Height="100%" Width="100%"> 
 <telerik:RadPane ID="RadPane3" Runat="server" Width="242px">
<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Width="230px" Height="100%">
</telerik:RadPanelBar>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitBar1" Runat="server">
</telerik:RadSplitBar>
<telerik:RadPane ID="Main" Runat="server" ContentUrl="about:blank" ShowContentDuringLoad="False">
<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
</telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
</telerik:RadSplitter> 
</div>
</form>

</body>

 

Dylan
Top achievements
Rank 2
 answered on 12 Jun 2013
5 answers
411 views
Hi,

I need your help to the following problem I am facing. I have a RadGrid loaded with data. Inserting and editing rows in RadGrid works fine. Deletion of a row doesn't work. Every time I try to delete a row I am getting the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridTemplateColumn.FillValues(IDictionary newValues, GridEditableItem editableItem) +435
   Telerik.Web.UI.GridEditableItem.ExtractValues(IDictionary newValues) +164
   Telerik.Web.UI.GridTableView.ExtractValuesFromItem(IDictionary newValues, GridEditableItem editedItem) +116
   Telerik.Web.UI.GridTableView.PerformDelete(GridEditableItem editedItem, Boolean suppressRebind) +174
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +4861
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +137
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
My RadGrid code is listed below :
<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True"
            AllowPaging="True" DataSourceID="UserDS" AllowSorting="True"
            AllowFilteringByColumn="True" AllowMultiRowEdit="True"
            Skin="Telerik" AutoGenerateColumns="False" ShowGroupPanel="True">
            <PagerStyle Mode="NextPrevAndNumeric" />
<HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
 
               <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="Id"
                DataSourceID="UserDS" HorizontalAlign="NotSet" EditMode="InPlace">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                        UniqueName="Name" ColumnEditorID="GridTextBoxColumnName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Surname" HeaderText="Surname" SortExpression="Surname"
                        UniqueName="Surname" ColumnEditorID="GridTextBoxColumnSurname">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="User_Name" HeaderText="Username" SortExpression="User_Name"
                        UniqueName="User_Name" ColumnEditorID="GridTextBoxColumnUserName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Id_Number" HeaderText="Id Number" SortExpression="Id_Number"
                        UniqueName="Id_Number" ColumnEditorID="GridTextBoxColumnIdNumber"
                        DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridDropDownColumn DataField="Role_Id" DataSourceID="RoleDdDS"
                        HeaderText="Role" ListTextField="Role" ListValueField="Id"
                        UniqueName="Role_Id" ColumnEditorID="GridDropDownColumnEditor1">
                    </telerik:GridDropDownColumn>
                    <telerik:GridTemplateColumn UniqueName="Password" AllowFiltering="false">
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="RadTextBox1" Runat="server" TextMode="Password">
                            </telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server"
                                ControlToValidate="RadTextBox1" Display="Static" Text="*"
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="Password"></asp:Label>
                        </HeaderTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this user" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
                     
                </Columns>
                <EditFormSettings ColumnNumber="2" CaptionDataField="User" CaptionFormatString="Edit properties of User {0}" InsertCaption="New User">
                   <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                        Width="100%" />
                    <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <EditColumn ButtonType="ImageButton" InsertText="Insert User" UpdateText="Update record"
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                    </EditColumn>
                    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True"
                        AllowDragToGroup="True">
                <ClientEvents OnRowDblClick="RowDblClick" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            </ClientSettings>
        </telerik:RadGrid>
        </asp:Panel>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow" runat="server" style="display:none;">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <br />
        <asp:SqlDataSource ID="UserDS" runat="server"
            ConnectionString="<%$ ConnectionStrings:sample_ConnectionString %>"
            ProviderName="System.Data.SqlClient"
            DeleteCommand="UPDATE [User] SET [Is_Deleted]=1 WHERE [Id]=@original_Id"
            InsertCommand="INSERT INTO [User] (User_Name, Name, Surname, Id_Number, Role_Id, Password) VALUES (@User_Name,@Name,@Surname,@Id_Number,@Role_Id,@Password)"
            SelectCommand="SELECT * FROM [User]"
            UpdateCommand="UPDATE [User] SET [User_Name] = @User_Name, [Name] = @Name, [Surname] = @Surname, [Id_Number] = @Id_Number, [Role_Id] = @Role_Id, [Password]=@Password WHERE [Id]=@original_Id"
            ConflictDetection="CompareAllValues" OldValuesParameterFormatString="original_{0}">
        <DeleteParameters>
                <asp:Parameter Name="original_Id" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="User_Name" Type="String" />
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="Surname" Type="String" />           
            <asp:Parameter Name="Id_Number" Type="Int32" />
            <asp:Parameter Name="Role_Id" Type="Int32" />
            <asp:Parameter Name="Password" Type="String" />
            <asp:Parameter Name="original_Id" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="User_Name" Type="String" />
            <asp:Parameter Name="Name" Type="String" />
            <asp:Parameter Name="Surname" Type="String" />           
            <asp:Parameter Name="Id_Number" Type="Int32" />
            <asp:Parameter Name="Role_Id" Type="Int32" />
            <asp:Parameter Name="Password" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RoleDdDS" runat="server"
            ConnectionString="<%$ ConnectionStrings:sample_ConnectionString %>"
            SelectCommand="SELECT Id, Role FROM Role"></asp:SqlDataSource>

I have log the SQL Server to see if the Delete statement executes but it's not. By pressing the delete I get immediately the error page.
Other Information:

  Microsoft Visual Studio 2008 Version 9.0.30729.1SP
  Microsoft .NET Framework Version 3.5 SP1
  Telerik Version v.2010.3.1215.35
  Operating System: Windows 7
  Browser : Firefox
  Programming Language : VB.NET


Can anybody help me with my error?

Thanks
Pan
Mark
Top achievements
Rank 1
 answered on 12 Jun 2013
4 answers
145 views
Hi,

Rad Filter User Interface is not showing instead it is showing text "And  Add ExpressionAdd GroupRemove Item".

Please help me if any one have also faced this issue, It is very urgent for me.

Screen Shot is enclosed.

Thanks
Puru
William
Top achievements
Rank 1
 answered on 11 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?