Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
155 views
Hey,

I’m looking into HTTP Compression tools and I was wondering if anyone here has used any or have any suggestions?  I’m currently using the RadControls for ASP.Net AJAX, ASP.Net AJAX Extensions and controls from the ASP.Net AJAX Toolkit.  I’d like the compression tool to be able to deal with WebResouce.axd, ScriptResource.axd and JavaScript files without breaking anything.

Thanks

Andre
Sebastian
Telerik team
 answered on 25 Sep 2008
1 answer
148 views
How do I get my menu items text to align center?

My menu is db drivin and each items width is set from the database, I want to align the text of the menu item to the center. It looks as if there is a set amount of space at the start of each menu item as all my menu items have the same amount of space at the start no mater what the menuitems width is set to.

I have tried to modifiy ".rmText" in the css class but that had no effect
Yana
Telerik team
 answered on 25 Sep 2008
1 answer
82 views
Hi all,

I have a Rad Grid.
I have two linkButtons a) Select and  b) Edit.
Select redirects the page
Edit is used to update RadGrid.

My Problem.
Sometimes Edit tends to redirect the page instead of showing the editTemplate.

I dont know what to do to fix it.

I hope I am clear with my problem.

Thanks in advance for all your help.

:-o)
Vlad
Telerik team
 answered on 25 Sep 2008
1 answer
111 views
I am using the RadWindow to show a "pop up" window and I have everything working except there are a couple issues that I cannot seem to resolve.

One:
In IE7, the content of the window will not scroll.  It is showing grayed out scroll bars, but you cannot use them.  Sometimes it shows 100 pixels of padding to the right of the content.  My initial thought is that the iframe is not being sized correctly in the window.

Two:
In FireFox (v3), the all the buttons (pin, max...) except the close button have a tiny black square displaying over the top of the button.  Pretty annoying, but this behavior isn't present when using IE7.

Here is my code:
<script language="javascript"
    function showOrder(url,targetId){ 
        var oWnd = $find(targetId);   
           
        if (oWnd.get_navigateUrl() == ''){ 
            oWnd.setSize(1000,500); 
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Pin + Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Move); 
            oWnd.center; 
        } 
        oWnd.setUrl(url); 
        oWnd.show();  
    } 
</script> 
<telerik:RadWindow ID="OrderViewWnd" Skin="Gray" Title="View Purchase Order" VisibleStatusbar="false" runat="server"></telerik:RadWindow> 
Any ideas on how to resolve these issues?


Georgi Tunev
Telerik team
 answered on 25 Sep 2008
1 answer
110 views
My main page is calling a window, a page loads in the RadWindow.

When I click a button in this window I want to fire the code behind event of a button on the main page(calling page).

How can I do this?

Thanks for any suggestions or sample code.
Georgi Tunev
Telerik team
 answered on 25 Sep 2008
0 answers
131 views
Hi,
        I had one rad combo and rad grid in my web page. based on the rad combo value, i have to retrive the data from database and load it to the RadGrid. So i enabled selectedIndexChangeEvent for radcombo. In this just i called radgrid.Rebind(). I have raised OnNeedDatasource event for Rad grid. In this i am getting the radcombo value and pass it the one method, it will return datatable. I assigned this datatable into the RadGrid datasource. Paging, filtering is working fine but sort is not working. If i call rebind in the page_load event, then sort and Paging is working but Filter is not working. I have to call radgrid.Rebind() while sort action is performed. How do i correct this problem?

Sample Code:

protected

void Page_Load(object sender, EventArgs e)

{

 

if (!IsPostBack)

{

rCboProject.DataSource = GetProjects();

rCboProject.DataTextField =

"Project";

rCboProject.DataValueField =

"Project";

rCboProject.DataBind();

rgDetails.Rebind();

}

else

{

//rgDetails.Rebind();

}

}


///

<summary>

/// Get the Projects

/// </summary>

/// <returns>Return the Project list in datatable</returns>

private DataTable GetProjects()

{

try

{

DataSet dsProjectDetails = new DataSet();

// TODO to get the Project details from database

if (dsProjectDetails == null || dsProjectDetails.Tables.Count == 0)

return null;

if (dsProjectDetails.Tables["ProjectDetails"].Rows.Count > 1)

{

DataRow newRow = dsProjectDetails.Tables["ProjectDetails"].NewRow();

newRow[

"Project"] = "ALL";

dsProjectDetails.Tables[

"ProjectDetails"].Rows.InsertAt(newRow, 0);

}

return dsProjectDetails.Tables["ProjectDetails"];

}

catch

{

throw;

}

}

protected void rCboProject_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)

{

rgDetails.CurrentPageIndex = 0;
rgDetails.Rebind();

}

protected void rgDetails_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

{

string project = rCboProject.Text;

rgDetails.DataSource = GetTaskDetails(project);

}

private

DataTable GetTaskDetails(string project)

{

try

{

DataSet dsTaskDetails = new DataSet();

//TODO to get the task details

DataTable dtTaskDetails = dsTaskDetails.Tables["TaskDetails"];

return dtTaskDetails;

}

catch

{

throw;

}

}



Thanks and Regards,
S.Santhanamahalingam.
Santhanam
Top achievements
Rank 1
 asked on 25 Sep 2008
