Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
85 views
Hi Telerik Team,

Is there a way to fire the HeaderContextMenu of a RadGrid based on button click instead of Header right click?
I want to place a button in the header of the grid, once clicked it should open the HeaderContextMenu.

Please do let me know how can I achieve such scenario.

Thanks,
Bilal
Antonio Stoilkov
Telerik team
 answered on 28 Nov 2011
1 answer
47 views

Hi,

I have a telerik  RadTreelist in Asp.net web page.
Treelist have 5 columns.I have set width of each column.
Total with of the Treelist is same as the page width.
My problem is when I expand nodes in a treelist
Width of the treelist expanded and out side the page width.
My requirement is  when expanding nodes
in  treelist ,the  width  of the  treelist should be set to fit the page width.
How can achieve this?
Princy
Top achievements
Rank 2
 answered on 28 Nov 2011
1 answer
75 views
Hi,

I'm using a RadGrid,Where I added a CheckBox column as <GridTemplateColumn><itemTemplate><asp:CheckBox>.Which is Dynamically created for all items of the RadGrid. But while page index has changed and getting back to the old page...The checkbox status hadn't retaining.

If anyone had any solution,Please reply to the post as soon as possible.

Regards,
Anil Kumar.
Shinu
Top achievements
Rank 2
 answered on 28 Nov 2011
1 answer
183 views
I have a grid in which I display column totals in the footer.
Below is the declaration of my grid column.
<telerik:GridTemplateColumn UniqueName="EndBalance" HeaderText="Ending Balance" ItemStyle-HorizontalAlign="Right"
                                FooterStyle-HorizontalAlign="Right">
                                <ItemTemplate>
                                    <asp:HyperLink ID="linkEndBalance" runat="server" Text='<%# Eval("EndBalanceDollars")%>'></asp:HyperLink>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:HyperLink ID="linkEndBalanceTotal" runat="server"></asp:HyperLink>
                                    <br />
                                    <asp:HyperLink ID="linkEndBalanceGrandTotal" runat="server"></asp:HyperLink>
                                </FooterTemplate>
                            </telerik:GridTemplateColumn>

I am having troubles with the footer when exporting the grid.
The total and the grand total columns overlap each other and are not displayed on separate lines.

I have my exportonlydata set to true.

How can I get the line break in the footer.
Shinu
Top achievements
Rank 2
 answered on 28 Nov 2011
1 answer
90 views
I am hiding the add new button and the refresh button and only displaying the export buttons in the commanditemdisplay.
However, I see a line next to the export buttons and I am not sure how to get rid of that.

Below is attached screenshot showing the line. I have highlighted the line in red.
Shinu
Top achievements
Rank 2
 answered on 28 Nov 2011
1 answer
288 views
Error : Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: Rebind.

In one of our project requirement we have customized the SPRADGRID webpart and have created our own webpart. We are facing some issues with Ajax request. 

The rad grid is bound to an SharePoint list. and we are calling the ShowEditInsertForm to open the Edit And Add form for the list. when we submit the form. We are trying to refresh the grid through ajax request when the model pop is closed. we get the above mentioned error when the ajax request completes its execution.




below is some part from the code.

Ajax Manager ajax request code
      void AjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            if (e.Argument == "Rebind")
            {
                this.Grid.Rebind();
            } 
        }


JavaScript Code to raise the request
function refreshGrid(arg)
{
    if (!arg)
    {
        ajaxManagerClientId = 'ctl00_RadAjaxManager1';
        $find(ajaxManagerClientId).ajaxRequest();
    }
    else
   {
        ajaxManagerClientId = 'ctl00_RadAjaxManager1';
        $find(ajaxManagerClientId).ajaxRequest();
    }
}


Vikas Kamble
Top achievements
Rank 1
 answered on 27 Nov 2011
3 answers
191 views
Hello ,,

I've two RadComboBox one for the Region and the other for the Place,,

                <telerik:RadComboBox ID="ddl_Regions" runat="server" Skin="WebBlue" Filter="Contains" 
                    Width="200px" AutoPostBack="True" CssClass="Lists">  
                </telerik:RadComboBox> 
 
                <telerik:RadComboBox ID="ddl_Places" runat="server" Skin="WebBlue" Filter="Contains" 
                    Width="200px" CssClass="Lists">  
                </telerik:RadComboBox> 

