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

I have a website running Sitefinity that I recently upgraded from 5.1 SP1 to 5.1 SP2 (RadControls v2012.2.607.40). Prior to the upgrade RadTextBox styling was working properly in that I could define a css class rule that included a width property and use it for the RadTextBox's CssClass property and everthing worked as expected.  Since the 5.1 SP2 upgrade none of my width properties are applied and the RTB seems to be defaulting to 160px width.

Here's what my markup and css look like:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZRTBTest.aspx.cs" Inherits="SitefinityWebApp.ZRTBTest" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <style>
        .rtbWrp
        {
            font-family: Tahoma,Verdana,sans-serif;
            font-size: 12px;
            width: 600px;
            background-color: #c0c0c0;
            padding: 5px;
        }
         
        .rtb550, .rtb450, .rtb350
        {
            padding: 3px !important;
            vertical-align: middle !important;
            margin-bottom: 15px !important;
            border: 1px solid #ff0000 !important;
        }
         
        .rtb550
        {
            width: 550px !important;
        }
         
        .rtb450
        {
            width: 450px !important;
        }
         
        .rtb350
        {
            width: 350px !important;
        }
    </style>
</head>
<body>
 
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager> <div>
        <div class="rtbWrp">
            <telerik:RadTextBox ID="RadTextBox1" runat="server" CssClass="rtb550">
            </telerik:RadTextBox></div>
        <div class="rtbWrp">
            <telerik:RadTextBox ID="RadTextBox2" runat="server" CssClass="rtb450">
            </telerik:RadTextBox>
        </div>
        <div class="rtbWrp">
            <telerik:RadTextBox ID="RadTextBox3" runat="server" CssClass="rtb350">
            </telerik:RadTextBox>
        </div>
    </div>
    </form>
</body>
</html>

Everything looks fine in Firefox (15.0.1), Chrome (21.0.1180.89) and IE 8 (see rtb_firefox_chrome_ie8standards.PNG).  In IE9 Standards mode the width of the text boxes is clipped at 160px (see rtb_ie9_standardsmode.PNG).  I could swear this was working in the last version.

Anyone else seeing this?

Thanks -- Steve

Galin
Telerik team
 answered on 26 Sep 2012
3 answers
154 views
Can you please give me an ASP.NET 4.0 VB.NET example of uploading to /images/post/ directory and renaming the image to a session value - with a 1, 2, 3, 4 etc saved after each file name?  The 1, 2, 3, 4 is just used to signify different images or else the images would just overwrite each other.

I will only be upload .jpg images!

Thanks!
Princy
Top achievements
Rank 2
 answered on 26 Sep 2012
3 answers
183 views
how to do crud with rad grid using in  built grid properties
AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticInserts="true"
Shinu
Top achievements
Rank 2
 answered on 26 Sep 2012
6 answers
122 views
How can i do filtering with rad grid?
Thanks.
Princy
Top achievements
Rank 2
 answered on 26 Sep 2012
1 answer
199 views
When enable AllowFilter for GridCheckBoxColumn, it will show a CheckBox and a RadFilter control. How can I remove the RadFilter and trigger the filter by checking or unchecking the CheckBox directly?
Shinu
Top achievements
Rank 2
 answered on 26 Sep 2012
5 answers
361 views
Hi All,

My customer wants context menus to be available on a mobile device.  I'm not a terribly big fan of the idea, in that I would prefer to build a more mobile-like interface.  However, he is not yet ready to do that for this site.

My question is, what is the best practice for using menus on a mobile device?  Right clicking does not appear to be a good solution, in that a right click is really unavailable with a mobile interface (iPhone, iPad, Android).  Also, a left click has the disadvantage in that if you are using it on a grid, you will confuse the menu with the selection of the row for other purposes.  Double click, maybe?  Hover?

Any opinions?

Jim
AMS
Top achievements
Rank 1
 answered on 26 Sep 2012
6 answers
269 views
Hi All,
Reqirement:
I am using radwindow in my application.In parent page i have one linkbutton,if i click on that link popup window will open.In popup window one save button is there.i will select one row in that popup then i click on save button,Popup will close & parent grid has to refresh.

Above reqirement is woking fine in IE .but it is not working in Mozilla Firefox browser.Please find the code below in Parent & child pages.

Parentpage:

Design page:

<

telerik:RadAjaxManager ID="radAjaxManager" runat="server" OnAjaxRequest="radAjaxManager_AjaxRequest"

 DefaultLoadingPanelID="radAjaxLoadPanel">  

 

