Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views

Hi

I have a RADGrid with one button column and rest bound columns as follows;

<telerik:RadGrid ID="DocsList" runat="server" AllowPaging="True" GridLines="None"
    OnNeedDataSource="DocsList_NeedDataSource">
    <MasterTableView AutoGenerateColumns="False">
        <Columns>
            <telerik:GridBoundColumn FooterText="Document" UniqueName="Document" SortExpression="ContactTitle"
                HeaderText="Document" DataField="Document" Resizable="true">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn FooterText="Index" UniqueName="Index" HeaderText="Index"
                DataField="Index" Display="false">
                <ItemStyle Width="0px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn FooterText="MediaURL" UniqueName="MediaURL" HeaderText="MediaURL"
                DataField="MediaURL" Display="false">
                <ItemStyle Width="0px" />
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn FooterText="View" ButtonType="ImageButton" UniqueName="View"
                HeaderText="View" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                CommandName="Select" DataTextField="CustomerID" ImageUrl="~/Resources/Images/submit.png">
                <ItemStyle Width="20px" />
            </telerik:GridButtonColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

I have a few questions;

1. How can I attach an onclick event to the buttons in the button column so when a button in a row is clicked then value of one of the bound columns in the same row is returned?

2. The button images' seems to have an annoying shadow (image1.jpg attached). How can this be removed?

3. When this web page is being viewed in browser and browser window is scaled down the buttons start to crop instead of grid rescaling to allow the button to remain fully visible (image2.jpg attached). How can this be fixed?

Many Thanks

Regards

 

Mira
Telerik team
 answered on 11 Feb 2011
1 answer
68 views
It looks like the usage of global resources isn't fully implemented yet in the latest version 2010.3.1317.40. For example the GridPagerItem still contains quite a few hardcoded texts. Furthermore I think it would be nice if the item commands would support globalization too. Is there any chance of an ETA for the completion of globalization support for RadGrid?
Mira
Telerik team
 answered on 11 Feb 2011
2 answers
88 views
Hello,
     I have a problem with the RadGrid. I can't grouping draging a header to group panel. If I group by code like the following, it works. When the page is loaded the grid appears grouped, but if I remove the group draging it out from the group panel the grid is ungrouped and then I can't to group again draging a header or even reorder headers draging them.

<MasterTableView>
        
       <GroupByExpressions>
       <telerik:GridGroupByExpression>
       <GroupByFields>
       <telerik:GridGroupByField FieldName="Usuario.Login" />
       </GroupByFields>
       <SelectFields>
       <telerik:GridGroupByField FieldName="Usuario.Login" />
       </SelectFields>
       </telerik:GridGroupByExpression>
       </GroupByExpressions>
       </MasterTableView>

I have GroupingEnabled property set to true and also ShowGroupPanel. I was looking for a solution in the forum and I haven't found anybody with the same issue.

Can anybody help me.  Thanks in advance.





Tajes
Top achievements
Rank 1
 answered on 11 Feb 2011
1 answer
173 views
 I had the latest ver. (trial) of asp.net telerik, then my computer died and Dell come over and replaced my motherboard!

After that the ASP.NET AJAX Telerik will not run in localhost.
I run it in Visual Studio 2010 and run it there from!

If I copy the project to another computer it will work but no longer in my project!

See the screen attached file!

I have repaird, and reinstalled the ASP.NET AJAX Telerik, but I got the same problem!

Anybody got a tip of this issue?



Markus
Top achievements
Rank 1
 answered on 11 Feb 2011
1 answer
115 views

Hi,
There is an issue with Rad Upload control not loading File Open dialog box in Fire Fix. Please find belwo Rad Upload markup and Javascript function. This javascript function working perfectly in IE but not in Fire Fox because it doesn't allow File Input control to be clicked. Please provide a workaround for this issue.

Thanks in advance.

Rad Upload markup:

<telerik:RadUpload id="fileUploadImport" OnClientAdded="MakeKeyBoardAccessible"      OnClientFileSelected="validateBrowse" ReadOnlyFileInputs="true" EnableEmbeddedSkins="false" Skin="Default" AllowedFileExtensions=".txt"  ControlObjectsVisibility="None"  ToolTip="Browse"  runat="server">
<Localization Select = "Browse"/>
</telerik:RadUpload>