1 answer
148 views
Hi,
        I am using rad grid. In that I have designed 3 level hierarchy.
Thus when I click on '+' sign of first level it expands. When I click on '+' sign of second level it expands.

Now my requirement is that I want this second level to be expanded by default without clicking on the '+' sign. Thus when I click on first level it should be expanded and it that I can see the third level in expanded format  be default.

Thanks,
Rahul
 
Shinu
Top achievements
Rank 2
 answered on 25 Sep 2008
1 answer
126 views
Hi All,

I am using a  asp.net ajax radgrid. I am using filtering with columns in radgrid. I want to remove the image button attached with the filter column.

How can I do this. Please suggest 
Shinu
Top achievements
Rank 2
 answered on 25 Sep 2008
4 answers
256 views
Hi
I have a grid with a mastertableview and one detail table. I would like to put the detail table width as large as the mastertableview and aligne with the mastertableview. If the mastertableview start at x=0 then I want my detailtable start at x=0 and the right side finish at the same x also
Thanks in advance 
Princy
Top achievements
Rank 2
 answered on 25 Sep 2008
1 answer
148 views
i am using the rad grid on inside from  rad panel bar.its working successfully.
But my doubt is
 
I had put hyperlink button in rad grid on Item template column.
These button had clicked to open the popup window and
that page had button should proceed the submit action process after then  popup window closed. if sametime parent window should be refresh.
They were all  working in Internet exploser,mozila browser but
 didn't worked in  safari browser.

--------------parentpage-------------------------------------------


These rad grid had put the parent page and its open to popup window through in coding....


<design page>
<radG:RadGrid ID="rgEditProbe" runat="server" AutoGenerateColumns="False" GridLines="None"
                                    SkinsPath="../GridSkins" AllowPaging="true" Skin="Vista" PageSize="2" OnItemDataBound="rgEditProbe_OnItemDataBound"
                                    Width="770px" HeaderStyle-HorizontalAlign="center" OnNeedDataSource="rgEditProbe_OnNeedDataSource"
                                     OnPageIndexChanged="rgEditProbe_OnPageIndexChanged">
                                    <PagerStyle NextPageText="Next" PrevPageText="Prev" Position="TopAndBottom" Mode="NextPrevAndNumeric"></PagerStyle>
                                    <MasterTableView>
                                        <Columns>
                                            <radG:GridTemplateColumn ItemStyle-Width="750px" HeaderText="Questions">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hfSectionNo" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"SetIndex") %>' />
                                                    <asp:HiddenField ID="hfSectionOrderIndex" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"OrderIndex") %>' />
                                                    <asp:HiddenField ID="hfSectionName" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"Caption") %>' />
                                                    <asp:HiddenField ID="hfProbeId" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"ProbeId") %>' />
                                                    <radp:RadPanelbar ID="rpbProbe" runat="server" Width="750px" SkinsPath="../PanelBarSkins"
                                                        Skin="Default2006" CausesValidation="false" >
                                                        <Items>
                                                            <radp:RadPanelItem Expanded="true" Value="rpiQuestion" CssClass="style3" Width="750px">
                                                                <Items>
                                                                    <radp:RadPanelItem Value="Test1" Width="750px">
                                                                        <ItemTemplate>
                                                                        <br />
                                                                            <table>                                                                              
                                                                                <tr>
                                                                                    <td align="center">
                                                                                       
                                                                                           
                                                                                       <asp:HyperLink ID="hlAddQuestion" runat="server" Text="Add Question"  Font-Underline="true" ></asp:HyperLink>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </ItemTemplate>
                                                                    </radp:RadPanelItem>
                                                                </Items>
                                                            </radp:RadPanelItem>
                                                        </Items>
                                                    </radp:RadPanelbar>
                                                </ItemTemplate>
                                            </radG:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </radG:RadGrid>




This onitemdatabound event should be bind the popup window in coding seciton....

protected void rgEditProbe_OnItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e)
{

    SubItem.Attributes.Add("onclick", "Popup=window.open('popupwindow.aspx','Popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=400,left=20,top=20'); return false; onmouseout=window.status=' ';return true; onmouseover=window.status='Add Question';return true ");
}


---------------------------------Client page-----------------------------

These  imagebutton had the client page to clicked proceed on refresh process in onclick event....

<design>

<asp:ImageButton ID="btnQuestionDetailsSave" runat="server" ImageUrl="~/Images/save.gif"
   AlternateText="Save" ValidationGroup="Save" OnClick="btnQuestionDetailsSave_Click" />


These methods could be call the end off submit process on popwindow after then refresh page the parent window.

btnQuestionDetailsSave_Click(object sender,imageclickevent e)
{
Refresh();
}

private void Refresh()
    {
        const string cRefreshParent = "<script language='javascript'>" +
                                "  window.opener.location.reload();" + "</script>";
        const string cRefreshParentKey = "RefreshParentKey";

        if (!this.Page.ClientScript.IsClientScriptBlockRegistered(cRefreshParentKey))
        {
            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),
            cRefreshParentKey, cRefreshParent);
        }
    }


Above had method(Refresh()) was working properly expect safari browser.

why????

Please solve problem....

Georgi Tunev
Telerik team
 answered on 25 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?