Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
98 views
Hi,

I'm new to Telerik, and thus I'm trying out some of your examples to familiarize myself.

I only downloaded the dll's, and added the axd to my existing web.config. Following, I've tried to incorporate a number of different demos into my website. I can make them work on the initial page load, but using paging results in an empty control after pageload. The simplest instance I've tried is:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/simplebinding/defaultcs.aspx

Inserted the exact same RadScriptManager, RadAjaxManager and RadGrid into my aspx, and added the codebehind - only changed the query and connectionstring.

First pageload works, but after trying to go to any other page (there's 50 pages of records), it results in an empty rad grid container:

<div id="phcontent_0_phcontent_0_RadGrid1Panel" style="display: block; ">
  <div id="phcontent_0_RadGrid1" class="RadGrid RadGrid_Default" style="width:97%;"
  <!-- 2011.2.712.35 -->
  <input id="phcontent_0_RadGrid1_ClientState" name="phcontent_0_RadGrid1_ClientState" type="hidden" autocomplete="off">
  </div>
</div>


There are no javascript errors, and the call to Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=phcontent_0_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b

has the content
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
(function() {
      function loadHandler() {
          var hf = $get('phcontent_0_RadScriptManager1_TSM');
          if (!hf) return;
          if (!hf._RSM_init) { hf._RSM_init = true; hf.value = ''; }
          hf.value += ';';                                    
          Sys.Application.remove_load(loadHandler);
      };
      Sys.Application.add_load(loadHandler);
  })();


Does anyone have an idea as to what I'm doing wrong?
Morten
Top achievements
Rank 1
 answered on 24 Aug 2011
1 answer
78 views
I have a diferents custom skin.

My doubt is:

RadSkinManager accept add in radcombobox custom skin?

Or I need use RadPageStylist control???

Thanks
Tsvetina
Telerik team
 answered on 24 Aug 2011
1 answer
35 views
Hi All,
  I want to integrate ImageProperty Dialog window with Image
I am using Two Tabs
First is using Image and second tab will be "ImageProperty Dialog window"
How the first Tab(Image) Linked with Second tab (ImageProperty Dialog window).

Please help me

Thanks
Prabhakar
Rumen
Telerik team
 answered on 24 Aug 2011
3 answers
73 views
Hi,

I have a radmenu and a radgrid placed in a panel respectively.
When searched with some search criteria, all the results are displayed in the radgrid.

Because of the RadMenu presence above the RadGrid, Radgrid is getting sqeezed.
Other issues that i faced becoz of sqeezing are:
1. When i sort a particular column, instead of an arrow image, i get a box type image beside the header text.
2. Paging number are appearing very close to each other and the paging text is getting displayed below the paging numbers instead of Right bottom corner.

I had tried placing the Radmenu in a separate Div, panel and table but it did not help a bit..., also tried manually adjusting the width and height of the grid, still no use.

When i remove or move the RadMenu control below the grid, RadGrid is getting displayed as expected.
But as per the design i cannot move the Radmenu below the grid.

Could you please help us in fixing this issue...


Thanks in advance
Pavlina
Telerik team
 answered on 24 Aug 2011
5 answers
73 views
I'd like to override the subject textbox and have a listbox there instead. Do I need to use advancedinserttemplate for this? This is the only input field I want to customize. Do I have to explicitly define every field on the insert form if I do it that way. Are there any decent examples of this?

Thanks,
Dan
Plamen
Telerik team
 answered on 24 Aug 2011
1 answer
66 views
I have stumbled upon a very odd bug.  The following are the pertinent details:

  1. You have an aspx web page and on the initial load, you have a hidden display: none div.  
  2. An action is taken by the user, and the div is shown using javascript.
  3. The div that is now shown contains a numeric text box, a rad dropdown, and various other controls.
  4. The contents of this div are all enclosed in an Update Panel.
  5. The dropdown in this div causes an async postback

The scene goes like this:  User loads page, clicks something to show the hidden div, selects a value from the dropdown, the page posts back and populates another dropdown, the user enters a value in the numeric text box, the user clicks submit.  At this point, the page again posts back asynchronously and when the value of the numeric text box is checked, it is Nothing.

If the user enters a value in the numeric text box BEFORE they select a value from the dropdown that causes a postback, the value on submit is accurate.  If the user selects a value from the dropdown that causes a postback, then enters a value in the numeric text box, tabs to the next control, then re-enters a different value in the numeric text box, the value on submit is accurate.  It is only when you select a value from the dropdown which causes an async postback, enter a value in the numeric text box and submit (tabbing out after or not doesn't make a difference) that the value of numerictextbox.value = Nothing


Any help in troubleshooting this issue would be appreciated.  I was using a prior version of the telerik controls, but updated to 2011.2.712.40 and retested, the issue persisted.  

Karl
Vasil
Telerik team
 answered on 24 Aug 2011
3 answers
98 views
Hello

 

I have followed this guide 'Hiding expand/collapse images when no records' on the telerik site and got it working great, but when i change
HierarchyDefaultExpanded="False" then the images dont show when I now there are child rows in the 2nd table.  If i change it to "True" it loads them expanded with the image showing...Does anyone know how i can have it collapsed when first entering the pages but with the images showing when there are child rows?

Many thanks

Iana Tsolova
Telerik team
 answered on 24 Aug 2011
1 answer
128 views
hi,
I need to assign a font color and underline for legend's Text in pie chart

thanks,
Mohamed Taraman
Evgenia
Telerik team
 answered on 24 Aug 2011
1 answer
106 views
I'm migrating several radmenu functions into a radribbonbar.  I have a scenario where I use a radconfirm to intercept a menuclick.  It appears that the ribbonbar doesn't support the .click() method for the buttons.  I could use a javascript confirm, then a .set_cancel() method but I want to use the radconfim if possible.

sample scripts:

var btnclickCalledAfterRadconfirm = false;
var RRB_lastClickedItem = null;
 
function btn_confirmCallbackFunction(args) {
                alert('debug 1');
                if (args) {
                    btnclickCalledAfterRadconfirm = true;
                    alert('debug 2');
                    // this works if this was a radmenuitem object
                     RRB_lastClickedItem.click(); --
                    alert('debug 3');
                }
                else
                    btnclickCalledAfterRadconfirm = false;
 
                RRB_lastClickedItem = null;
            }
 
            function RRB_Btn_OnClientItemClickingHandler(sender, eventArgs) {
 
                if (!btnclickCalledAfterRadconfirm) {
                    RRB_lastClickedItem = eventArgs.get_button();
                    var myText = RRB_lastClickedItem.get_text();
                    //alert('debug: ' + myText);
                    if (myText == 'Clear All') {
                        eventArgs.set_cancel(true);
                        radconfirm("Clear all Alarms?", btn_confirmCallbackFunction);
                    }
                    if (myText == 'Delete All') {
                        eventArgs.set_cancel(true);
                        radconfirm("Delete all Alarms?", btn_confirmCallbackFunction);
                    }
                    if (myText == 'Acknowledge All') {
                        eventArgs.set_cancel(true);
                        radconfirm("Acknowledge all Alarms?", btn_confirmCallbackFunction);
                    }
                    if (myText == 'Clear') {
                        eventArgs.set_cancel(true);
                        radconfirm("Clear selected Alarms?", btn_confirmCallbackFunction);
                    }
                    if (myText == 'Delete') {
                        eventArgs.set_cancel(true);
                        radconfirm("Delete selected Alarms?", btn_confirmCallbackFunction);
                    }
 
                    if (myText == 'Refresh') {
                        //alert('refresh');
                        eventArgs.set_cancel(true);
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequestWithTarget('<%= lbHiddenRefresh.UniqueID %>', '');
                    }
                }
                btnclickCalledAfterRadconfirm = false;
 
            }

Simon
Telerik team
 answered on 24 Aug 2011
2 answers
132 views
Hello, i'm having a problem to format the with the size of the header columns of my RadGrid...At this moment I don't know why the header has a bigger size then on default appearence.How can i manipulate the column header size and column texts?

Here my code:
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="Server">
    <h1 style="text-align: center;">
        Assign Invoices</h1>
    <br />
    <asp:Panel runat="server" ID="ViewChooserWrapper">
        <telerik:RadTabStrip runat="server" ID="ViewChooser" AutoPostBack="True" SelectedIndex="0"
            MultiPageID="RadMultiPage1" Skin="Black">
            <Tabs>
                <telerik:RadTab Text="Daily Resume" Selected="True" />
                <telerik:RadTab Text="Assign Invoices" />
            </Tabs>
        </telerik:RadTabStrip>
        <div class="content">
            <asp:Panel runat="server" ID="Panel1">
            </asp:Panel>
        </div>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" BorderColor="Black" BorderStyle="Solid"
            BorderWidth="1px" SelectedIndex="0" ClientIDMode="Static" RenderSelectedPageOnly="True">
            <telerik:RadPageView ID="pvDailyResume" runat="server">
                <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Black" CellSpacing="0" GridLines="None"
                    AllowMultiRowSelection="True">
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
                        <Scrolling AllowScroll="True" ScrollHeight="400px" UseStaticHeaders="True" />
                    </ClientSettings>
                    <MasterTableView>
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7">
                    </HeaderContextMenu>
                </telerik:RadGrid>
            </telerik:RadPageView>
            <telerik:RadPageView ID="pvAssignInvoices" runat="server">
                <table>
                    <tr>
                        <td>
                            <telerik:RadListBox ID="RadListBox1" runat="server" AllowReorder="True" Skin="Black"
                                Sort="Ascending" Height="400px" Width="220px" EnableDragAndDrop="True">
                                <ButtonSettings TransferButtons="All"></ButtonSettings>
                                <HeaderTemplate>
                                    <h5 style="color: White; text-align: center">
                                        USERS</h5>
                                </HeaderTemplate>
                            </telerik:RadListBox>
                        </td>
                        <td>
                            <telerik:RadListBox ID="RadListBox2" runat="server" EnableDragAndDrop="True" Height="400px"
                                AllowReorder="True" Width="140px" Skin="Black">
                                <ButtonSettings TransferButtons="All"></ButtonSettings>
                                <HeaderTemplate>
                                    <h5 style="color: White; text-align: center">
                                        STAGING</h5>
                                </HeaderTemplate>
                            </telerik:RadListBox>
                        </td>
                        <td>
                            <telerik:RadListBox ID="RadListBox3" runat="server" SelectionMode="Multiple" EnableDragAndDrop="True"
                                Height="400px" Width="140px" AllowReorder="True" Skin="Black">
                                <ButtonSettings TransferButtons="All"></ButtonSettings>
                                <HeaderTemplate>
                                    <h5 style="color: White; text-align: center">
                                        GROUP</h5>
                                </HeaderTemplate>
                            </telerik:RadListBox>
                        </td>
                        <td>
                            <telerik:RadButton ID="RadButton1" runat="server" Text="Assign" Skin="Black" Width="100px"
                                Height="40px" OnClick="RadButton1_Click">
                            </telerik:RadButton>
                            <br />
                            <br />
                            <telerik:RadButton ID="RadButton2" runat="server" Text="Unassign" Skin="Black" Width="100px"
                                Height="40px" OnClick="RadButton4_Click">
                            </telerik:RadButton>
                            <br />
                            <br />
                            <telerik:RadButton ID="RadButton3" runat="server" Text="Unassign All" Skin="Black"
                                Width="100px" Height="40px" OnClick="RadButton3_Click">
                            </telerik:RadButton>
                        </td>
                        <td style="width: 10px">
                        </td>
                        <td>
                            <telerik:RadGrid ID="RadGrid2"  runat="server" Skin="Black" CellSpacing="0" GridLines="None"
                                Width="460px" Height="400px" AllowSorting="True" AllowMultiRowSelection="true"
                                OnNeedDataSource="RadGrid2_NeedDataSource">
                                <ClientSettings>
                                    <Selecting AllowRowSelect="True" />
                                    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                                </ClientSettings>
                                <MasterTableView DataKeyNames="UserName,Group,Staging">
                                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </ExpandCollapseColumn>
                                    <EditFormSettings>
                                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                        </EditColumn>
                                    </EditFormSettings>
                                </MasterTableView>
                                <FilterMenu EnableImageSprites="False">
                                </FilterMenu>
                                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7">
                                </HeaderContextMenu>
                            </telerik:RadGrid>
                        </td>
                    </tr>
                </table>
Ricardo
Top achievements
Rank 1
 answered on 24 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?