Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
842 views
I am trying to reduce the number of items in the gridview filter menu.  I followed the approach on this page:

http://www.telerik.com/help/aspnet-ajax/grdreducingfiltermenuoptions.html

That approach works fine if you show the filter textbox for each column.  It does not work if you want to enable the context menu and filter context menu for each column by setting EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" on the RadGrid and setting IsFilterItemExpanded="false" on the MasterTableView.

Is there a way to reduct the filter menu options if you have the header context menu on?

Radoslav
Telerik team
 answered on 20 Aug 2013
1 answer
92 views
Hi!

I am trying to combine a custom drag handler from listview with a drop to a treeview.
My problem is that when using a custom drag handler in the ListView, the "MouseOver" event is not triggered in the treeview, so I dont know on what node the items is being droped. The hover effect on the treeview node is not working ither.
If i'm using the build in DragHandler, everything works fine.

Any suggestions on what might be wrong?

Regards
Per
Venelin
Telerik team
 answered on 20 Aug 2013
3 answers
280 views

Hi,

I have a radgrid no my webpage. After insert or update, I want to keep grid in edit mode.
The item.edit = true, works on update command event or even from external save button. It is not working for InsertCommand event.
This is the code I am using:

protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.PerformInsertCommandName)
            {
                if (e.Item is GridEditableItem)
                {
                    GridEditableItem item = (GridEditableItem)e.Item;
  
                    //Save Quote and get quoteid
                    this.SaveQuote();
  
                    if (this.SaveQuoteItem(item, QuoteID, true))
                    {
                        e.Canceled = true;
                        item.Edit = true;
                        RadGrid1.MasterTableView.IsItemInserted = false;
                        RadGrid1.Rebind();
                    }
                    //}
                }
            }
        }
Shinu
Top achievements
Rank 2
 answered on 20 Aug 2013
1 answer
94 views
Why does the RadCalendar and the RadMonthyearPicker controls only go back to 2004?
Is there some way to set them to go back further?

http://i67.photobucket.com/albums/h292/Athono/programming/only_zps1b8fcb7d.png?t=1376946577
A2H
Top achievements
Rank 1
 answered on 20 Aug 2013
2 answers
273 views
As the attached screenshot shows, I've successfully employed multiple RadWindows in my ASP.NET 4.0 app.  Functionally they work really well.  However, do you notice that the little "Add New Stockpile" dialog box is shifted all the way over to the left of its "parent" RadWindow.  This looks a bit peculiar.

Is there a way for me to shift the initial position over to the right?  I played around with "OffsetElementID" but it didn't seem to do anything.

Robert
Robert
Top achievements
Rank 1
 answered on 19 Aug 2013
2 answers
165 views
I have a Parent grid that is editable with multiple controls in its <FormTemplate> and one of them is another Grid that is also editable. I cant seem to find the control inside the child Grid when it is in edit mode with JavaScript.

So i have a button that sets the date to another control in the child Grid. Function runs but cant even find the child Grid, therefore its controls.

function OnClientClickedSetDateToday(sender, args) {
var myGrid = $find('<%= RadGridMaster.ClientID%>').get_masterTableView().get_editItems()[0].findControl('RadGridSub');
}

 the variable myGrid is always NULL.Once it is found can i find the controls the same way?

function OnClientClickedSetDateToday(sender, args) {
 
// find the RadDateTimePicker inside the Child grid in the EditFormTemplate of the Parent Grid EditFormTemplate
var myRadDateTimePicker = $find('<%= RadGridMaster.ClientID%>').get_masterTableView().get_editItems()[0].findControl('RadGridSub').get_masterTableView().get_editItems()[0].findControl
('RadDateTimePickerTodayDate');
 
// need to set current date
var myTodayDate = new Date();
myRadDateTimePicker.set_selectedDate(myTodayDate);
 
}


code for Grids - need to find that RadDateTimePickerTodayDate control! Thanks!!!


<telerik:RadGrid runat="server" ID="RadGridMaster" Height="100%" Width="97%" AllowMultiRowSelection="false" AutoGenerateColumns="True" ShowHeader="False" AllowAutomaticUpdates="false" AllowAutomaticInserts="false">                               
<MasterTableView CommandItemDisplay="Top" NoMasterRecordsTex......
  <%-- Edit form parent template --%>
    <EditFormSettings EditFormType="Template">
    .........
<telerik:RadGrid runat="server" ID="RadGridSub">                                                   
         <MasterTableView CommandItemDisplay="Top" NoMasterRecordsT.......
                                    <EditFormSettings EditFormType="Template" ColumnNumber="2">
                                        <FormTemplate>
                                          .........
<telerik:RadButton runat="server" ID="RadButtonSetDateToday" OnClientClicked="OnClientClickedSetDateToday"....
<telerik:RadDateTimePicker runat="server" ID="RadDateTimePickerTodayDate" MinDate="1/1/190...






SDI
Top achievements
Rank 1
 answered on 19 Aug 2013
1 answer
131 views
Hello


I used the tutorial to create my own custom template for the Advanced Form for inserting and updating appointments in the Scheduler. 

One of the resources I have are various a patient that a doctor can schedule an appointment for. This resource is really big so its inefficient putting it in a comboBox and scrolling. Instead I added a RadGrid with filtering so a person can search for a patient easier. I wanted to add code on the selectIndexchanged that would set the subject as the patient selected and also select the appropriate value in the ComboBox based on PatientID. The postback code however doesn't do anything and it just stays empty. Does anyone know how I can get that working or could make a suggestion on a more efficient way to handle this scenario?  

