Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
276 views
Hi,

Is there a simple way to overrides the font size of a skin for all controls in the web application?

We are trying to upgrade from Q3 2008 to Q3 2009 and since the font of the Office 2007 skin are now a little bigger, we have a lot of layout overflow problems in our app.

We would like to set the font size in Q3 2009 to the same size we had (8pt) in Q3 2008.

Thanks.

Frederic
Frédéric
Top achievements
Rank 1
 answered on 06 Jan 2010
3 answers
190 views
This should be easy to do but I can't find any documentation on it.  I have a radnumerictextbox editor in the grid.  The user can change the value of the editor without clicking on the edit first.  Of course, no update shows until it is in edit mode.  I want to make the editor readonly until the row is placed in edit mode.  Here is a snippet of the grid template column for the editor.  Thanks.

 

<telerik:GridTemplateColumn HeaderText="StockingTime" UniqueName="StockingTime">

 

 

    <HeaderStyle HorizontalAlign="Right" />

 

 

    <ItemStyle HorizontalAlign="Right" />

 

 

    <ItemTemplate>

 

 

        <telerik:RadNumericTextBox ID="grdSupplyChain_StockingTime_NumericEditor" runat="server" MaxValue="999" MinValue="0"

 

 

                NumberFormat-DecimalDigits="2" NumberFormat-GroupSeparator="" NumberFormat-DecimalSeparator="." Width="75px"

 

 

                Type="Number" ShowSpinButtons="true" Text='<%# Eval("StockingTime") %>'>

 

 

                <IncrementSettings Step="0.01" InterceptMouseWheel="true" />

 

 

        </telerik:RadNumericTextBox>

 

 

    </ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

Bill
Top achievements
Rank 1
 answered on 06 Jan 2010
2 answers
285 views
Okay, this is a strange one, but the boss is asking for it....

He doesn't want to display decimals in a RadNumericTextBox if the decimal portion equals .00.

For example, if the value is 123.44, the texbox should display

123.44

However, if the number is 123.00 then the textbox should display

123

Does that make any sense? Does anyone have any idea how this could be done without a TON of "if" coding?

Ken
kencox
Top achievements
Rank 1
 answered on 06 Jan 2010
5 answers
278 views
I two problems with Q3 2009

 #1
Visual Studio 2008(VSTS) will  lock up.
When I try to kill the process it then tells me that there is still a modal dialog open. If there is it is not visable.
I cannot navigate to this dialog.
Shortly before this intellisense goes.
On restarting it sends an error log to microsoft.
Eventlog (Hanging application devenv.exe, version 9.0.30729.1, hang module hungapp, version 0.0.0.0, hang address 0x00000000.) + a FaultBucket.

#2
 Visual Studio 2008(VSTS) will  crash out of Exploer.
This typically in source code view.
It just disappears (eventLog: .NET Runtime version 2.0.50727.3603 - Fatal Execution Engine Error (7A036050) (80131506))

 
This did not happen with Q2 2009 (which is still in the system and has not been uninstalled).
Is there some other log I could look at.
Any suggestions?

I am using winXP 64bit with 6gb ram (so have full access to the available mem).
Also installed is Resharper4.5

Erjan Gavalji
Telerik team
 answered on 06 Jan 2010
8 answers
210 views
Hi,

I discovered the stylebuilder the other day and ...awesome.  A really useful tool.

My only problem with the new skin I created for the grid is that the images do not appear in the Pager for mode="NextPrevAndNumeric" or "NextPrev".  
Those are the "First, Prev, Next and Last" images as well as the image required for the the drop down on PageSize.  If I change it to slider it works.    

Is there another setting somewhere that I must change in order for these images to be picked up from the sprite.gif?

I look forward to hearing from you.

Shake
Top achievements
Rank 1
 answered on 06 Jan 2010
8 answers
363 views
Hi

I have a Radgrid with EnableHeaderContextMenu="true" in Radgrid _ItemDataBound event generate imagebutton on run time and add it on header column and also attach javascript in click event given as.

protected void  Radgrid _ItemDataBound(object sender, GridItemEventArgs e)
        {         
            if (e.Item is GridHeaderItem)
            {               
                ImageButton imgbtnContextMenu = new ImageButton();
                imgbtnContextMenu.ID = "imgbtnCMOpen";
                imgbtnContextMenu.ImageUrl = "~/Images/contentmenu.png";
                imgbtnContextMenu.ToolTip = "Click To Open Context Menu";
                imgbtnContextMenu.Attributes.Add("onclick", "ShowMenuOnSearchResultGrid('" + Radgrid.ClientID + "',event);");
                e.Item.Controls[0].Controls.Add(imgbtnContextMenu);
            }          
        }

The Javascript code is given below.

function ShowMenuOnSearchResultGrid(radGrid, event) {
    var RadGrid = $find(radGrid);
    if (window.event) {
        RadGrid.get_headerMenu().show(window.event);
        event.returnValue = false;
        event.cancel = true;
    }
    else {
        RadGrid.get_headerMenu().show(event);       
        event.preventDefault();
    }    
}
When i clicked directly on  imagebutton without clicking any where in header.It shows the context menu with all columns in unchecked state in columns menu and when i checked/unchecked the infant of columns name then radgrid is not refreshed .I want it show checked/unchecked columns in the basis on columns shows in rad grid and also when i click on contextmenu checkbox then it should be refresh the radgrid.

