Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Hi,
   
I am using radGrid on my page and set enableeventvalidation=false in page tag.

then by using following line of code I am not able to call ItemCommandEvent.
<telerik:GridButtonColumn ConfirmText="Delete this Record?" ConfirmDialogType="RadWindow"
                                                HeaderText="Delete" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete"
                                                Text="Delete" UniqueName="DeleteColumn" HeaderStyle-HorizontalAlign="Center"
                                                HeaderStyle-Width="50px">
                                                <ItemStyle HorizontalAlign="Center" CssClass="rbDelete" />
                                            </telerik:GridButtonColumn>

I just replace above code with <itemTemplate> with radButton then its working fine (means control goes to ItemCommandEvent).

Can you please guide me why its behaving like this?
Princy
Top achievements
Rank 2
 answered on 22 Aug 2011
5 answers
372 views
Hi,

I am using rad grid for which filter menu option is used. Some of the filter menus are removed for customization like Greater than, Less Than, etc.

The problem is when I type something in Filter box and click on filter button all menus are shown. Then I select "Contains" from it.
The grid shows me filtered records. After that  I select "No Filter" and all records are shown. After that again I click on filter menu and only "Contains" option is shown in Filter menu. Why so..? Is there any problem with Filter menu or please tell me its working.

I am using the latest version of telerik  Rad controls i.e. 2011.2.712.35

Please help me out with this. Its urgent.


Thanks.
Mira
Telerik team
 answered on 22 Aug 2011
1 answer
82 views
I need to have a dynamic dropdown on rad editor which has values for different text styles.
For eg: On selecting Style 1 from the drop down, the selected text should be bold. On selecting Style 2, the selected text should be bold + italic + font 14.
Rumen
Telerik team
 answered on 22 Aug 2011
1 answer
79 views
I am trying to develop Visual Web Part for SharePoint 2010. I have ASP.NET AJAX RadControls version 2011 Q1 SP2 installed.
I got stuck with following problem:

1. I didn't see the SQLDataSource control under "Data" node in ToolBox. However, I can still create SQLDataSource control by writting the code programmatically in ascx source file. Can I still use it just fine?
 
2. I can't find the web.config in the project folder to add ConnectionString for SQLDataSource control. Even though I can define the connection string in the SQLDataSource configuration just fine. But when I click deploy, it kept on giving me error that it can't find the connection string in the application configuration.

3. Is it true that developing Visual Web Part using AJAX RadControls, the Ajax functionality is disabled? (The page keep on doing full post back). If there is any workaround, would you please show me step by step?

I have demo on Visual Web Part using RadControl AJAX in the next few days. It is do or die situation. Please reply me as soon as you can. I'm really really appreciate it.

Thanks All.

Lamk.



Marin
Telerik team
 answered on 22 Aug 2011
3 answers
374 views
Hello,

I'm using the RadGrid control in order to insert, update and delete records (using UserControl, see demo).
I have a problem here:
I have to upload files by inserting new records, edit the files by editing the record and remove the files by deleting the record.

I want to indicate again, the RadGrid using usercontrol .

Please, I need your help,
It is appreciated to send a sample code.

Regards,
Bader
Tsvetina
Telerik team
 answered on 22 Aug 2011
1 answer
142 views

Using the PageMethods Load on Demand demos, do I have the ability to hook up a JavaScript onComplete() function as I would with a regular Page Method?

Using the below example, where could I hook up my onComplete() function?:

<telerik:RadTreeView ID="RadTreeView1" runat="server">
    <WebServiceSettings Path="Default.aspx" Method="LoadNodes" />
</telerik:RadTreeView>
[WebMethod]
public static RadTreeNodeData[] LoadNodes(RadTreeNodeData node, object context)
{
    List<RadTreeNodeData> result = new List<RadTreeNodeData>();
    RadTreeNodeData node = new RadTreeNodeData();
    node.Text = "Loaded on demand";
    node.ExpandMode = TreeNodeExpandMode.WebService;
      
    return result.ToArray();
}
Plamen
Telerik team
 answered on 22 Aug 2011
1 answer
109 views
I have a Master Page.
IN Master I got a RadSlidingPane. I put RadSkinManager in RadSlidingPane and oesnt work.
I put out RadSlidingPane and works perfectly.

Why?

   RadSkinManager radSkinManager = new RadSkinManager();
     radSkinManager.ID="RadSkinManagerpane";
    radSkinManager.ShowChooser = true;
       radSkinManager.Skin ="Vista";
         searchPane.Controls.Add(radSkinManager);
Tsvetina
Telerik team
 answered on 22 Aug 2011
3 answers
99 views
Hi,

i'm binding my radgrid1 to an onneeddatasource. All of the columns work fine except for the GridDropDownColumn. This column fail to populate with data in regular mode.

 

 

