Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
140 views
I have cut and pasted the new slider demo into my website to learn more about how to build a similar example (http://demos.telerik.com/aspnet-ajax/slider/examples/slideshow/defaultvb.aspx) 

But, I am having a couple of problems.

First, the text for the items is very (too) close to the slider bar. I want to aplly a bit of padding (or margin) but the css doesn't work. In the css style given for the example, there is this: 

 /* Customize slider items look */ 
        
       .RadSlider .rslItemsWrapper .rslItem span 
       { 
           line-height: 52px !important; 
           color: #fff !important; 
           
       } 
       .RadSlider .rslItemsWrapper .rslItemSelected span 
       { 
           color: #fff; 


...but I can't get it to work. If I apply css style "rslItem" to an item, it has no effect.

Second problem, I can't get the navigation to show. I can click the buttons, but they are not showwing if you know what I mean.

Third (not problem, just curious),

How did you get the rounded corners on the Slides and slideshowviewer DIVs? 

Best,

Brent
Brent
Top achievements
Rank 1
 answered on 18 Mar 2009
1 answer
168 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
66 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
338 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
112 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
53 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
223 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
149 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
127 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
202 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?