Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
194 views
Hello,
I'm using the radgrid's templated edit mode,
in the template there is a button which opens a radwindow (in javascript) and passes the text from a textbox (which is also inside the edit template) to that radwindow.
and eventually when a button in the radwindow is clicked, the radwindow gets closed and updates the text inside that textbox.

Everything is done without posting back to the server.

my only problem is reading/writing from that textbox inside the templated edit form.

Any suggestions?

Thanks,

Izik
Izik
Top achievements
Rank 1
 answered on 13 Sep 2010
3 answers
323 views
What I am trying to do is to have a country combobox that updates a state/region combobox, but if the country has no known state/region then hid the combobox and show a RadInput box.  I have the cascading drop downs working but cannot get it to hide the combobox and display the text box. any help would be appreciated.

Simon
Telerik team
 answered on 13 Sep 2010
10 answers
419 views
Hi,

I've used a radgrid with nestedviewtemplate, but placed a user control in the template as below.  The user control displays a form with details about the device (about 20 fields, including model, model description as in the Gridrow).  It all works as I would like, however, in the user control, I have the ability to update the "Device".  When the Device updates, I'd like the grid to rebind to show the update.  Is there a way I can rebind the grid from the user control, and have that row expanded after rebind?
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AutoGenerateColumns="False" OnItemDeleted="RadGrid1_ItemDeleted"  AllowAutomaticDeletes="True" ShowStatusBar="true" OnDataBound="RadGrid1_DataBound" >
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="Device_Id, Model" AllowMultiColumnSorting="True" GroupLoadMode="Server">
<Columns>
<telerik:GridBoundColumn DataField="Device_Id" HeaderText="Device_Id" SortExpression="Device_Id" UniqueName="Device_Id">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Model" HeaderText="Model" SortExpression="Model" UniqueName="Model">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Model_Desc" HeaderText="Model_Desc" SortExpression="Model_Desc" UniqueName="Model_Desc">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ConfirmText="Delete this device?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
<HeaderStyle Width="50px"  />
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" Width="50px" />
</telerik:GridButtonColumn>
</Columns>
<NestedViewSettings DataSourceID="SqlDataSource2">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="Device_Id" MasterKeyField="Device_Id" />
</ParentTableRelation>
</NestedViewSettings>
<NestedViewTemplate>
<asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap" Width="95%">
<div class="contactWrap">
<fieldset style="padding: 10px;">
<legend style="padding: 5px;">Detail info for Device:   ID: <%#Eval("Device_Id") %>  |  Model: <%#Eval("Model") %></legend>
<ucUPNG:ucUPNG ID="ucUPNG" runat="server" Key='<%#Eval("Device_Id") %>'  />
</fieldset>
</div>
</asp:Panel>
</NestedViewTemplate>
</MasterTableView>
<PagerStyle Mode="NumericPages"></PagerStyle>
<ClientSettings AllowDragToGroup="true" />
</telerik:RadGrid>
Jason
Top achievements
Rank 1
 answered on 13 Sep 2010
5 answers
284 views
We have a page that uses the form decorator on it. For some reason, there are a few people who get the Sys is undefined error when they go to this page. The decorated textboxes do not appear and they are unable to login. What is odd is that we have no other documented issues of this problem from anyone except for a few incidences from one company. We've gotten the page source from them and it is identical to the page source that we get. It just appears that one of the javascript files isn't getting download. We are currently using Q3 2008 with all the service packs applied. We are also using the RadScriptManager and RadAjaxManager on the page. They get the error as soon as they browse to the page.

Any ideas?
Adam
Paul J
Top achievements
Rank 1
 answered on 13 Sep 2010
2 answers
123 views
Hi,

I have a user control that is being used to edit items in a radGrid.  In the user control I have a customvalidator that uses a client-side script.  The script needs to reference to controls in the user control: a standard checkbox, and a telerik textbox.  The checkbox is fine as the client id doesn't change.  The textbox reference fails.  How can I get a reference to the Telerik text box?

Thanks,
Bruce
Top achievements
Rank 1
 answered on 13 Sep 2010
1 answer
113 views
Trying to implement a RadComboBox that updates as the user types.  There is no problem with the RadComboBox  and populating it with the appropriate data.  Where I am running into a problem is selecting a value if a user tried finding a value via a RadTextBox.  The search performs properly but I need it to select the record found and update a few additional fields. 

See Comment:
'If sASI_Num <> "" then update Label1 & Have _ddCUName be updated with the value selected as it properly is returned by the stored procedure just not selected.

See Code.
    <telerik:RadTextBox Runat="server" id="_txtCUNum" Width="50px">
    </telerik:RadTextBox>
</td>
<td>
    <asp:Label ID="Label1" runat="server" Text="Label" Font-Bold="True" ForeColor="Green"></asp:Label>