Pls provide me solution as soon as possible.

Thanks
Sandeep Trivedi
cds_user
Top achievements
Rank 1
 answered on 06 Jan 2010
5 answers
212 views
Hi Team,
    I am using a tree view control to display the data from database . In my table there are 14 columns . I have implemented the load on demand . For the firtst time I am displaying second column as text and 1st column as its value . When user expanding the node I am taking that node value and displaying the next node ( 3rd column as value and 4th column as text and so on) . I cannot do this by using 3 columns in my table as "ParentId", "ChildId" and "Text" as we usually do to display the heirachical data .  I am allowing user to edit the text of the node or user can drag node from other tree view . After doing this I want to update the databse . Can you suggest me how can I able to update the database .

Regards
Manoj
Veselin Vasilev
Telerik team
 answered on 06 Jan 2010
2 answers
101 views
We have a client on Mac using firefox 3.5.5 that can access the editor, click on Document Manager (or Image Manager) and then Upload.  When they click on "Browse" nothing happens.  We have tested this on a VNC client and confirmed the action does not work for this Mac / Firefox combo.  This works fine on PC's.

Is there something specific that we need to enable to make this work for Mac's?  We tested your demo Editor on the VNC with Mac / Firefox and browse worked - so it must be a setting that we just dont have right.

We are using your ASP.NET - AJAX version of the editor, farily recent version, too.

thanks!

- Christina
Christina Blenk
Top achievements
Rank 1
 answered on 06 Jan 2010
3 answers
123 views
hi
im having a grid as shown in the attachement. i need to sort the grid with the dataset in binding into the grid. im calling an sp for the dataset.
the code is :
objBizReport = new BizReport();  
 
                DataSet dsReport = objBizReport.GetDeletedLeads(orgId, fromDate, toDate);  
 
gvReport_Leads.DataSource = dsReport.Tables[2];  
                        gvReport_Leads.DataBind(); 

i dont have any parameter called ASC/DESC to pass each time on sort command. pleas help me on this.

<telerik:RadGrid ID="gvReport_Leads" runat="server" CssClass="radgrid" AllowPaging="True" 
                EnableEmbeddedSkins="false" ShowFooter="false" AutoGenerateColumns="False" GridLines="None" 
                AllowSorting="True" Width="800 px" AllowMultiRowSelection="true" OnItemDataBound="gvReport_Leads_ItemDataBound" 
                OnSortCommand="gvReport_Leads_SortCommand">  
                <MasterTableView CssClass="radgridMasterTable" AllowCustomSorting="true" Width="100%" 
                    ShowHeadersWhenNoRecords="true" TableLayout="Fixed" ClientDataKeyNames="lead_id"> 

i used gridbound columns with above grid declaration and mastertable view.

the sorting command:
protected void gvReport_Leads_SortCommand(object source, GridSortCommandEventArgs e)  
        {  
              
                GridSortExpression sortExpr = new GridSortExpression();  
                switch (e.OldSortOrder)  
                {  
                    case GridSortOrder.None:  
                        sortExpr.FieldName = e.SortExpression;  
                        sortExpr.SortOrder = GridSortOrder.Descending;  
 
                        e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);  
                        break;  
                    case GridSortOrder.Ascending:  
                        sortExpr.FieldName = e.SortExpression;  
                        sortExpr.SortOrder = gvReport_Leads.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;  
                        e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);  
                        break;  
                    case GridSortOrder.Descending:  
                        sortExpr.FieldName = e.SortExpression;  
                        sortExpr.SortOrder = GridSortOrder.Ascending;  
 
                        e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);  
                        break;  
                }  
 
                e.Canceled = true;  
                gvReport_Leads.Rebind(); 
sort command tries sorting but its not refelcting any change in order in the grid, i cannot implement onneedsource since im using SP or dataset. please help, i think if i have onneeddatasource for the above senario, it will work. help me in coding onneeddata source for this.
Pavlina
Telerik team
 answered on 06 Jan 2010
4 answers
100 views
After using the update wizard in Visual Studio 2008 SP1 to update to 2009.3.1208.35 when using the property builder any new items are added into the asp code start with UI: and not telerik: see example below: (notice existing items OK but new ones added through the property builder are added as UI:)

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="btnLogon">

 

 

<updatedcontrols>

 

 

<telerik:AjaxUpdatedControl ControlID="lblInvalid" />

 

 

<telerik:AjaxUpdatedControl ControlID="lblPasswordEmailed" />

 

 

</updatedcontrols>

 

 

</telerik:AjaxSetting>

 

 

<UI:AjaxSetting AjaxControlID="btnPasswordPrompt">

 

 

<updatedcontrols>

 

 

<UI:AjaxUpdatedControl ControlID="lblInvalid" />

 

 

<UI:AjaxUpdatedControl ControlID="lblPasswordEmailed" />

 

 

</updatedcontrols>

 

 

</UI:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManagerProxy>

 

Simon Maystre
Top achievements
Rank 1
 answered on 06 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?