Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
Hi
I am just puttingtogether a new site, and the RadMenu works exactly as I want it to in Visual Studio, but on my web server, it does not display correctly until it is clicked upon.
I don't appear to be able to paste screenshots here, so please take a look at

http://www.tadsa.paxigo.com

The same problem occurs in IE and firefox. When you click on "Home" on the menu, it straightens out.

Any ideas?

Cheers

Rob
Rob
Top achievements
Rank 1
 answered on 29 Dec 2008
1 answer
52 views
hy fellas,

I´d like to show the footer and evaluate the sum of the column only if the grid is not empty. how Can I achieve this?

Thanks and happy new year!!!
Daniel
Telerik team
 answered on 29 Dec 2008
1 answer
106 views
HI,

I'm using a radGrid within a splitter control.  The width is a percentage of the widow width.  When the screen load the page display with the grid/splitter narrow for about a second then it is re-sized to the correct width.  It appears that there is some javascript code that is calcuating the correct width.   Is there anything that can be done to hide the initial narrow state until the control is re-sized to its final width.

Thanks for your help,

Ben
Ben Poliakoff
Top achievements
Rank 1
 answered on 29 Dec 2008
0 answers
125 views
EDIT: [RESOLVED]

How do i overwrite the existing style for the RadTreeView control?
In the source i can see the rendered elements having specific CSS class e.g. rtLI rtLast
I need to adjust the height of the links decreasing the margins from the top and bottom.
Also i would like to change the text-decoration style to none, which currently is underline.

Thanks

EDIT: [RESOLVED]

My bad. i had some css style in conflict with the treeview. Now everything works just fine. thank you.
El
Top achievements
Rank 1
 asked on 29 Dec 2008
1 answer
106 views
Hi,
I'm trying to get the current inserted content by columns. I've tried this way:
protected void RadGrid1_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        { 
         
                GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem; 
                LoggerCapture.tblLoggerCaptureRow newDSrow = (LoggerCapture.tblLoggerCaptureRow)captureDS.tblLoggerCapture.NewRow(); 
                newDSrow.bitSummed = Convert.ToBoolean(parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["bitSummed"]); //row.bitSummed; 
                newDSrow.iBoardNumber = Convert.ToInt32(parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["iBoardNumber"]);  //row.iBoardNumber; 
                captureDS.tblLoggerCapture.Rows.Add(newDSrow); 
but parentItem returns null. This happens of course after i clicked "insert" on the new added gridView row.
can you help me with this one ?



Nikolay Rusev
Telerik team
 answered on 29 Dec 2008
5 answers
329 views

I am using the  example code at:
http://www.telerik.com/help/aspnet-ajax/grdconditionalimagedisplayingridcolumn.html
to try to disable/non-visible a GridButtonColumn based on the value of another column value.  However it is not working as advertised.  I'm creating my grid in the code-behind thus:

public void AddParentFields(RadGrid RadGrid1)
    {
        string SqlCmd = "exec dbo.wa_AddFields 'PTTICKETS'";
        DataAccess sda = new DataAccess();
        GridBoundColumn boundColumn;
        sda.RunSelectCmd(SqlCmd);

        foreach (DataRow dr in sda.dtResult.Rows)
        {
            if (dr["fieldtype"].ToString().Trim() == "HYPERLINK")
            {
                GridHyperLinkColumn hyperLinkColumn = new GridHyperLinkColumn();
                hyperLinkColumn.DataTextField = dr["datafield"].ToString().Trim();
                hyperLinkColumn.HeaderText = dr["header"].ToString().Trim();
                hyperLinkColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
                hyperLinkColumn.Display = Convert.ToBoolean(dr["visible"]);
                //hyperLinkColumn.DataNavigateUrlField = "sh_track_url";
                string[] fieldArray;
                fieldArray = new string[2];
                fieldArray[0] = "sh_track_url";
                fieldArray[1] = "pcktrackno";
                hyperLinkColumn.DataNavigateUrlFields = fieldArray;
                hyperLinkColumn.DataNavigateUrlFormatString = "{0}{1}";
                hyperLinkColumn.Target = "_blank";
                RadGrid1.MasterTableView.Columns.Add(hyperLinkColumn);
            }
            else
            {
                boundColumn = new GridBoundColumn();
                boundColumn.DataField = dr["datafield"].ToString().Trim();
                boundColumn.HeaderText = dr["header"].ToString().Trim();
                boundColumn.DataFormatString = dr["fieldformat"].ToString().Trim();
                boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
                boundColumn.Display = Convert.ToBoolean(dr["visible"]);
                boundColumn.HeaderButtonType = GridHeaderButtonType.TextButton;
                RadGrid1.MasterTableView.Columns.Add(boundColumn);
            }
        }
        GridButtonColumn buttonColumn = new GridButtonColumn();
        buttonColumn.ButtonType = GridButtonColumnType.PushButton;
        buttonColumn.Text = "Confirm Receipt";
        buttonColumn.CommandName = "ConfirmReceipt";
        buttonColumn.UniqueName = "ConfirmReceipt";
        RadGrid1.MasterTableView.Columns.Add(buttonColumn);

        boundColumn = new GridBoundColumn();
        boundColumn.DataField = "patient_verified";
        boundColumn.Display = false;
        RadGrid1.MasterTableView.Columns.Add(boundColumn);
    }
---------------------
Then I try to set the visibility of the 'ConfirmReceipt' button based on the value of the 'patient_verified' column with:
------------------------
private void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem dataItem = e.Item as GridDataItem;
            GridBoundColumn boundColumn = dataItem["patient_verified"].Controls[0] as GridBoundColumn;
            if (boundColumn.Value == 1)
            {
                dataItem["ConfirmReceipt"].Controls[0].Visible = false;
            }
        }
    }
