Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
I was trying out my application as given in this example which is batch update using SqlDataSource in aspx code.
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

But unfortunately, while updating/inserting, I get the database error that the values are null.
So how can I do the database updates in code
Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
8 answers
86 views
In the GroupsChanging event of RadGrid, I want to count the number of columns that are currently grouped or just check to see if any grouping exists.  Currently, I have it hiding the export to Excel/PDF buttons if it is a grouping action and unhiding if it is an ungrouping action.  However, if there are more than one columns grouped, I still want to keep the export buttons hidden.   If I do a check to see if there are any columns still grouped, I can continue to hide the export buttons.  I can't seem to find any help on this.  Thoughts?

Protected Sub gvAccounts_GroupsChanging(sender As Object, e As GridGroupsChangingEventArgs) Handles gvAccounts.GroupsChanging
    If (e.Action = GridGroupsChangingAction.Group) Then
        gvAccounts.AllowPaging = False
        gvAccounts.MasterTableView.GetColumnSafe(e.Expression.GroupByFields(0).FieldName).Visible = False
        gvAccounts.MasterTableView.CommandItemSettings.ShowExportToExcelButton = False
        gvAccounts.MasterTableView.CommandItemSettings.ShowExportToPdfButton = False
    ElseIf (e.Action = GridGroupsChangingAction.Ungroup) Then
         IF ''add some code here to check if there are any grouped columns, if false then
            gvAccounts.MasterTableView.CommandItemSettings.ShowExportToExcelButton = True
            gvAccounts.MasterTableView.CommandItemSettings.ShowExportToPdfButton = True
        End If
        gvAccounts.AllowPaging = True
        gvAccounts.MasterTableView.GetColumnSafe(e.Expression.GroupByFields(0).FieldName).Visible = True
 
    End If
 
End Sub
Princy
Top achievements
Rank 2
 answered on 05 Mar 2014
15 answers
452 views
Hi,
I have to use grouping in RadGrid. But my requirement to use this feature in some different way. I want to drag and drop the columns on my own created Div in the same page(having RadGrid) instead of using GridGroupPanel. And then on the click of button (which is on the Div) to apply grouping performs the desired result of grouping. Can you please help me in this regard. How can i achive this functionality.

Thanks in Advance ... 
Princy
Top achievements
Rank 2
 answered on 05 Mar 2014
3 answers
414 views
How server code can prevent tab change in an scenario as linked sample?

sample: http://www.telerik.com/help/aspnet-ajax/tabstrip-multipage-integrate-with-tabstrip.html

I know than I can handle tabclick in this way:

protected void  RadTabStrip1_handling_tabclick(object sender, EventArgs e) 
{  
  RadTabStrip1.Tabs[0].Selected = true;    
  RadTabStrip1.Tabs[0].PageView.Selected = true;


But it seems a little dirty. I would like a kind of canceled radgrid event member for radtabstrip event:

protected void linkButton1_OnClick(object sender, EventArgs e){  
   e.canceled  = true;
}

someone know a more elegant way to prevent change tab? 



 





Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
3 answers
71 views
Hi All,

The Users would like to be able to insert new records "back-to-back."  Right now they click on "Add new record," fill in their data, click on "Insert" and have to repeat that process.  They would like the addition of another button, next to "Insert," that allows for a new records to be added immediately after the current one.  Essentially, the current record would be entered, the fields would be cleared and the RadGrid would remain in EditMode.  Is this at all possible?

Thanks,
Mark
Princy
Top achievements
Rank 2
 answered on 05 Mar 2014
4 answers
204 views
I need to create a grid that is filled from a custom objectdatasource. It should have no pager but when I scroll down (or up) it should dynamically load the appropriate data. I looked through all the examples but since they all use some sort of SQL I could not get them to work for me.

Are there any examples available with a custom objectdatasource?

Regards,
Rainer
Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
1 answer
535 views
Hi All,

I am attempting to make the font size of all text in the RadGrid smaller.  I have tried the following:

RadGrid.MasterTableView.Font.Size = FontUnit.XXSmall;

This appears to only affect the column headers.  Does anyone have any suggestions?

Thanks,
Mark
Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
1 answer
49 views
Hello I want to know what's the last version of telerik rad controls asp.net
Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
5 answers
152 views
I have a GridDropDownColumn in RadGrid. I have added SelectedIndexChanged method on it in edit mode. Whenever this method is triggered, the column text becomes blank in the grid (for all rows except the one which is being edited).

I used the following in ItemCreated method:

rComboBox.AutoPostBack = true;
rComboBox.SelectedIndexChanged += MyComboBox_SelectedIndexChanged;

My GridDropDownColumn looks like:

<telerik:GridDropDownColumn DataField="MYDROPDOWNCOLUMN" DropDownControlType="RadComboBox"

HeaderText="Market Factor" ListTextField="MYDROPDOWNCOLUMN" ListValueField="MYDROPDOWNCOLUMN"

UniqueName="MYDROPDOWNCOLUMN" EnableEmptyListItem="true"

EmptyListItemText="--Choose an option--" EmptyListItemValue="">

</telerik:GridDropDownColumn>
Vikas
Top achievements
Rank 1
 answered on 04 Mar 2014
1 answer
66 views
Please fix colors in highlighted elements in the scenario wizard in VS2013 (see attached)
Petar
Telerik team
 answered on 04 Mar 2014
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
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
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?