Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Good morning, dear Telerik wizards,

Simple scenario.. RadGrid showing fine. On particular context menu click, opening via popup one of a number of DIFFERENT edit user controls. For example:
RGVMyTasksAll.MasterTableView.EditFormSettings.UserControlName = "MemberITaskDelete.ascx";
RGVMyTasksAll.MasterTableView.EditFormSettings.PopUpSettings.Width = 400;
sEditTUID = RGVMyTasksAll.Items[radGridClickedRowIndex].Cells[2].Text;
tName = RGVMyTasksAll.Items[radGridClickedRowIndex].Cells[4].Text;
RGVMyTasksAll.MasterTableView.EditFormSettings.CaptionFormatString = "Deleting Task: " + tName.ToUpper();
RGVMyTasksAll.Items[radGridClickedRowIndex].Edit = true;
ck = new HttpCookie("ITID", sEditTUID);
Response.Cookies.Add(ck);
RGVMyTasksAll.MasterTableView.AllowAutomaticInserts = false;
RGVMyTasksAll.MasterTableView.AllowAutomaticUpdates = false;
RGVMyTasksAll.Rebind();
break;
Probably don't need all of those lines in there... but when the Rebind is executed,the user control pops up just fine. This particular one is focussed on gathering adequate permissions before delete of task is authorized. Delete in this case is NOT a delete of record, but a change of status of a record... so it is really an update.

When done, I get the popup to go away by:
RadGrid rg = (RadGrid)CMFinds.FindControl(p, "RGVMyTasksAll");
rg.AllowAutomaticInserts = false; rg.AllowAutomaticUpdates = false; rg.AllowAutomaticDeletes = false;
rg.MasterTableView.AllowAutomaticInserts = false; rg.MasterTableView.AllowAutomaticUpdates = false; rg.MasterTableView.AllowAutomaticDeletes = false;
rg.MasterTableView.IsItemInserted = false;
rg.MasterTableView.ClearChildEditItems();
rg.Rebind();
My own (better for many complex situations) recursive Find Control locates the calling grid... again not sure that I need all the lines... but it closes, delete (which is change of state) is accomplished earlier, all is well.

Problem: Next time I come in to do another delete, the popup user control contains the data from the PRIOR delete, not the current one.

So two questions:
1. How can I make sure the edit control either unloads inbetween calls or resets the data properly? Important
2. What can I delete from this code as unnecessary? Just out of curiosity.

Thanks.
Chris

Mira
Telerik team
 answered on 14 Jul 2011
1 answer
77 views
Hello,

Can you provide me with guidance how to create RadGrid just like Ms Access.
Insert row is always visible under current rows and once user leaves a row in insert mode new insert row is created.

thanks


Daniel
Telerik team
 answered on 14 Jul 2011
1 answer
126 views
Hi,

I'm experiencing an issue to add a new column with several buttons there.
Found the article about how to create the item template dynamically, but all those controls are dataBind. (http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html)

So, I have a grid created dynamically and binded to the list of objects (some class).
All columns are created dynamically too, since I need only several class properties to be displayed.
And I need to add one more column to the end of the grid with the 2-3 buttons there and I do not see how to add them without binding to the concrete data field.
Each button's click should raise the event and I should know what exact button was pressed and from which row.

Can you please help me with this?

Thanks,
Myxville
Princy
Top achievements
Rank 2
 answered on 14 Jul 2011
0 answers
38 views
Ignore, found the solution
OzCoder
Top achievements
Rank 1
 asked on 14 Jul 2011
3 answers
270 views
Inside The Radgrid
I have three RadToolBarButton button .
I want enable false one RadToolBarButton button
how to find control radgrid inside RadToolBarButton

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 14 Jul 2011
1 answer
168 views
For the radtreeview I need to format the next for each node. I do not see a way to do this.
If you can please expain how this is done.

Thank you.
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2011
1 answer
91 views
My question is...
Can a column header go across 2 columns?

This is what I'm needing

|Open Items by Age |
|Prior   |   Current     |

In this example "Open Items by Age" goes across both columns Prior and current.

Any Help would be appreciated.

Thanks
Kristi
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2011
4 answers
358 views
Hello I want to get the the index of selected row on Radgridindexchanged event and I am getting problem for that. SelectedIndex property is not available in the RadGrid Please help
Thanks in advance.
abhijeet
Top achievements
Rank 1
 answered on 14 Jul 2011
1 answer
114 views
Hi,

Can we put only top border for radgrid pager when we enable EnableEmbeddedSkins="false" to a radgrid? I did the following way but it didn't work.

        .rgpager
        {
           border-top: solid 1px black !important;
        }

 <PagerStyle BackColor="#F5F5E9" ForeColor="#F5F5E9" CssClass="rgpager" />

Grid Settings

<telerik:RadGrid ID="rgDependency" runat="server" Height="476px" GridLines="None"
    ShowGroupPanel="false" ShowFooter="false" AutoGenerateColumns="false" EnableEmbeddedSkins="true"
    AllowPaging="true" PageSize="20" BorderStyle="None" BorderColor="Black" BorderWidth="0px"
    BackColor="White" OnItemCommand="rgDependency_ItemCommand" OnItemDataBound="rgDependency_ItemDataBound"
    OnNeedDataSource="rgDependency_NeedDataSource" AllowSorting="true">
    <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
        HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
    <ItemStyle HorizontalAlign="Center" BackColor="White" />
    <CommandItemStyle BackColor="#f5f5e9" ForeColor="#f5f5e9" Height="10px" />
    <AlternatingItemStyle BackColor="#F5F5E9" HorizontalAlign="Center" />
    <PagerStyle BackColor="#F5F5E9" ForeColor="#F5F5E9" CssClass="rgpager" />
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" HideStructureColumns="true"
        Excel-Format="ExcelML" />
    <MasterTableView DataKeyNames="DependencyNumber" CommandItemDisplay="Top" GridLines="None">
        <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="true" ShowAddNewRecordButton="false" />
        <Columns>
            //columns
        </Columns>
        <NoRecordsTemplate>
            No Dependencies found</NoRecordsTemplate>
    </MasterTableView>
    <ClientSettings>
        <Resizing AllowColumnResize="true" />
        <Scrolling AllowScroll="true" ScrollHeight="400px" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 14 Jul 2011
5 answers
212 views
Hi!

I would like to know if there is a way of changing the language of a filter in a grid aswell anothers objects in the grid. I tried the cultural but it didn't work.

Many Thanks,
FEST
Princy
Top achievements
Rank 2
 answered on 14 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?