Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
Hi all,

I am very new to Telerik control.i am having a redtreenode in my page i am able to copy and paste the node from one parent node to other parent node but the problem is this the new node is always appearing at the end of the parent node, once i refresh the page then it is getting shorted but as i add the node it always adding at the end. i wanted it to get shorted immediately after adding the node and should appear in the shorted order does any body have any idea pls help me this is an urgency.

Thanks in advance
Rupesh
Nikolay Tsenkov
Telerik team
 answered on 19 Oct 2010
5 answers
686 views
Hi,

I am trying to update the use of a RadGrid to make it more efficient.  I have a series of textboxes in template columns on the grid so I can use editing of all templated cells (like in Excel).  But I need to update each record on data entry.  This all works OK if I only access each template column separately, but I'd like to read all text fields in the template row at once to keep the code in one place.

I have grid columns defined as:

<telerik:GridTemplateColumn UniqueName="Day1">
    <ItemTemplate>
        <asp:TextBox ID="Day1TextBox" runat="server" Width="40px" Enabled="true" OnTextChanged="Day1_TextChanged"
            AutoPostBack="true"></asp:TextBox>
    </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Day2">
    <ItemTemplate>
        <asp:TextBox ID="Day2TextBox" runat="server" Width="40px" Enabled="true" OnTextChanged="Day2_TextChanged"
            AutoPostBack="true"></asp:TextBox>
    </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Day3">
    <ItemTemplate>
        <asp:TextBox ID="Day3TextBox" runat="server" Width="40px" Enabled="true" OnTextChanged="Day3_TextChanged"
            AutoPostBack="true"></asp:TextBox>
    </ItemTemplate>
</telerik:GridTemplateColumn>

In code behind I can access each coumn using:
Protected Sub Day2_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim textbx As TextBox = sender
    Dim item As GridDataItem = textbx.NamingContainer
    Dim keyValues As String = item.KeyValues
    Dim p As Integer = InStr(keyValues, ":")
    Dim p2 As Integer = InStr(keyValues, "}")
    Dim strUniqueID As String = keyValues.Substring(p + 1, (p2 - p) - 3)
    Dim UniqueID As Integer = CInt(strUniqueID)

But what I really want to do is read each of the values from Day1TextBox, Day2TextBox etc when any of the values change.  I have tried the following but it is not right:
Protected Sub Day3_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim editedItem As GridEditableItem = CType(CType(sender, TextBox).NamingContainer, GridEditableItem)
    Dim txtDay1 As TextBox = CType(editedItem("Day1TextBox").Controls(0), TextBox)
    Dim txtDay2 As TextBox = CType(editedItem("Day2TextBox").Controls(0), TextBox)
    Dim txtDay3 As TextBox = CType(editedItem("Day1TextBox").Controls(0), TextBox)
    CalculateLine(3, editedItem)

What I want to do is get a reference to each of the textbox fields in the templates.  I thought GridEditableItem might have worked but seems wrong.

Are there any suggestions how I can go about achieving this?  Thanks.

David Penny
Yeroon
Top achievements
Rank 2
 answered on 19 Oct 2010
2 answers
153 views
Hey everyone,

I am getting this error as in attached file,...And also i have another form--aspx
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
                    OnNeedDataSource="RadGrid1_NeedDataSource"AllowPaging="True" AllowSorting="True"
                    GridLines="None" Skin="Office2007" >
                        <MasterTableView>
                            <RowIndicatorColumn>
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn>
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                        </MasterTableView>
                        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                        </ClientSettings>
                    </telerik:RadGrid>
                </telerik:RadAjaxPanel>
cs is--
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            dtValues = new DataTable();
            dtValues.Columns.Add("Items");
            dtValues.Columns.Add("Rate");
            dtValues.Columns.Add("Quantity");
            dtValues.Columns.Add("Amount");
        }
it is not workin.Showing parser error.Don't know why?...plz help me resolve these?

Thanks
Amit
Pavlina
Telerik team
 answered on 19 Oct 2010