When the user choose a Region the Place list will rebind and get the Places of  the selected Region

                    Dim Places As New BusinessLayer.Placess  
                    Places.GetByRegionID(ddl_Regions.SelectedValue)  
                    ddl_Places.DataSource = Places  
                    ddl_Places.DataTextField = "Name" 
                    ddl_Places.DataValueField = "ID" 
                    ddl_Places.DataBind()  
 

everything was fine until i put the Region

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="ddl_Regions" /> 
                <telerik:AjaxUpdatedControl ControlID="ddl_Places" /> 
                <telerik:AjaxUpdatedControl ControlID="lbl_result" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 

when I did that the application still enter the selectedIndexChanged Event of the ddl_Regions and rebind the places but the ddl_Places does't refresh until i did a postback

Should i do postback everytime i want to rebind the ddl_Places data ,?,,  what's the best way to achieve this?

Thank for help
Vignesh
Top achievements
Rank 1
 answered on 26 Nov 2011
1 answer
89 views
I'm interested in building a tab strip that will dynamically change based on a value passed in a querystring, such as a date.
The current date will be highlighted in the tab and multiple days on either side of the center tab will show.
I've attached a screen shot of what I'd like to do and I didn't know if there's a similar example out there.

Thanks,
Matt
Matt
Top achievements
Rank 1
 answered on 25 Nov 2011
3 answers
168 views
Im facing a problem with encoding of RadComboBox.


Before postback in Viewstate I have: 


 
  ctl00_plhBody_ctrRegistration_cbBoss_ClientState:{"logEntries":[],"value":"20","text":"Андреев","enabled":true}



And after postback there is:


 
  {"logEntries":[],"value":"20","text":"&#1040;&#1085;&#1076;&#1088;&#1077;&#1077;&#1074;","enabled":true}<br>


And then application crashes. Its in updatePanel, and unfortunately I dont have error message (its on productioin right now and Ive got limited access to logs).


Thanks for any suggestions
Simon
Telerik team
 answered on 25 Nov 2011
3 answers
168 views
I'm using two RadButtons skinned with Windows7 skin in a .Net 3.5 ASP.Net web application.  Here's the relevant markup:

<asp:Panel ID="pnlCancelRequestConfirmation" runat="server" style="display: none;"  CssClass="CancelRequestModalPopUp">
    <div style="background-color: White; border: 2 solid black; padding: 10px;">
        Enter the reason for removing this SRF:<br />
        <asp:TextBox ID="txtCancelReason" runat="server" Width="200px"></asp:TextBox>
        <br />
        <asp:RequiredFieldValidator ID="rfvCancelReason" runat="server" ValidationGroup="CancelRequestConfirmationGroup"
            ControlToValidate="txtCancelReason" ErrorMessage="Reason is required" CssClass="SrfRedText"
            Display="Dynamic" />
        <br />
        <br />
        <div style="text-align: right;">           
            <telerik:RadButton ID="btnCancelSrfCancelRequest" runat="server" Text="Remove SRF" OnClick="btnCancelSrfCancelRequest_Click" CausesValidation="true" ValidationGroup="CancelRequestConfirmationGroup"></telerik:RadButton>
            <telerik:RadButton ID="btnCloseSrfCancelRequest" runat="server" Text="Cancel" CausesValidation="false"></telerik:RadButton>                    
        </div>
        <br />
        <div style="text-align: right;">
            <asp:Button ID="btnTest" runat="server" Text="ASP.Net Button" />
        </div>
    </div>
</asp:Panel>

This code is being displayed in an Ajax Toolkit Modal Popup.  But this happens elsewhere in my code as well.  I think I've isolated it to some jQuery behavior but I'm not sure how to prevent it.  If I use a normal ASP.Net button, I don't get this behavior.

When I tab out of the textbox above the buttons, the buttons shift to the left.  When I mouse over them, they reposition back to where they are supposed to be. 

Here's a screencast to show what I'm talking about:

http://screencast.com/t/sM21Z1WPZZ

Has anyone experieced this problem?  If so, what should I do to fix it?

Thanks.
Brian
Top achievements
Rank 1
 answered on 25 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?