Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
197 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
351 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
199 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
99 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
119 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
95 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
2 answers
277 views
Hi -

Is there a way to have the active page highlighted in the menu?

Here is my code:
<div style="float: left; margin-top: 13px; margin-right: 80px;">  
    <telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista"   
      style="z-index: 1; left: 126px; top: 91px; position: absolute;">  
      <Items> 
        <telerik:RadMenuItem Text="Search" runat="server" NavigateUrl="Search.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="MOU" runat="server" NavigateUrl="MOU.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="Contract" runat="server" NavigateUrl="Contract.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="SOI" runat="server" NavigateUrl="SOI.aspx">  
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem Text="Create" runat="server" NavigateUrl="Create.aspx">  
        </telerik:RadMenuItem> 
      </Items> 
    </telerik:RadMenu> 
  </div> 

If I am on the Contract page, I would like for the menu item to be highlighted (or something to show the page is active, in the menu).  Is this possible with a property?

Thanks!
wen
Wendy Hunt
Top achievements
Rank 2
 answered on 06 Jan 2010
2 answers
123 views

Hello,

in this demo,  i can use column swaaping option via client side,

http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideevents/defaultcs.aspx

but i need save user column orders in databasei because when user enter the sytem later, user should see own grid template

my problem is i cant get column cell Index on server side

Java Script Function  :

function ColumnMouseOver(sender, eventArgs) {

 

 

var text = "";

 

text +=

" Display Order : ";

 

text +=

", Index: " + eventArgs.get_gridColumn().get_element().cellIndex;

 

document.getElementById(

"OutPut").innerHTML = text;

 

}

after the columns swapping events, i need all columns order Index  for saving data Base,
but i could'nt find "eventArgs.get_gridColumn().get_element().cellIndex;"  in server side.

all swaipping process running or client side, i think server side cant undesrtand swapping column orders.

and there is one button below the grid :

 

 

foreach (GridColumn columns in this.gridOrderColumn.Columns)

 

{

userTemplateDetail =

new UserTemplateDetail();

 

userTemplateDetail.UserTemplateId = userTemplateID;

userTemplateDetail.CurrentStateId = -1;

userTemplateDetail.OrderIndex = columns.OrderIndex ?? //  <--- i cant get CellIndex -- order index doesnt change when swapping

dbUserTemplateDetail.add(userTemplateDetail);

}

i can describe my point, and i need to help.

Thanks

Hus Damen
Top achievements
Rank 1
 answered on 06 Jan 2010
2 answers
206 views
Hi there,

  I'm using Rotator control to display image gallery with RotatarType="Button". On button click I want to display next image.
All the images are of same size but when i click on Next button i see only half of the image displayed. I want to show 1 image on each
click. Is it possible using Rotator control ?

Here are my code.

                    <telerik:RadRotator ID="RadRotator1" runat="server" Width="400" Height="300" ItemWidth="400" ItemHeight="300"
                        RotatorType="Buttons">
                        <ItemTemplate>
                            <div class="itemTemplate">
                                <img src="<%# DataBinder.Eval(Container.DataItem, "Image") %>"
                                     alt="<%# DataBinder.Eval(Container.DataItem, "Name") %>" />
                            </div>
                        </ItemTemplate>
                    </telerik:RadRotator>

        Dim rotatorData As New DataTable()
        rotatorData.Columns.Add("Image")
        rotatorData.Columns.Add("Name")
        For Each tempInfo As fileInfo In imagesArray
            rotatorData.Rows.Add(New String() {tempInfo.filename, tempInfo.name})
        Next
        RadRotator1.DataSource = rotatorData
        RadRotator1.DataBind()

Attached jpg file shows two images at one time.


Harah Day
Top achievements
Rank 1
 answered on 06 Jan 2010
1 answer
83 views

Hi

Server Error in '/_ESM' Application.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


I got above error when am using this code

  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server"
            Height="75px" IsSticky="True"
            style="top: -24px; left: 372px; position: absolute; width: 253px; margin-top: 108px"
            Transparency="10">
            <img alt="Loading..."
                src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                style="border:0;" />
        </telerik:RadAjaxLoadingPanel>

 <telerik:RadAjaxManager ID="AjaxManager1" runat="server">
    <AjaxSettings>
     <telerik:AjaxSetting AjaxControlID="rgWFitems">
                <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="rgWFitems" LoadingPanelID="RadAjaxLoadingPanel2"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
    
             <telerik:AjaxSetting AjaxControlID="rwmRP">
                <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="rwmRP" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="ParamWindow">
                <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="ParamWindow" />
                </UpdatedControls>
            </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>



Dimo
Telerik team
 answered on 06 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?