Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi,

I have a grid that's bound to a webservice to provide its data. I have enabled sorting and

function onGridCommand(sender, args) {
        var OldSortExpression = SortExpression;
        var sortExpressions = sender.get_masterTableView().get_sortExpressions();       
        // SortExpression (global) is passed to webservice on rebind of grid.
        SortExpression = sortExpressions.toString();
}

this works ok but the expression returned is always <columnname> ASC the icons change correctly on the grid column but it never changes to DESC when you click on the column again? I assume this is because I'm creating the grid dynamically at runtime and also changing the grid structure dynamically as in :

http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html
http://www.telerik.com/help/aspnet-ajax/grdchanginggridstructuredynamically.html

Any ideas?

thanks
Toby
Veli
Telerik team
 answered on 25 Nov 2010
1 answer
122 views
Telerik,

I am having an issue with the RadToolBar control not rendering content, see details below.

So the scenario is this -

I have two RadXmlHttpPanels on the page, both have the same custom user control type inside which contain a radtoolbar.
So the issue is when the first time the user comes to the page and clicks a button in one of the toolbars I do a set_value on the panel
and everything works fine, except the other panels toolbars sometimes dont render the text properly. And this only happens in IE7.
Once the user hovers over the missing text on the toolbars it comes back and works fine until the page is reloaded.

I attached a small example of the scenario along with the screen shots(Note the text not rendering on the radtoolbars).

<form id="form1" runat="server">
<asp:ScriptManager ID="masterScriptManager" runat="server" EnablePageMethods="true">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        <asp:ScriptReference Path="~/JScript.js" />
    </Scripts>
</asp:ScriptManager>
<div>
    <telerik:RadXmlHttpPanel ID="pnlMain1" runat="server" OnServiceRequest="OnServiceRequest"
        EnableClientScriptEvaluation="true">
        <table>
            <tr>
                <td>
                    <telerik:RadToolBar ID="widgetTools" runat="server" Width="100%" EnableShadows="true"
                        OnClientButtonClicked="widgetToolsButton_Clicked">
                        <Items>
                            <telerik:RadToolBarButton ImageUrl="report_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarSplitButton CommandName="interval" ImageUrl="report_16x16.png"
                                EnableDefaultButton="false" Value="intervalSelector">
                                <Buttons>
                                    <telerik:RadToolBarButton Text="One Week" Value="W" ImageUrl="report_16x16.png" />
                                    <telerik:RadToolBarButton Text="Two Week" Value="B" ImageUrl="report_16x16.png" />
                                    <telerik:RadToolBarButton Text="One Month" Value="M" ImageUrl="report_16x16.png" />
                                </Buttons>
                            </telerik:RadToolBarSplitButton>
                        </Items>
                    </telerik:RadToolBar>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblResponse" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </telerik:RadXmlHttpPanel>
    <telerik:RadXmlHttpPanel ID="pnlMain2" runat="server" OnServiceRequest="OnServiceRequest"
        EnableClientScriptEvaluation="true">
        <table>
            <tr>
                <td>
                    <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%" EnableShadows="true"
                        OnClientButtonClicked="widgetToolsButton_Clicked">
                        <Items>
                            <telerik:RadToolBarButton ImageUrl="report_16x16.png" Text="Foobar">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarSplitButton Text="Foobar" CommandName="interval" EnableDefaultButton="false"
                                ImageUrl="report_16x16.png" Value="intervalSelector">
                                <Buttons>
                                    <telerik:RadToolBarButton Text="One Week" Value="W" ImageUrl="report_16x16.png" />
                                    <telerik:RadToolBarButton Text="Two Week" Value="B" ImageUrl="report_16x16.png" />
                                    <telerik:RadToolBarButton Text="One Month" Value="M" ImageUrl="report_16x16.png" />
                                </Buttons>
                            </telerik:RadToolBarSplitButton>
                        </Items>
                    </telerik:RadToolBar>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </telerik:RadXmlHttpPanel>
</div>
</form>
Kamen Bundev
Telerik team
 answered on 25 Nov 2010
1 answer
123 views
How

Hi,

I need to retrive ComboBox id which was in RadGrid EditItemTemplate.