Javascript function:

function MakeKeyBoardAccessible(radUplaod, args) {

        args._row.all[3].onkeydown = function(e) {

            var keycode;

            if (window.event) keycode = window.event.keyCode;

            else if (e) keycode = e.which;

            else return true;

 

            if (keycode == 13) {

                args._row.all[1].click();

            }

        }

 }



Regards,
Bhaskar
Genady Sergeev
Telerik team
 answered on 11 Feb 2011
1 answer
46 views
I have the following code in my aspx page for the RadTreeViewContext Menu. It is simple code. For some reason when I click on a node and the menu comes up I click on a menu item but the page will NOT submit. The context menu item does nothing when I click it. Any ideas. Please see code below it is simple code ...

<telerik:RadTreeView ID="RadTreeView1" Runat="server">
  
     <ContextMenus>
       <telerik:RadTreeViewContextMenu OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" runat="server" ID="HelpDeskMenu"  ClickToOpen="True" Skin="Vista">
           <Items>
           <telerik:RadMenuItem Text="Add Lesson Component" Value="xyz"></telerik:RadMenuItem>
           </Items>                      
       </telerik:RadTreeViewContextMenu>
   </ContextMenus>
  
   </telerik:RadTreeView>
  
  
// CODE TO POPULATE TREE 
  
  RadTreeNode node = new RadTreeNode("Test Google");
              
                   RadTreeNode node2 = new RadTreeNode("Test Google 2");
                   RadTreeView1.Nodes.Add(node);
            RadTreeView1.Nodes.Add(node2);
Yana
Telerik team
 answered on 11 Feb 2011
2 answers
100 views
Hello,

I have a radtabstrip in my page as a wizard, there is a preview page view at the end of the wizard but the user can go back clicking on the other tabs to edit.

I am looking for client code to only postback the preview pageview (radtab) when it is called and not the other tabs.

Thank you,
Shehab
Lord Vader
Top achievements
Rank 1
 answered on 11 Feb 2011
1 answer
114 views
Hi
i am using grid bound columns and followed this procedure to retrive the values
string strID = string.Empty;
       string UnderLicenseeID = string.Empty;
       string StrType = string.Empty;
       string msg = string.Empty;
       //RadTextBox Users = ((RadTextBox)e.Item.FindControl("txtUsers")).Text;
       ViewState["bound"] = "1";
       if(e.Item is GridDataItem)
       {
           GridDataItem Item = e.Item as GridDataItem;
           if(ViewState["bound"].ToString() == "1")
           {
               foreach (GridDataItem item in RadGrid1.Items)
               {
                   if(item["Users"].Text != null)
                   {
                       strID = item["ClientID"].Text;
                       UnderLicenseeID = item["UnderLicense"].Text;
                       StrType = item["Type"].Text;
                       msg = item["Name"].Text;
                       RadGrid2.Visible = false;
                   }
               }
           }
       }
but what happens is that when i edit and enter a value the item["Users"].text value is &nbsp why i am not getting the value what i have enterd to update?
pl help
Shinu
Top achievements
Rank 2
 answered on 11 Feb 2011
1 answer
87 views
We have successfully wired a RadDatePicker to work in the Filterbar (as a filter) by using the OnDateSelected client event but we don't get it to work when the user types in a date by hand, how should this be done? The normal filterbutton isn't displayed for this type of input it seems, and AutoPostBackOnFilter doesnt seem to work. Any ideas?
Marin
Telerik team
 answered on 11 Feb 2011
1 answer
120 views
Hi,

I want to use only RadSchedulerRecurrenceEditor control in the Sharepoint and want to copy recurrence rule into the RecurrenceData field of a sharepoint's calendar list item.

Where as in codebehind, I am unable to get that control. Let me know, If I miss anything. I am using  2010.1.309.35 version Telerik assembly.  

Thanks, mulagundla
Mallikharjun Mulagundla
Top achievements
Rank 1
 answered on 11 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?