Thanks in advance!

Edit: forgot to post the code I did so far

AdvancedForm.ascx -->added this code in this form
<table>
    <tr>
        <td>Search Patient:
        </td>
    </tr>
    <tr>
        <td>
 
 
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                DataSourceID="SqlDataSourceAllPats" GridLines="None" AllowFilteringByColumn="True" AllowPaging="True"
                EnableLinqExpressions="False" Width="600px" OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged">
 
                <MasterTableView Width="600px" DataSourceID="SqlDataSourceAllPats" AutoGenerateColumns="False" DataKeyNames="Account_Number" ClientDataKeyNames="Account_Number">
 
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <Columns>
                        <telerik:GridButtonColumn HeaderText="" Text="Select" CommandName="Select" />
                        <telerik:GridBoundColumn FilterControlAltText="Filter Account_Number column" HeaderText="Acct No"
                            UniqueName="AcctNo" DataField="Account_Number" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
                            ShowFilterIcon="false"
                            EmptyDataText="" Visible="true" ItemStyle-Width="60px" HeaderStyle-Width="60px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn FilterControlAltText="Filter FirstName column" HeaderText="First Name"
                            UniqueName="FirstName" DataField="FirstName" EmptyDataText="" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
                            ShowFilterIcon="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn FilterControlAltText="Filter LastName column" HeaderText="Last Name"
                            UniqueName="LastName" DataField="LastName" EmptyDataText="" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
                            ShowFilterIcon="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn FilterControlAltText="Filter Birthdate column" HeaderText="Date of Birth"
                            UniqueName="Birthdate" DataField="Birthdate" EmptyDataText="" DataFormatString="{0:MM/dd/yyyy}">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn FilterControlAltText="Filter SSN column" HeaderText="SSN"
                            UniqueName="SSN" DataField="SSN" EmptyDataText="" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
                            ShowFilterIcon="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn FilterControlAltText="Filter Address column" HeaderText="Address"
                            UniqueName="Address" DataField="Address" EmptyDataText="">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
 
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <ClientSettings>
                    <Scrolling AllowScroll="true"></Scrolling>
                </ClientSettings>
            </telerik:RadGrid>
 
        </td>
    </tr>
</table>
<asp:SqlDataSource ID="SqlDataSourceAllPats" runat="server"
    ConnectionString="<%$ ConnectionStrings:kcMedic_Central_Connection %>"
    SelectCommand="sp_patientList" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:SessionParameter DefaultValue="C002" Name="SITE_ID_LNK" SessionField="SiteId" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>


Code-behind:
protected void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
{
    string KeyID = (RadGrid1.SelectedItems[0] as GridDataItem).GetDataKeyValue("Account_Number").ToString();
 
    string name = (RadGrid1.SelectedItems[0] as GridDataItem)["FirstName"].Text.Trim() + " " +
                  (RadGrid1.SelectedItems[0] as GridDataItem)["LastName"].Text.Trim();
 
    (ResPatient.FindControl("ResourceValue") as RadComboBox).SelectedValue = KeyID;
 
    Subject = name;
    this.SubjectText.Text = name;
    this.SubjectText.ReadOnly = true;
 
}
Plamen
Telerik team
 answered on 19 Aug 2013
4 answers
380 views
Hi,
I have a series of RadDocks sitting inside of a RadDockZone.
Since upgrading to 2013.2.717.40 from 2013.1.417.40 I have been experiencing the following issue.
On Page Load I have the Tools and Favourites Docks expanded and the others (such as Duty) set to collapsed="true"

When I click the expand icon on these initially collapsed Docks the expand icon changes to a collapse one but it does not open (screenshot 1)
However if I remove the collapsed="false" so that the dock starts expanded I can open and close it without issue (screenshot 2)

Are there any known issues with this release?
I attempted to check this on your demos site but conveniently enough in all demos none of the docks appear to start off collapsed.

Regards,
Matt
Slav
Telerik team
 answered on 19 Aug 2013
9 answers
485 views
Perhaps I'm just missing something obvious, but is it possible to set the initial value of the textbox in a RadUpload control?  I want it to display the filename of the existing file the upload would replace, but I can't find anything in the API that exposes the textbox's value.

Thanks,
Ryan
Erik
Top achievements
Rank 2
 answered on 19 Aug 2013
3 answers
196 views
My code looks like this

RadSplitter
   - RadPane Scrolling=none id=ParentPane
      - div style="margin: 10px"
         - RadTab
         - RadMultiPage height=350px
            -RadPageView
               -RadSplitter height=350px
                    -RadPane
                    -RadPane

The last RadSplitter/Panes in that nesting are running beyond the bounds of their parent and getting cropped (assume the cropping is because I have scrolling set to none) If I remove the margin: 10 and use padding instead it does the same thing ... overlaps. If I remove the margin/padding of 10px it fits fine ... Im just trying to create some space between the boundary of the ParentPane and the tab/multipage the tabs and pages seem to be respecting the boundary as I set background colors and they fit the space fine but the nested panes are overlapping. I want the widths to be flexible not fixed.
Vessy
Telerik team
 answered on 19 Aug 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?