Here is my code:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditFormItem && e.Item.IsInEditMode)// if EditMode is EditForm or PopUp
       {
           GridEditFormItem editItem = (GridEditFormItem)e.Item;
           RadComboBox ddlCity = editItem.FindControl("gvddlPOWCity") as RadComboBox;
           string city = ddlCity.SelectedValue;
           . . . . . . . .
       }
   }


I am set the property in MasterTable view as below:

<MasterTableView DataKeyNames="POWId" EditMode="EditForms">

Eventhough I am getting e.Item.IsInEditMode is always false.

Is there any more modifications need to perform.Please tell me...

Thanks...

Vasil
Telerik team
 answered on 25 Nov 2010
2 answers
172 views
Hello Telerik Team,

I want to know why hovering over select button isn't showed in the Q3 2010 ?

The issue is viewable here:
http://demos.telerik.com/aspnet-ajax/upload/examples/async/monitorprogress/defaultcs.aspx?product=asyncupload

The last version in which was hovering functional was 2010.2.803...

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 25 Nov 2010
5 answers
94 views
After upgrading to the latest RadEditor, for aspx, control we have lost the ability to edit any language that is not in us-english.   I see the correct language for about 2 seconds, then it converts to all garbage characters.   After reading several threads I removed the dictionary from the toolbar, but nothing has changed.   I need to be able to disable this functionality so that we are able to use any language by our users.  Adding a new dictionary per client locale is not an option as it is an international product.

Darrel
Rumen
Telerik team
 answered on 25 Nov 2010
2 answers
111 views
Hey guys,

I have a Sharepoint list wth a column that its from the type "Lookup Multi Values". I am querying the list using CAML and binding the result datatable on my RadGrid.

Everything is fine, but the problem is how the data from this column is apparing. When I have query result that brings more than one value on this lookup column, the result is something like this:
IT;#1;#Mechanic

how can I make this look prettty? :)

Any suggestion is welcome

Alex

Tsvetoslav
Telerik team
 answered on 25 Nov 2010
1 answer
56 views
Good day

i hope that is the place when i can put my problem if not i will delet it.

I create one library that contien different document but i need each document just some users access. for example i have one document purchasing just people of purchasing can access , the second document finance they can't see it .

how can i do it because i try do add just for purchasing document users that i need but i found also this users in finance document.

i will be thankfull if you can help me.

many thanks.

ps:sorry for my english is not good
Lini
Telerik team
 answered on 25 Nov 2010
3 answers
146 views
Hi,

Here is my code:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditFormItem && e.Item.IsInEditMode)// if EditMode is EditForm or PopUp
       {
           GridEditFormItem editItem = (GridEditFormItem)e.Item;
           RadComboBox ddlCity = editItem.FindControl("gvddlPOWCity") as RadComboBox;
           string city = ddlCity.SelectedValue;
           . . . . . . . .
       }
   }


Here,I am getting e.Item.IsInEditMode is always false.I am set the property in MasterTable view as below:

<MasterTableView DataKeyNames="POWId" EditMode="EditForms">

Is there any more modifications need to perform.Please tell me...

Thanks...

Vasil
Telerik team
 answered on 25 Nov 2010
5 answers
479 views
Hi,
 im using rad rotator for rotating latest 10 images from a folder, but the image names are in database.
So ,i have to retrieve those latest 10 image names and should attach these names to images path using image url
like this:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="120px" Width="300px">
                        <telerik:RadRotator ID="RadRotator1" runat="server" Height="120px" Width="680px" ScrollDirection="Right"
                        ItemWidth="120px" ItemHeight="100px" BorderColor="Transparent">
                       <ItemTemplate>
                          <div style="margin:5px">
                              <asp:Image ID="image1" runat="server" CssClass="image" ImageAlign="left" ImageUrl="~/images/movies/'<%#Bind("imagename")%>'"/>
                          </div>
                        </ItemTemplate>
                         </telerik:RadRotator>                        
                    </telerik:RadAjaxPanel>
check my below files to get clear view on this





pls help me out of this issue
Svetlina Anati
Telerik team
 answered on 25 Nov 2010
5 answers
299 views

hi for all

I've download rad pdf tool
Because I want to use in web application and I want to show the files for visitors or users  to the site through the rad pdf tool
But I don't know how to use this tool with asp.net
Any one can help me in this matter, or propose to another tool to view the pdf files

throw asp.net thanks
Rumen
Telerik team
 answered on 25 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?