</telerik:RadAjaxManager> 

 

function

refreshGrid(arg)
{
  

if (!arg) { 

$find("<%= radAjaxManager.ClientID %>").ajaxRequest("Rebind"); 
}

else {  

$find("<%= radAjaxManager.ClientID %>").ajaxRequest("RebindAndNavigate"); 
}

}

 

 

function OnClientclose(sender, eventArgs) { 

if (!eventArgs) { 
$find("<%= radAjaxManager.ClientID %>").ajaxRequest("Rebind"); 
}

else {  

$find("<%= radAjaxManager.ClientID %>").ajaxRequest("RebindAndNavigate");

}


Code Page:

 

protected void radAjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)

{

 if (e.Argument == "Rebind" || e.Argument == "RebindAndNavigate")

 {

 using (DataContext db = new DataContext())

{

db.ObjectTrackingEnabled = false;  

LoadCountry(db);

LoadConcept(db);

fileUpload.Visible = 

true;  

 

 

if (Convert.ToInt16(ddlFileType.SelectedValue) != Convert.ToInt16(ConceptAttachmentType.Board))

{

grvConcept.DataSource = null;  

grvConcept.DataBind();

grvConcept.Visible = false;  

}

}

}

}

Child Page:

Design Page:

 

function CloseAndRebind(args) {  

GetRadWindow().BrowserWindow.refreshGrid(args);

GetRadWindow().Close();

}

 

 

function GetRadWindow() {  

var varWindow = null;  

if (window.radWindow) varWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog

else if (window.frameElement.radWindow) varWindow = window.frameElement.radWindow; //IE (and Moz as well)

return varWindow;  

}


Code page:

protected

void btnSave_Click(object sender, EventArgs e)  

{

.................

objMsg.ShowMessage(

"Add filler", "Saved Successfully", (Int16)MessageType.SUCCESS); 
ScriptManager.RegisterStartupScript(this.updProjectCreation, this.GetType(), "strScript", "javascript: CloseAndRebind()", true);

}
}

Please help me.

Thanks
sekhar

Brijesh Gadhiya
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
104 views
I like Telerik TV, I do. But it is, if we're honest, just about showing the latest functionality without actually trying to TEACH you anything. I've said this before, and I'll not be afraid to say it again; Telerik could benefit A LOT from getting together with a firm like Pluralsight. I would love to see Pluralsight standard courses on Kendo, Sitefinity and Open Access.
Stuart Hemming
Top achievements
Rank 2
 answered on 25 Sep 2012
2 answers
134 views
I have a page that has multiple tabs using the telerik:RadMultiPage and RadTabStrip controls. 
Those tabs are user controls and some have RadGrids, which uses a RadRadToolipManager control to fire a page as a menu.
This works fine from tab to tab. However, it appears that once one tab is loaded and its corresponding grid's toolip is loaded, the previous tab's grid's tooltips no longer fire.

Each tab's tooltip gets wrired up in its RadGrid's ItemDataBound event, of course.
Then The RadToolTipManager's OnAjaxUpdate and UpdateToolTip methods get called.

Again, everything works fine, and when a new tab is clicked its grid tooltip fires fine, but, the previous tab's grid's tooltips doesn't fire if I were to go back and try it.

Addendum:
I noticed that when I click a new tab, the Page_Load of the previously clicked tabs will fire. In the Page_Load of each tab, I have the code:  this.RadToolTipManager2.TargetControls.Clear();

I have this because when the tab's grid is sorted, I have to clear the target controls lest they maintain the wrong data. At least that is the solution I came up with.

So, now I may pose the question, is my solution above (maintain tooltip integrity on a grid sort) the right one? If not, I could remove it ( thus solving my current problem) and implement it the correct way.

Thanks for any info.






Robert Helm
Top achievements
Rank 1
 answered on 25 Sep 2012
2 answers
110 views
Hi!

I have a scenario with a RadGrid binded to a ObjectDataSource ( DataSourceID = "DS")

<asp:ObjectDataSource ID="DS" runat="server" EnablePaging="True"                SelectCountMethod="GetListCount"<br>                SelectMethod="GetList" SortParameterName="sortType" TypeName="...."><br></asp:ObjectDataSource>

I've noticed then when I export da grid the  " grid.MasterTableView.ExportToExcel();" fires the GetList() method twice. This doesn't happens when I rebind the grid after the user clicked the search button. This only happens when exporting the grid. What may be causing the GetList method is being called twice each time call the export.?

Best regards



Regula
Top achievements
Rank 1
 answered on 25 Sep 2012
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?