Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
151 views
Hi everyone.

I am trying to create my own skin to the rad grid. I tried the example 
http://demos.telerik.com/aspnet-ajax/grid/examples/styles/customskin/defaultcs.aspx

I want to put a border of 1px in the radpager but i can“t .
With firebug i see
.RadGrid td.rgPagerCell {
    border0 none;
    padding5px 0 4px;
}
if i put border :1 , the border shows up.. but this come from a web resources...  How can i create the border .

Thanks.

jolynice
Top achievements
Rank 1
 answered on 07 Dec 2010
2 answers
306 views
Hi!  I have a RadGrid which uses the FilterTemplate with a RadComboBox in GridBoundColumns.   When the page initially loads all of the filter options in the RadComboBox are not listed, however, if the page is refreshed all the options appear in the filter.

Currently the SQL statement used to initially populate the filter is in the Page_Load method, and is outside of the 'IF Not IsPostBack' logic.

 A method to refresh the combo boxes gets called in the RadGrid1_PreRender event handler.  This method takes the original SQL statement and appends a where clause which contains the value selected in the combo box by the user, after which a call to RadGrid1.MasterTableView.Rebind() is made.  The actual filtering does work as expected.

I was wondering if someone could provide some insight on how the filtering works in regards to a page initially loading, and if there is a better place to put the logic.

Thanks!
Amy
Top achievements
Rank 1
 answered on 07 Dec 2010
1 answer
70 views
I am trying to apply custom Dropdown Filter in Detail grid and the filter is coming up but Filter Row Height , not sure from where its picking this height , can anyone help me on this to reduce this white space.
v s
Top achievements
Rank 1
 answered on 07 Dec 2010
3 answers
225 views
I'm using the basic features of the list box (Q2 2009) and the functionality seems to work fine. I am having an issue with how it handles page resizing and div scrolling.
1. when I resize the browser window (IE 7) - the list box does not move and it overlaps the div border, causing it to cover the footer content.
2. when I scroll the div - all other controls move up or down, but the list box stays put.

I have it sitting in a <div> that has overflow set to auto and it's height set dynamically. The same div contains several Labels. 

The short and sweet version of the aspx...

<div id="MainDiv">   
<telerik:RadAjaxPanel> 
<div id="MultipageDiv">   -- this div is set to overflow:auto in a stylesheet;   
<telerik:RadMultiPage> 
<telerik:RadPageView ID="RadPageViewCustomers" runat="server">   
<div id="ViewPageDiv" >              
<asp:Table ID="Table1" runat="server" Width="800px">   
<asp:TableRow> 
<asp:TableCell>   
<telerik:RadListBox>
   
 
   
 
 
 
   
 
   
 
 
 
   
 
 
 

 

 Any ideas?

kapil sharma
Top achievements
Rank 1
 answered on 07 Dec 2010
2 answers
88 views
I have gridview that i programatically bind to a data-table. one of my column is an hyperlink column that is manually set to show the text "Update" on each row.
I created the following code in the page load event to disable the hyperlink for the appropriate columns:

'Carry out steps to figure if a each report is invoiced or not.

 

'If invoiced, the update hyperlink is disabled

 

 

Dim number_of_reports As Integer = RadGrid1.Items.Count

 

 

For i = 0 To number_of_reports - 1

 

 

If RadGrid1.Items(i)("status_column").Text = "Not Invoice" Then

 

RadGrid1.Items(i)(

"update_column").Enabled = False

 

RadGrid1.Items(i)(

"update_column").Text = "No"

 

 

End If

 

 

Next

 


At the page load event the code is handled well. But when i change pages, a postback occurs and the hyperlinks are all reset to the text "update".

I tried putting the code in the radgrid1.page_index_change event but it still does not work.
Arnaud
Top achievements
Rank 1
 answered on 07 Dec 2010
2 answers
101 views
I want to have a button such that user clicks to delete, then they button changes to some sort of confirmation (click again to delete or something)...then when they click that the second time, postback happens.

Can the RadButton do something like this?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 07 Dec 2010
3 answers
262 views
Hi,

I am using RadChart as user control and need to use the control to load different Chart Types.I am able to load the Chart Types but unable to display them as loaded.

<telerik:RadChart ID="rcTrendGraph" runat="server"></telerik:RadChart>

this is my aspx page and in the code behind I am using the following code to Build the Graph.