<telerik:GridDropDownColumn DataField="_UnloadTypeName"  

DataSourceID="RadGrid1_NeedDataSource"  

FilterControlAltText="Filter UnloadTypeColumn column"  

HeaderText="Unloading Type" ListTextField="_UnloadTypeName"  

ListValueField="_UnloadTypeName" UniqueName="UnloadTypeColumn">  

 

<HeaderStyle Width="100px" />  

 

<ItemStyle Width="100px" />  

 

</telerik:GridDropDownColumn>

please help.

thanks,
Minh Bui

 

Shinu
Top achievements
Rank 2
 answered on 22 Aug 2011
1 answer
88 views
Hey,
I need to change the color of the rows in the grId how can I do that?
Princy
Top achievements
Rank 2
 answered on 22 Aug 2011
1 answer
192 views
Hi All,
I am working on this task for past 2 days and could not solve this problem. I have a radgrid with a column of linkbutons inside it. when a user clicks on any link button, I pop up a javascript message based on some conditions.
ScriptManager.RegisterStartupScript(Page, this.GetType(), "message", string.Format("confirm_select('{0}','{1}');", RadGrid_IDPicker.ClientID,row.RowIndex + 1), true);

inside the function confirm_select, I have to make one row bold, the row that user clicked on and make the previous bolded row as normal/unbolded.
To achieve this, I am looping though the radgrid and unbolding all the rows and bolding the currenlty selected row if the user presses ok, but if the user pressed cancel, I would leave the previous row as bolded. below is my code
<script type="text/javascript"
var selectedRowIndex = -1;
    function confirm_select(gridViewID, rowIndex) {
        debugger;
  
  
        var gridview = document.getElementById(gridViewID);
        var master = gridViewID.get_masterTableView();
          
        if (confirm("You are leaving the parent level of the currently selected ID, are you sure?") == true) {
  
            for (var i = 1; i < gridview.rows.length; i++) {
                //not the selected row
                if (i != rowIndex)
                    gridview.rows[i].style.fontWeight = 'normal';
                //selected row
                else {
                    gridview.rows[i].style.fontWeight = 'bold';
                    selectedRowIndex = rowIndex;
                }
            }
  
        }
        else {
            if (selectedRowIndex != -1)
                gridview.rows[selectedRowIndex].style.fontWeight = 'bold';
  
        }
    }
  
</script>

I am getting an error right here

 

 

var master = gridViewID.get_masterTableView();

 


I would not have done the get get_masterTableView(), but I could not loop thorugh the gridview rows to make them bolded or unbolded. Below is the code for my gridview.
I also tried

var master = gridview.get_masterTableView();
but above line of code didn't work either.

<telerik:RadGrid ID="RadGrid_IDPicker" AllowSorting="True" PageSize="100" AllowPaging="True"
                                        runat="server" GridLines="None" OnPageIndexChanged="RadGrid_IDPicker_PageIndexChanged"
                                       OnPageSizeChanged="RadGrid_IDPicker_PageSizeChanged" Width="1500px" Visible="false" OnItemDataBound="RadGrid_IDPicker_DataBound"  >
                                        
                                       <MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" DataKeyNames="ID" >
                                           <Columns>
                                               <telerik:GridTemplateColumn UniqueName="TemplateLinkColumn"  AllowFiltering="false" HeaderText="ID">
                                                
                                                   <ItemTemplate>
                                                       <asp:LinkButton ID="ID_Link" runat="server" OnClick="MCLID_Link_Click" Text='<%#Bind("ID") %>' CommandName="Bold"></asp:LinkButton>
                                                     
                                                   </ItemTemplate>
                                                     
                                               </telerik:GridTemplateColumn>
                                                  <telerik:GridTemplateColumn    HeaderText="TAG">
                                                   <ItemTemplate>
                                                      <asp:Label ID="lbltag" runat="server" Text='<%#Bind("TAG") %>'></asp:Label>
                                                     
                                                   </ItemTemplate>
                                           </Columns>
                                       </MasterTableView>
                                       <PagerStyle Mode="NextPrevAndNumeric" />
                                   </telerik:RadGrid>

I don't have anything else defined. this gridview is inside the radPanelbar so the whole gridview is enclosed in this

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="1500px" BackColor="#E6E6E6" ExpandMode="MultipleExpandedItems">
    <Items>
        <telerik:RadPanelItem runat="server" Text="ID Picker" Expanded="true" >
            <Items>
                <telerik:RadPanelItem Text="" Expanded="true">
                    <ItemTemplate>
                              //radgrid is right here

i am not sure what am I doing wrong, but I spend lot of hours on it and this is not working.

Any help will be highly appreciated.
Iana Tsolova
Telerik team
 answered on 22 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?