------------------------
But, the errors are:
on e.item
Cannot convert type 'Telerik.Web.UI.GidItem' to 'Telerik.WebContrtols.GridDataItem' via a reference conversion....

and on dataItem["patient_verified"].
Cannot convert type 'Systenm.Web.UI.Control' to 'Telerik.WebControls.GridBoundColumn' via a reference conversion....

Can you help me?  Thanks.
Dan

Dimo
Telerik team
 answered on 29 Dec 2008
6 answers
165 views
Hi,

I have a hierarchical grid that uses a custom skin and when running a 2007 version the +/- icons show up without a problem.  But if I change to 2008Q2 the icons don't show up anymore, they are replaced by what looks like rounded buttons.  Not sure if I need to change anything in the CSS or ??  I did add the .rgExpand and .rgCollapse values and once added the buttons now look more sqaured off so it must be reading the file.  Still, no images.  Here is what the classes look like now (note changing the img url to SinglePlus.gif etc. has no affect...the buttons still show up):

.RadGrid_mainsite .rgExpand
{
        background:url('Grid/sprite.gif') -64px -63px no-repeat;

}

.RadGrid_mainsite .rgCollapse
{
        background:url('Grid/sprite.gif') -64px -63px no-repeat;

}

The site uses a Theme page which defines the base values for the grid and then in the page itself you should be able to override the values set in the theme....but this does not seem to work..

Here is the grid code in the page itself...I have changed the images path to serveral different values with no luck...

                        <telerik:RadGrid ID="RadGrid" runat="server"  Width="850px" Height="420px" AllowPaging="True" EnableEmbeddedSkins='False' Skin='mainsite' PageSize="2" ImagesPath="Skins/mainsite/Grid">

Any thoughts?

Thanks in advance!

K
Kelvin
Top achievements
Rank 1
 answered on 29 Dec 2008
16 answers
569 views
I have followed the example and knowledge base article on persisting the RadGrid settings to the user's profile however it is not working correctly. The issue is that in the example it states to call the SaveSettings function on the Render method. So I override the render method (vb.net) and call the function however this event only occurrs one time - when the page initially is loaded. It is not triggered when any settings in the grid change so no changes are ever persisted. I don't see how this example could possibly work by calling the SaveSettings function in the overridden Render method, what am I missing? The page_init event is triggered for every change but that is where the example states to load the settings, not save them so I am confused. Seems like it should be the other way around...

Thanks for any help!
jfkrueger
Top achievements
Rank 1
 answered on 29 Dec 2008
3 answers
434 views
<telerik:RadPanelBar   
    ID="rpbCSRLists"   
    runat="server"   
    ExpandMode="SingleExpandedItem"   
    AllowCollapseAllItems="true"   
    Width="100%"   
    PersistStateInCookie="true" 
    OnClientItemExpand="OnClientItemExpand">  
 
        <Items> 
 
            <telerik:RadPanelItem Text="Alternative Words to Search In Plan Documents" Selected="true">  
                  
                <Items>    
                  
                    <telerik:RadPanelItem> 
                      
                        <ItemTemplate> 
                               
                            <CSR:AlternativeWords ID="uctAlternativeWords" runat="server" /> 
                              
                        </ItemTemplate>      
                      
                    </telerik:RadPanelItem> 
                  
                </Items> 
                  
            </telerik:RadPanelItem> 
              
        </Items> 
 
    </telerik:RadPanelBar> 

Instead of adding my User Control declaratively, how would I go about adding this user control programmatically when the panel bar is clicked? I know I can use the ItemClicked event but actually adding the control is giving me problems ("cannot add control to literal control etc). I just can't seem to get the heirarcy right to find where I should be adding the control.

Thanks!
jfkrueger
Top achievements
Rank 1
 answered on 29 Dec 2008
8 answers
257 views
I am using the google-style filtering on a grid and it is working great for the most part. The only problem is that if i select a filter from the drop-down and then try to edit one of the rows returned the filter goes away and the edit form pops up with a completely different record than what was selected. Any suggestions?

Thanks!
jfkrueger
Top achievements
Rank 1
 answered on 29 Dec 2008
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?