</td>
<td>CU Name:
</td>
<td>
    <telerik:RadComboBox id="_ddCUName" Runat="server" Width="450px" EmptyMessage="Type a Credit Union Name" HighlightTemplatedItems="true" height="100px" EnableLoadOnDemand="true" OnItemsRequested="RadComboBoxProduct_ItemsRequested">
        <headertemplate>
            <TABLE>
                <TBODY>
                    <TR><TD>CU Name</TD><TD>City</TD><TD>State</TD></TR>
                </TBODY>
            </TABLE>
        </headertemplate>
        <itemtemplate>
            <TABLE>
                <TBODY>
                    <TR>
                        <TD><%#DataBinder.Eval(Container, "Text")%></TD>
                        <TD><%#DataBinder.Eval(Container, "Attributes['City']")%></TD>
                        <TD><%#DataBinder.Eval(Container, "Attributes['State']")%></TD>
                    </TR>
                </TBODY>
            </TABLE>
        </itemtemplate>
    </telerik:RadComboBox></td>
   Protected Sub RadComboBoxProduct_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
        Dim sAsi_Num As Object
        If Me._txtCUNum.text = "" Then
            sAsi_Num = DBNull.Value
        Else
            sAsi_Num = Me._txtCUNum.text
        End If
        Try
  
            oConn.Open()
            Dim ocmd As New SqlCommand("sp_getCUSearch", oConn)
            ocmd.CommandType = CommandType.StoredProcedure
            With ocmd.Parameters
                .Add(New SqlParameter("@asi_num", sAsi_Num))
                .Add(New SqlParameter("@SearchStr", e.Text))
            End With
            reader = ocmd.ExecuteReader()
            If reader.HasRows Then
                '-------------------------
                While reader.Read
                    Dim item As New RadComboBoxItem()
  
                    item.Text = DirectCast(reader("cuName"), String)
                    item.Value = reader("asi_num").ToString()
  
                    Dim sCity As String = DirectCast(reader("City"), String)
                    Dim sState As String = DirectCast(reader("State_ID"), String)
  
                    item.Attributes.Add("City", sCity.ToString())
                    item.Attributes.Add("State", sState.ToString())
  
                    'item.Value += ":" + unitPrice.ToString()
  
                    _ddCUName.Items.Add(item)
  
                    item.DataBind()
                    'Next
                End While
'If sASI_Num <> "" then update Label1 & Have _ddCUName be updated with the value selected as it properly is returned by the stored procedure just not selected.
            End If
        Catch ex As Exception
        Finally
            oConn.Close()
        End Try
    End Sub
Simon
Telerik team
 answered on 13 Sep 2010
1 answer
146 views
I have a huge problem with my RadGrid. Included it into an aspx Site, filled with data. Everything is ok.

But if I select a row with the checkbox in the first column, the whole Grid moves higher the more deeper the selection was made (Only IE 7&8).
I hope you understand my problem by looking at the two screenshots.

Has anybody the same problem or better: a solution?
Dimo
Telerik team
 answered on 13 Sep 2010
1 answer
55 views
Hi,

I do have issue with the group by panel of radgrid control.
 When the group by Column is used and then try to edit the data having pop up window ,
the Popup window  get hidden behind the Group panel.
if grouping is not used the pop up appear properly .
i have attached snapshot img file for reference.
Kindly let me know were do i have might gave gone wrong.

Dimo
Telerik team
 answered on 13 Sep 2010
0 answers
86 views

This is the same post as "http://www.telerik.com/community/forums/aspnet-ajax/grid/filter-on-showing-results-on-postback.aspx"
(Sorry for the type in the title)
======================================================================================================
Hi -

I have a basic radGrid that I have wired up with a dataset using the Telerik AjaxManager and RadScriptManger.
 
I used the basic procedure outlined in the Rad Ajax Courseware. It worked the first time, but the second one I just created in not working.

Here's what is happening:

 

  • I enabled filtering on the grid via the SmartTag and PropertyBuilder->General Settings->Allow Filtering By Column.
  • I am using RadGrid.ReBind to initailly bind my grid to the data and this is working fine.
  • At runtime, the gird shows data and I can apply a filter by any column, but when I set the condition like "contains", the gird just disappreas. 
  • However, when I press any button on the form that causes a post back, the Grid then correctly shows the filtered data.

This is only the second grid I have wired up. What might be causing this unwanted behavior?

Any help is appreciated.

PS- I am using v2010.1.209.35

DuntonMCAD
Top achievements
Rank 1
 asked on 13 Sep 2010
1 answer
171 views
Hi -

I have a basic radGrid that I have wired up with a dataset using the Telerik AjaxManager and RadScriptManger.
 
I used the basic procedure outlined in the Rad Ajax Courseware. It worked the first time, but the second one I just created in not working.

Here's what is happening:

 

  • I enabled filtering on the grid via the SmartTag and PropertyBuilder->General Settings->Allow Filtering By Column.
  • I am using RadGrid.ReBind to initailly bind my grid to the data and this is working fine.
  • At runtime, the gird shows data and I can apply a filter by any column, but when I set the condition like "contains", the gird just disappreas. 
  • However, when I press any button on the form that causes a post back, the Grid then correctly shows the filtered data.

This is only the second grid I have wired up. What might be causing this unwanted behavior?

Any help is appreciated.

PS- I am using v2010.1.209.35

DuntonMCAD
Top achievements
Rank 1
 answered on 13 Sep 2010
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?