Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
376 views
Hi, i want to show the contextmenu when i doubleclick on an Appointment, is it possible?
TT
Top achievements
Rank 1
 answered on 30 Jul 2012
2 answers
108 views
Team,

I am in evaluation phase to go or no go with Telerik controls. I need your help and quick response for below.

Currently we have an Windows Application and using many custom grids. Now we are doing Web version for the same and started evaluating the Telerik grid (ASP.NET AJAX) will fit to our web version or not but I was stuck with a scenario, 

Scenario as follows:
My DB result set comes with string hierarchy attached image (db_resultset.gif) and also attached (windows UI.gif) for the same which gives you better clarity.

Is telerik grid supports to accept string hierarchy to build the grid?  
If yes, Could please provide a sample for it and give some URL to refer.
If not,  By extending the telerik grid functionality can we achieve this? or do we need to change the data structure and which data structure telerik grid will support to build the hierarchy?

I am waiting for your reply.  Please help.

Thanks,
Anjan




















Andrey
Telerik team
 answered on 30 Jul 2012
1 answer
321 views
Hello,

I want to make a simple grid on my website, allowing the users to input some data in the grid, but I find the demos are a little bit complicate, is there some samples that can fulfill:

- Creating a grid of several columns with known headings (and its data format)
- No need to connect to the database   (No data binding, 0 rows when page load)
- Allow users to add/remove/edit rows
- Can get the input data for calculation when some button is clicked

I know it is a very simple problem, but I cannot find some demos without data binding.



------------------------------------------ Update ------------------------------------------

My current code:
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
    <telerik:RadGrid ID="RadGrid1" runat="server"
        AllowPaging="true" AllowSorting="true" OnDeleteCommand="RadGrid1_DeleteCommand"
        OnInsertCommand="RadGrid1_InsertCommand" AllowFilteringByColumn="false" OnUpdateCommand="RadGrid1_UpdateCommand"
        OnUnload="RadGrid1_Unload">
        <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="Field1"
            InsertItemPageIndexAction="ShowItemOnCurrentPage">
             
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                <telerik:GridButtonColumn ConfirmText="Delete this object?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px"
                    ConfirmDialogWidth="220px" />
                <telerik:GridBoundColumn DataField="Field1" HeaderText="Field One" UniqueName="Field1" DataType="System.String" />
                <telerik:GridBoundColumn DataField="Field2" HeaderText="Field Two" UniqueName="Field2" DataType="System.Double" />
                <telerik:GridBoundColumn DataField="Field3" HeaderText="Field Three" UniqueName="Field3" DataType="System.String" />
                <telerik:GridBoundColumn DataField="Field4" HeaderText="Field Four" UniqueName="Field4" DataType="System.DateTime" />
            </Columns>                   
        </MasterTableView>
    <ClientSettings>
        <DataBinding Location="WebService.asmx"
            SelectMethod="GetDataAndCount" />
    </ClientSettings>
    </telerik:RadGrid>
</telerik:RadAjaxPanel>


protected void Page_Load(object sender, EventArgs e)
{
     // ...
         
        if (!Page.IsPostBack)
        {
            RadGrid1.DataSource = new Object[0];
        }
}
 
    protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e)
    {
            // Something
    }
 
    protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
    {
            // Something
    }
 
    protected void RadGrid1_DeleteCommand(object sender, GridCommandEventArgs e)
    {
            // Something
    }
 
    protected void RadGrid1_Unload(object sender, EventArgs e)
    {
            // Something
    }

It can show a empty grid when page load, but when I press the "add new record" button, it do not go into the event.

Regards,
Kev
Daniel
Telerik team
 answered on 30 Jul 2012
4 answers
171 views
Is posibility printing treview with skin (commas) http://demos.telerik.com/aspnet-ajax/treeview/examples/accessibility/defaultcs.aspx ?
Print is always without commas.
DLL version 2011.3.1115.35
Plamen
Telerik team
 answered on 30 Jul 2012
1 answer
134 views
I'm using RadGrid, but I'm customizing all your controls (such as paging, sorting, filtering), to make your lower load on the database, paging and sorting are already working perfectly, and I am implementing the filter, the more I realize that for there is no filter that allows a property to tell the grid that it requires no filter because the filter has been done on the data source, in my case in the dao layer.
My filter layer Dao already working as it should have over the need for custom filters in order to command characters in the filter, for example: "!ca" would equal the filter RadGrid DoesNotContain doing custom filter "ca" . More as I do this type of filter in the filter Dao is perfectly done deal because this character, the more it seems to me the Grid does its internal filter DataSource again I sent you, so does a filter! "ca" where column in datasouce already filtered so as not to bring these characters, showing no line in my filter. There is need because the company's legacy system already use such commands in the filter.


