Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
159 views

hi, i have just upgraded my project to 2009 Q1, and besides a lot of design changes and problems, I have a problem with tooltip
The Position seems to be lost when ever I set OffsetX (it does not show the "point to")
I'll just put example code here so you can try to reproduce the case

    <form id="form1" runat="server">  
    <telerik:RadScriptManager runat="server" OutputCompression="AutoDetect">  
    </telerik:RadScriptManager> 
    <telerik:RadToolTip ID="RadToolTip1" runat="server" Skin="Vista" TargetControlID="map_canvas"   
        ManualClose="True" RelativeTo="Element" RenderInPageRoot="True"   
        VisibleOnPageLoad="True" IsClientID="True" 
        Position="TopLeft" OffsetX="200">  
        <div> 
            Hello World  
        </div> 
    </telerik:RadToolTip> 
    <div id="map_canvas" style="top: 350px; left: 330px; position: absolute; height: 26px;  
        width: 56px; float: left"> 
    </div> 
    </form> 
Svetlina Anati
Telerik team
 answered on 18 Mar 2009
0 answers
62 views
Hi all,

        In my project i am using GridDropDownColumn in RadGrid. In this i want to populate data from database. The relationship in database is one column contains Names and the other column contains the parentName, which is one of the first column.

       So, in this GridDropDown i need to populate parentName column, but the Name belonging to parentName i should not populate it.

    Name       ParentName
      a             b
       b c
c a
d f
e d
f d

     This is the example i have shown. When i expand the GridDropDownColumn of first row i have to get all items in Name except "a" item. Because it can not be itself to parent.


 Thanks,
Nagarjun S. 
nagarjun
Top achievements
Rank 1
 asked on 18 Mar 2009
7 answers
332 views
I am having problems displaying totals of my decimal columns (sums of columns from SQL Query). I am not certain how it should be done and the error I am getting is: 

Input string was not in a correct format.


If (TypeOf e.Item Is GridDataItem) Then 
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem) 
 
            Dim fieldValue As Integer = Integer.Parse(dataItem("Total Leads").Text) 
            Leadtotal = (Leadtotal + fieldValue) 
 
            Dim fieldValue2 As Integer = Integer.Parse(dataItem("Credit Count").Text) 
            CreditTotal = (CreditTotal + fieldValue2) 
 
            Dim fieldValue3 As Integer = Integer.Parse(dataItem("Our Cost").Text) 
            OurCostTotal = (OurCostTotal + fieldValue3) 
 
            Dim fieldValue4 As Integer = Integer.Parse(dataItem("Resale Amount").Text) 
            ResaleTotal = (ResaleTotal + fieldValue4) 
 
 
        End If 
        If (TypeOf e.Item Is GridFooterItem) Then 
            Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem) 
            footerItem("Total Leads").Text = Leadtotal.ToString() 
            footerItem("Credit Count").Text = CreditTotal.ToString() 
            footerItem("Our Cost").Text = OurCostTotal.ToString() 
            footerItem("Resale Amount").Text = ResaleTotal.ToString() 
        End If 

The first two work fine, probably because they are coming from the database as integers.  But even when I try to change #3 and #4 to decimals I get the same error - like this: 
Dim fieldValue3 As Decimal = Decimal.Parse(dataItem("Our Cost").Text) 
            OurCostTotal = (OurCostTotal + fieldValue3) 
 
            Dim fieldValue4 As Decimal = Decimal.Parse(dataItem("Resale Amount").Text) 
            ResaleTotal = (ResaleTotal + fieldValue4) 

What am I doing wrong?


Sasa
Top achievements
Rank 1
 answered on 18 Mar 2009
2 answers
108 views
hi,

     Whenever a user selects a skin from a list of skins in combobox on the aspx page, I should change the skin of all the controls on the page to that value. Some controls are built dynamically while the page loads so I cannot declare all the controls under

TargetControls

in the RadSkinManager. 
    
    How can I acheive this task?  If there is any option to do without using RadSkinManager. 

Thanks in advance !!!
  

 

Sebastian
Telerik team
 answered on 18 Mar 2009
2 answers
51 views
hello all ...i am using a rad grid with "default" skin i want to make the header section smaller ...i tried doing so in the declaration of the the rad grid but no matter what i put the value it still doesnt work..any sugestions
ibrahim
Top achievements
Rank 1
 answered on 18 Mar 2009
1 answer
219 views
Hi Telerik,

I am calling one java script function from radcombo's OnClientLoad event.

Now, I want to call the same java script function from radgrid.

Could you please tell me, Is there any similar kind of event in radgrid ?

