Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
97 views

Am using neseted rad grid for data population. by defailut have setted .rgExpand, .rgCollapse
  {
    display: none;
  }

using this able to see no expand or collapse option.

but i need based on child data need to enable expand & collapse option for particular rows in rad grid.(if no child data expand or collapse image shouldnt be there in grid row)

how to achieve this in Rad nested rad grid.

Ramu
Top achievements
Rank 1
 asked on 05 Jul 2017
8 answers
4.4K+ views
hi,
can anyboby give me a sample code for display respected value in lable on selection of dropdownlist inside gridview.

my prob is that i want to select a item inside radgrid by dropdownlist and want to display corresponding value in a label.
Uma
Top achievements
Rank 1
 answered on 05 Jul 2017
4 answers
362 views
Hi,
I have a requirement where I need to get the events data from a table in database and assign it in a calendar.
The table has startdate, enddate, event title, event description fields.
The data is already saved via a custom form.
I need to bind events on a particular day for the month rendered and should be hyperlinked.
Once the user clicks on a particular event it should redirect to a page where it displays full details.
If the user changes the month then it should bind the appropriate events from the database for the respective days.
I would like to know if this can be acheived via telerik or  not.
If yes any guidance to existing piece of code or documentation would be very much helpful.
Thanks in advance.

Regards,
Mohammed Hafeezuddin
iqra
Top achievements
Rank 1
 answered on 05 Jul 2017
2 answers
52 views

Hi Team,

 

In manual data editing, pressing Enter key in any of the input controls while editing a record triggers InitInsert command instead of the expected command e.g. PerformInsert, Update etc...

 

This is reproducible in the online demo as well. Steps to reproduce;

1- Edit a record.

2- Hit enter while Name input for instance is focused.

3- A postback is triggered and the command name about to be executed is InitInsert.

 

Is there a built-in approach to disable this behavior?

Eyup
Telerik team
 answered on 05 Jul 2017
2 answers
229 views

Hi

I am currently working on Scheduler, i want that scheduler give me option to print the appointments of current day shown in scheduler. How is it possible?

Thanks in advance

Best Regards

Akhtar Abbas

Paul
Top achievements
Rank 1
 answered on 04 Jul 2017
3 answers
358 views
I have a grid , have one GridTemplateColumn has a text box
<telerik:GridTemplateColumn   UniqueName="ForeignTranslation" AllowFiltering="true" FilterControlWidth="70px" 
HeaderText="dd">
<ItemTemplate>
        <asp:TextBox ID="txtTranslationText"  AutoPostBack="true" runat="server" Height="44px" OnTextChanged="txtTranslationText_TextChanged" TextMode="MultiLine"  ></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
 OnTextChanged will save the data to DB

I need to allow user to tab out to the next row of the text box and set focus to the next row text box.
on Itemdatabound, I used
TextBox tb = (TextBox)dataItem["ForeignTranslation"].FindControl("txtTranslationText");
tb.TabIndex = 1;
It will allow me to tab out to the next row text box fine if I don't do any edit, as long as I change the text in the text box, which fires  OnTextChanged, then, the form did post back and the focus lost.

Is there anyway I can make the focus to the next row of text box in the grid after OnTextChanged triggered?

How can I find thegrid  next row clientID on OnTextChanged??


Thanks!
Omar
Top achievements
Rank 1
 answered on 04 Jul 2017
1 answer
201 views

Hi,

I have a javascript function (see below) that fires perform insert command for a data form. I am trying to pass the command argument of the button clicked to the ItemCommand event handler but somehow e.CommandArgument.ToString() tunrs out to be an empty string. Can anyone please guide me as to what i am doing wrong?

aspx:

function callSaveAll(sender,args) {                 
                        var object2 = $find("<%= OrderItemDataForm.ClientID%>");                       
                            if (object2._isItemInserted)
                                object2.fireCommand("PerformInsert", args._commandArgument);                                                                     
                }

 

.cs code:

protected void OrderItemDataForm_ItemCommand(object sender, RadDataFormCommandEventArgs e)
    {

        if (e.CommandName == "Cancel")
            ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CancelEdit();", true);


        if (e.CommandName == "PerformInsert")
        {
            if (Page.IsValid)
            {
                if (e.CommandArgument.ToString() == "SaveNew")
                {
                    saveAndNewButtonClicked = true;
                }
                else if (e.CommandArgument.ToString() == "Save")
                {
                    saveAndNewButtonClicked = false;
                }
            }
        }
    }
Marin Bratanov
Telerik team
 answered on 04 Jul 2017
3 answers
443 views

I've got a RadNumericTextBox's in a grid and a client side "OnValueChanged" event. How can I get the data key for the row of the control when the event fires? How can I find other controls in the same row.

 

                function onValueChanged(sender, args) {
    }

Rumen
Telerik team
 answered on 04 Jul 2017
3 answers
247 views

Hi,

Is there a way to switch a radgrid's edit mode from InPlace to BatchEdit client side. My goal is to have a checkbox to enable Batch Editing. When A RadGrid on the page fires the ClientSide OnCommand event, i would like to enter InPlace or BatchEdit EditMode based on whether the checkbox is checked or not. My reasoning for this is that I have multiple RadGrid's on the page that will be controlled by the single checkbox. 

 

Thanks,

Mike

Marin Bratanov
Telerik team
 answered on 04 Jul 2017
0 answers
119 views

Can I use RadClientDataSource for binding hierarchical grid? do you have any working example?

I tried creating the one with NestedViewTemplate like below ( just skeleton), 

<telerik:RadGrid ClientDataSourceID="RadClientDataSource1">
<MasterTableView>
<Columns></Columns>
<NestedViewTemplate>
<telerik:RadGrid ClientDataSourceID="RadClientDataSource2"/>
</NestedViewTemplate>
</MasterTableView>
</telerik:RadGrid>

I got multiple issue listed below, so I just want to check whether is it possible to use this option for hierarchical binding? if not do you have any other alternative option using client side binding?

1. When I change the pagesize from 10 to 20, expand icon was not appearing for the records starting from 11 to 20.
2. When I expand the first record in first page, then move to next page, expanded record doesn't collapse and it shows in next page as well.
3. When an expand command is fired then both the MasterView and Nestedview get refreshed, not retaining the state, say if I expand second page record, grid goes to first page

 

Sudharsan
Top achievements
Rank 1
 asked on 04 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?