I think my problem can be solved easily if there is a way to not allow the Grid to do your internal filter after I give you back the data is already filtered.


I look forward to an answer.


Thank you for your attention.


Fernando.
Maria Ilieva
Telerik team
 answered on 30 Jul 2012
3 answers
135 views
I've followed the KB article to create a stand alone image manager which allows my users to select an existing image, or upload a new one. Now I need to restrict the images being uploaded to a specific height and width. I've found a couple threads on how to accomplish that with an image manager inside a radEditor. But I can't seem to translate the steps to work for a stand alone Image manager. Any help would be greatly appreciated!
Rumen
Telerik team
 answered on 30 Jul 2012
4 answers
89 views
I am using RadNumericTextBox with SpinButtons in my project but when i browse my project in Internet Explorer-7, SpinButton are render in Textbox  (But other IE version (8 and 9)  rendering is perfect)  
  So please help me -

Thank you--
Manindra
Maria Ilieva
Telerik team
 answered on 30 Jul 2012
1 answer
98 views

 

 

 

I have a grid with many pages (allowpaging = true) and I want onprerender

 

that some items will be selected = true

I have this code :

protected void Grid_MailingList_PreRender(object sender, EventArgs e)

    {

      foreach (GridDataItem item in Grid_MailingList.Items)

                {

                 string person = SessionMng.MessagesListData.Tables[0].Rows[i++]["iPersonId"].ToString();

                    DataView dv = new DataView(SessionMng.SavedMessage.Tables[1], "iPersonId= '" + person + "'", "", DataViewRowState.CurrentRows);

                    if (dv.ToTable().Rows.Count > 0)

                        item.Selected = true;

                }

            }

        }

    }

 

but it work only in the first page of the grid.

how can I pass on all of the pages at the grid ?

Princy
Top achievements
Rank 2
 answered on 30 Jul 2012
1 answer
97 views
Hi,

I have a grid, with popup form template. On initial use, I am able to extract the template values (textbox input). But on succeeding input, the value of the textbox (txtName) is always empty even if i change the textbox values.  Below is my code:

<

 

 

telerik:RadGrid ID="RadGrid1" AutoGenerateEditColumn="false" runat="server"

 

 

 

AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False"

 

 

 

AllowPaging="True" AllowSorting="true" OnItemCommand="gridRequestList_ItemCommand" >

 

 

 

 

<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" AutoGenerateColumns="false"

 

 

 

AllowAutomaticInserts="false" AllowAutomaticUpdates="false" >

 

 

 

<Columns>

 

columns here

 

 

</Columns>

 

 

 

 

<EditFormSettings InsertCaption="Setup Info" EditFormType="Template">

 

 

 

<FormTemplate> code here </FormTemplate>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 



protected

 

 

void grid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)

 

{

 

 

if (e.CommandName.Equals(RadGrid.PerformInsertCommandName))

 

{

 

 

    string txtName = ((TextBox)e.Item.FindControl("txtName")).Text;

 

}

}

Thanks.
tj

Shinu
Top achievements
Rank 2
 answered on 30 Jul 2012
1 answer
124 views
hi telerik team,

my code:

                    <telerik:RadScheduler runat="server" ID="rsOrders" Localization-AdvancedEditAppointment="Reserve Slot"
                        Height="400px" StartInsertingInAdvancedForm="true" OnFormCreated="rsOrders_FormCreated"
                        DataSourceID="odsOrders" DataKeyField="bookingID" SelectedView="MonthView" DataStartField="start_date"
                        DataEndField="end_date" DataSubjectField="available_status" OnClientAppointmentInserting="updatePostbackFlag"
                        OnClientAppointment="updatePostbackFlag" OnClientAppointmentDeleting="updatePostbackFlag">
                        <AdvancedForm Modal="true" />
                        <ResourceTypes>
                            <telerik:ResourceType DataSourceID="odsCustomers" TextField="harbor_name" KeyField="harbor_code"
                                ForeignKeyField="harbor_code" Name="Harbor" />
                        </ResourceTypes>
                    </telerik:RadScheduler>

i wan't to add some textboxes to the insert appointment form.

thanx & regards
Isuru
Princy
Top achievements
Rank 2
 answered on 30 Jul 2012
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?