Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
168 views
hi stuck on something with radgrid and ajax panel
I have a radgrid with 20 columns(15 hidden), one datasource, one textbox, two buttons(search and continue), one table with lierals for the 15 hidden columns outside the grid.
Scenario: Radgrid and table are wrapped in an ajaxpanel. User enters search criteria in textbox 1, radgrid populates based on criteria. User uses COmmandName 'Select' to select row. SelectedIndexChanged grabs values of selected row and populates literals. Very nice. User presses continue and goes to next page. if user uses back button, all data is then missing! This is definitely due to my use of the ajaxpanel. is there a way to keep the page in its selected state and use the ajax?
My designer data is simplified significantly but the idea is there.
thanks
mac
 
    Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged  
 
        For Each item As GridDataItem In RadGrid1.MasterTableView.GetItems(New GridItemType() {GridItemType.Item, GridItemType.AlternatingItem})  
            Dim dataitem As GridDataItem = DirectCast(item, GridDataItem)  
 
            If dataitem.Selected Then  
                'Access the data in the row using the ColumnUniqueName      
                EMP_IDlit.Text = dataitem("EMP_ID").Text  
                EMPFirstNamelit.Text = dataitem("EMPFirstName").Text  
                EMPLastNamelit.Text = dataitem("EMPLastName").Text  
                EMPPoslit.Text = dataitem("EMPPos").Text  
                PosDescriptionlit.Text = dataitem("PosDescription").Text  
                PosTypelit.Text = dataitem("PosType").Text  
                HomePoslit.Text = dataitem("HomePos").Text  
                Emp_Statuslit.Text = dataitem("Emp_Status").Text  
                Classnlit.Text = dataitem("Classn").Text  
                CostCentrelit.Text = dataitem("CostCentre").Text  
                site_prelit.Text = dataitem("site_pre").Text  
                sitelit.Text = dataitem("site").Text  
                Affiliationlit.Text = dataitem("Affiliation").Text  
                std_hourslit.Text = dataitem("std_hours").Text  
                Documentlit.Text = dataitem("Document").Text  
                Departmentlit.Text = dataitem("Department").Text  
                homesitelit.text = dataitem("homesite").Text  
                infopanel.visible = True 
 
            End If  
        Next  
 
 
        EmpPos = RadGrid1.SelectedValues("EmpPos")  
        Empid = RadGrid1.SelectedValues("Emp_ID")  
        SelectedID.Text = EmpPos & "|" & Empid & "|" & JDC  
 
    End Sub 

Design is along these lines

    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" 
        runat="server" Text="Name or Pos#" /> 
    <telerik:RadAjaxPanel ID="pnl" runat="server">  
    <telerik:RadGrid ID="RadGrid1"     runat="server" AutoGenerateColumns="False">  
</telerik:RadGrid> 
<datasource> 
<asp:panel id="infoPanel" runat="server">  
table of literal ctrls  
<asp:button id="Continue" runat=server /> 
</asp:panel> 
</telerik:ajaxPanel> 
 
 
 
Sai Krishna
Top achievements
Rank 1
 answered on 18 Jan 2010
2 answers
138 views
Hi

I have a gridview where my orders are listed. I need to have a list where my orderlines are displayed

like this

id    ordername        date                invoicelines
1    Order of plates  21-01-2010    line one bla bla bla
                                                      line two bla bla bla
                                                      line three bla bla bla

2    Order of Milke    25-01-2010    line one bla bla
                                                      line two bla bla


how can that be accomplished?
lkj lkj
Top achievements
Rank 1
 answered on 18 Jan 2010
1 answer
144 views
When I select a file, the input area shows the entire file path and file name, but when I run the demos, it will show just the file name.
I can't find any settings in the demo code that allows this to occur.  What do I have to do to show only the selected file and NOT the full file path in the input area?

Thanks,
Jim
Genady Sergeev
Telerik team
 answered on 18 Jan 2010
3 answers
582 views
Is it possible, when using the "Paste Plain Text" button, to have paragraphs wrapped in <p> tags rather than separated by <br><br>? I have NewLineBr set to "true" but I don't think that applies for pasting. Let me know if this is unclear or more information is needed. Thank you.
Dobromir
Telerik team
 answered on 18 Jan 2010
2 answers
91 views
I have an update panel and within it I have a grid that has date controls. When I load the grid for the first time I can manipulate the date control without an error. After a postback I get an error "Unspecified Error" when I click on date icon. If I disable the update panel the error disappears.
Whats the issue here?


Mon NN
Mon NN
Top achievements
Rank 1
 answered on 18 Jan 2010
2 answers
192 views
Is there a way to make a PanelBar item display text formatted with newline/carriage returns? I am currently building my text string to be displayed with the proper formatting:

string itemText = "Some text on line 1" + Environment.NewLine + "Some text on line 2";
RadPanelItem item = new RadPanelItem();
item.text = itemText;

I am expecting the item to be displayed as:

Some text on line 1
Some text on line 2

However, everything is shown on one line until the width of the item has been reached and the text then just wraps around:

Some text on line 1Some tex
t on line 2

This is a minor content formatting issue in my application, but is it possible?
Frank Grimes
Top achievements
Rank 1
 answered on 18 Jan 2010
3 answers
113 views
Hi there!
I would like to know if there is any kind of way to get or set a property of an object that is inside a FormTemplate. For instance:
<telerik:RadGrid ID="RadGrid1" ...> 
    <MasterTableView ...> 
        <EditFormSettings EditFormType="Template"> 
            <FormTemplate> 
                <telerik:RadPanelBar ID="RPBTemplate" ...> 
                    <Items> 
                        <telerik:RadPanelItem ...> 
                            ... 
                        <telerik:RadPanelItem ...> 
                            ... 
                    </Items> 
                </telerik:RadPanelBar> 
            </FormTemplate> 
        </EditFormSettings> 
    </MasterTableView> 
</RadGrid> 

and I want that in the PageLoad event it sets the visibility of the first RadPanelItem to true and the second one to false. Is that possible? Because I tried some ways but it seems impossible to access to the objects included in the FormTemplate. Or more likely it's possible that I'm not able to do it because of my unexperience in the RadControls, I dunno.

I tried to «surf» the RadGrid1.MasterTableView.EditFormSettings.FormTemplate object, but nothing to do... let me know and thanks in advance!
Daniel
Telerik team
 answered on 18 Jan 2010
1 answer
87 views
Hi there!
I want to know if there's any way to show the EditForm (Template or InPlace) at the top of the list of RadGrid, since it usually shown in the last page.

Thanks in advance!
Daniel
Telerik team
 answered on 18 Jan 2010
1 answer
166 views

Hello telerik team,

I have a question.
How is it that in certain circumstances when I try to register a JavaScript with the RadScriptManager it does not work. But all the telerik controls work just fine?

Do you guys have another way of registering JavaScript?

If you guys do I would like to know the way how it's done.

Thanks in advance,
Jeroen Speldekamp

Veselin Vasilev
Telerik team
 answered on 18 Jan 2010
1 answer
151 views

 Hi,


http://demos.telerik.com/aspnet-ajax/grid/examples/programming/groupby/defaultcs.aspx


I’m tryingto create a dynamic group by grid and use above sample.

In stead ofusing datasourceid field, I create a dynamic datatable object and bind it withthe grid’ datasource property.

The sampleworks, however each time when I drag and drop a column header into the group byarea.

There isobject null error. Any idea? The source of the data is binded on need dataevent, and I also tried the batabind event as well.

Sebastian
Telerik team
 answered on 18 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?