10 answers
683 views

Hello all,

How do I deploy Telerk.web.UI.dll on a shared hosting server? The instruction manual says we need to create a virtual directory and upload the telerik dll. In this case, where do i refer this path my application? 

thanks,
   

Vasil
Telerik team
 answered on 19 Oct 2010
1 answer
71 views
Hi, 
Radgrid collapse not working when HierarchyLoadMode="ServerOnDemand"; and when inside the nested view  panel and multipage are being used.
Pavlina
Telerik team
 answered on 19 Oct 2010
5 answers
181 views
Hi,

I have a RadGrid that puts the row into in inplace editmode if the user double clicks an item in the grid. Before the user can submit the row back to the server a JavaScript client-side validation routine is run on the row and this determines which fields in the row are invalid. I have references to all the controls in the row, this part works perfectly.

What I'd like to know is .. Is there a preferred way of highlighting inplace form elements? I need to do this for each form element that has an incorrect value entered (according to my validation). The controls I'm using in the grid are RadDatePicker, RadComboBox, RadTextBox and RadNumericBox.

Any help would be greatly appreciated.


Andy.
Tsvetina
Telerik team
 answered on 19 Oct 2010
1 answer
89 views

Hi, I have a radtree control and I am adding radgrid to its node programmatically.
I am setting the Scroll options on the grid to freeze the first two columns of the grid. However, the columns are not getting frozen? Any idea why..
I am setting the following properties on the grid.

grid.ClientSettings.Scrolling.UseStaticHeaders = True
grid.ClientSettings.Scrolling.SaveScrollPosition = True
grid.ClientSettings.Scrolling.FrozenColumnsCount =  2

Also, I observe that now for all grids on the different nodes the grid's height is consant. I would want a variable height for the grid, depending on the number of records it has. How do I accomplish that?

Thanks

 

 

 

 

Dimo
Telerik team
 answered on 19 Oct 2010
4 answers
423 views
Is there a way to use the GridDropDownColumn and not require a value?

We have a grid that we want to use for editing, but several of the dropdowns don't require a value. If we use the default behaviour, the first entry in the list is automatically selected and saved. We've experimented with including a null value in the datasource, but this generates various errors.

Is there a simple way to use the dropdown behaviour without requiring a value to be selected?
Alex Vr
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
86 views

Dear Telerik team

We upgraded to a Q1 2009 version of the Telerik controls to avail ourselves of some fixes and new features but we were using the Telerik default skin as it blended in quite well with our application.

Unfortunately the new version of Telerik skin doesn't blend at all well in a lot of places and we have just been through the process of isolating the various components where we want to use a custom skin.  Our final preferred look is going to be partly Telerik, partly custom skin).  We have fixed the rad panel bar so our menu looks largely like it did and that was pretty painful but now there is the grouped reports. 

Attached is a comparison of the view of a grouped grid template after the new skin version applied and prior to the new applied.  I am hoping you can point me to how to swap this back.  I assume there is more than the grouping section of the grid.css going on as swapping these classes out doesn't do anything.  Replacing the grouping styles in the grid.CSS with the old styles alters the style but not to what it was.  Do you know why this may be happening? 

I am not sure if you are planning in future to make changes to standard skins without renaming them something new but please let us know if this is likely; as we'll import the entire skin to the solution and customise it now as it has been hours and hours of work to sort out issues with this version change so we definitely don't want to do this again.

Dimo
Telerik team
 answered on 19 Oct 2010
5 answers
152 views
Hi All,

We enabled radgird with AllowSorting="true", and we use pagination for the radgrid too. The issue when you click the header and let it sort, it only keep the sorting order for the that page, when it come to the rest of pages, the sort order is lost. How to solve this problem? e.g, if we want to sort it by state, we want it all the data (all pages) are sorted by state, not the page where I click the sort arrows.

Thanks for the help, really appreciate it,
Helen
Pavlina
Telerik team
 answered on 19 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?