for (int i = 0; i < strContentIds.Length; i++){
strDashContId = strContentIds[i].ToString();
if (strDashContId == "TGI1002"){
//Bar Graph
rcTrendGraph.ChartTitle.TextBlock.Text = "Bar Graph";
rcTrendGraph.ChartTitle.Appearance.Position.AlignedPosition=Telerik.Charting.Styles.AlignedPositions.Top;
rcTrendGraph.AddChartSeries(legend);
legend.Type = Telerik.Charting.ChartSeriesType.Bar;
rcTrendGraph.DataSource =ds;
rcTrendGraph.DataBind();
}
else if (strDashContId == "TGI1003"){
//Pie Graph
rcTrendGraph.ChartTitle.TextBlock.Text = "Pie Graph";
rcTrendGraph.ChartTitle.Appearance.Position.AlignedPosition=Telerik.Charting.Styles.AlignedPositions.Top;
rcTrendGraph.AddChartSeries(legend);
legend.Type = Telerik.Charting.ChartSeriesType.Pie;
legend.AddItem(10,"A");
legend.AddItem(20,"B");
legend.AddItem(30,"C");
legend.AddItem(40,"D");
}
else if (strDashContId == "TGI1001")
{//Line Graph
rcTrendGraph.ChartTitle.TextBlock.Text = "Line Graph";
rcTrendGraph.ChartTitle.Appearance.Position.AlignedPosition=Telerik.Charting.Styles.AlignedPositions.Top;
rcTrendGraph.AddChartSeries(legend);
legend.Type = Telerik.Charting.ChartSeriesType.Line;
legend.AddItem(10,"A");
legend.AddItem(20,"B");
legend.AddItem(30,"C");
legend.AddItem(40,"D");
}
}

I am able to get the chart generated but getting the same chart type at the end..
For Suppose strContentIds.Length=2
and for i=0 strDashContId =TGI1001
and for i=1 strDashContId =TGI1003
I need the chart as pie Graph and Line Graph to be displayed in my page.But I am able to dispaly only one of the chart type i.e, for strDashContId =TGI1003 and strDashContId =TGI1001 I am getting Pie as strContentIds[1]=TGI1003  after strDashContId =TGI1001 and getting both the charts as Pie Charts only.

Please help me out with your suggestions.

Thanks In Advance,
h@r!
Ves
Telerik team
 answered on 07 Dec 2010
2 answers
75 views
Sorry if I've missed something obvious, but this seems like it should be very simple. I just want to have an image button that executes some javascript when I click it.

function FBLogin(sender, args) {
    FB.login(fb_loggedin, { perms: 'email,publish_stream,offline_access' });
}

<telerik:RadButton ID="RadButton1" runat="server" Text="Login" Height="55px" Width="225px" AutoPostBack="false" OnClientClicked="FBLogin">
        <Image ImageUrl="~/Images/fb_btn.png" />
</telerik:RadButton>

Absolutely nothing happens when I click the button. If I make the image a "background" image and add some text then it works, but only if I click on the text. As you can see the button is quite large and the user should be able to click anywhere on the button, not just on the text. Also, I really don't want text (the image already has the text on it).
Scott R
Top achievements
Rank 1
 answered on 07 Dec 2010
1 answer
106 views
Hello All,

           I have RadContexMenu on page which will bind dynamically, all things well, but i have problem with design while expanding drop down menu,

expanded node not come to the exact on line to My RadContextMenu header, as simple in our MSword when user click on file than menu will get drop down vertically parallel to File Menu...in my case my expanded menu will get display around 15px right side from My Main Tag.

<telerik:RadContextMenu ID="Menu" runat="server" Flow="Vertical" OnItemClick="Menu_ItemClick"
                            Skin="Office2007">
                            <Items>
                                <telerik:RadMenuItem DisabledImageUrl="DImages1.png"
                                    ImageUrl="EImages1.png" Text="SubMenu1" Value="SubMenu1">
                                </telerik:RadMenuItem>
                                
                                <telerik:RadMenuItem DisabledImageUrl="DImages2.png"
                                    ImageUrl="EImages2.png" Text="SubMenu2"
                                    Value="SubMenu2">
                                </telerik:RadMenuItem>

                            </Items>
                            <ExpandAnimation Type="None" />
                            <CollapseAnimation Type="None" />
                            
                        </telerik:RadContextMenu>

My current layout looks like
     
                                     Menu
                                                
                                                   
SubMenu1
                                                   
SubMenu2

Actual should be look like

                                    Menu
                                   
SubMenu1
                                   
SubMenu2

do i need to set manually css or any other build in property to set proper layout of menu?

Please help me.

Thanks
Dimitar Terziev
Telerik team
 answered on 07 Dec 2010
1 answer
212 views
Hello,

We're around to develop a web application targeted at mobile phones like the Iphone or Android. I just tried your latest version (2010.3.1109.35), particularly the RadMenu and Radpanelbar. They both didn't work with Dolphin Browser on Android (e.g. no drop down items in the menu, while it perfectly worked in IE 8). This confuses me since I read in another arcticle (http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radcontrols-for-mobile.aspx) that mobile support should be functional with the 2010 Q3 release.

I would like to know
- what controls are mobile compatible
- what settings (regarding your controls) we have to apply to ensure mobile compatibility

Sorry for that comprehensive question but you have to understand that this is a critical architectual issue since there seems to be no alternative from Telerik to create mobile phone web applications (as old Webcontrols w/o Ajax are legacy and MVC currently is too basic).

Regards,
Conrad
Kamen Bundev
Telerik team
 answered on 07 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?