Thanks in advance,
Balaji Velasiri.
Princy
Top achievements
Rank 2
 answered on 18 Mar 2009
4 answers
140 views
Dear all,

I am writing an application to maintain Hierarchies within a database.
I have used a treeview control with pretty good success but my users find the drag and drop facility a bit difficult to use because the Hierarchies can get quite big.
Our latest Idea is to try and emulate the look and feel of Windows Explorer.
This would require that I restrict the size of the TreeView and make some scroll bar(s) appear if it grows too much when expanded.

Could someone give me an idea how I could do this?
I could use something like an IFrame but I'd rather keep it all in the same frame...

Many Thanks

PS: my expertise is SQL Server so I am not entirely "fluent" in ASP.Net. Please forgive me if I missed something obvious!
Eric
Top achievements
Rank 1
 answered on 18 Mar 2009
2 answers
118 views
I am having problems building the source using the provided Nant build project.  We need to build our source because we need to modify the AssemblyProtection.cs.  Is anyone else having this issue?

To Reproduce:
I pulled down the source for 2009Q1 and made our changes to the AssemblyProtection.cs as specified by Telerik.  I can compile the projects in a sperate solution, but when I use the provided ["c:\nant\bin\nant" net20] per the Telerik Source Code Build Instructions document I get a build error.
 ...
mergeChartingAndWebUI:
[move] 1 files moved.
[delete] Deleting 1 files.
buildDesigner:
buildProject:

BUILD FAILED

C:\RadControlsAjaxSource\Build\default.build(123,3):
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe (return code was 1)

Total time: 240.8 seconds.



From what I can tell by looking at the build files, the Designer project is failing to build because it is referencing a Telerik.Web.UI in the C:\RadControlsAjaxSource\Telerik.Web.UI\bin.  The bother is that the provided Nant build removes this dll as it works its magic of merging dlls.  After removing this dll, it builds this project that was planning on using what was just deleted.

Thanks for any suggestions, I'll continue to trace through this Nant Build to see if I can get a handle on what is really going on.

Thanks
Tim T.

Atanas Korchev
Telerik team
 answered on 18 Mar 2009
5 answers
194 views
I have custom filtering implemented in my grid.
I have a dropdown inside the filtertemplatecolumn on one of the columns.

The rest of the columns have standard filtering.

If i have a value set in my dropdown and I try to set the filter value for another column both of them do not work simultaneously. I want the results filtered based on both the column filters, that is my custom filter and standard filter column.

My Grid columns are like this:

 

 

<

telerik:GridTemplateColumn HeaderText="Type" UniqueName="Type" HeaderStyle-Width="11%"

 

 

DataField="RelationType">

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxRelatedContacts" runat="server" AutoPostBack="true"

 

 

Width="102px" OnSelectedIndexChanged="RadComboBoxRelatedContacts_SelectedIndexChanged">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="Family" Value="Family" />

 

 

<telerik:RadComboBoxItem Text="Business" Value="Business" />

 

 

<telerik:RadComboBoxItem Text="Personal" Value="Personal" />

 

 

<telerik:RadComboBoxItem Text="Professional" Value="Professional" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

<ItemTemplate>

 

<%

# Eval("RelationType")%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Employer/Title" UniqueName="Employer" HeaderStyle-Width="14%"

 

 

DataField="Employer" CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true">

 

 

<ItemTemplate>

 

 

<b>

 

<%

# Eval("Employer")%></b>
</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 


.cs code

 

 

protected

void RadComboBoxRelatedContacts_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

 

RadComboBox list = (RadComboBox)sender;

 

strRelTypeText = list.SelectedItem.Text;

 

string filterExpression = "([RelationType] = '" + list.SelectedValue + "')";

 

 

GridFilteringItem item = (GridFilteringItem)list.NamingContainer;

 

 

RadGrid gridKeyRel = (RadGrid)item.OwnerTableView.NamingContainer;

 

gridKeyRel.MasterTableView.FilterExpression = filterExpression;

gridKeyRel.MasterTableView.CurrentPageIndex = 0;

gridKeyRel.MasterTableView.Rebind();

}

can you help?

Yavor
Telerik team
 answered on 18 Mar 2009
1 answer
94 views

Hi

I get the following error when I attempt to install the Demo version of RadControls for ASP.NET AJAX Q1 2009. I have Vista x64 SP1, Visual Studio 2008 SP1, .NET 3.5 SP1.

"Error 1935. An error occurred during the installation of assembly component {7955C406-6219-7EDF-6567-2E5391F0CD4A}, HRESULT: 0x800700B7."

I've tried running as Administrator but I get the same error.

Many thanks

Lee

Missing User
 answered on 18 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?