Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
1.0K+ views
Hi
In order to get better performance i want to use client side binding in data grid . i read numerous articles and also see demos
and read this thread

but the problem is in demo no method is using  masterTable.set_dataSourc but actually they provide demo for web services or with LinQ to SQLClasses
if i want to use following method as described in documentation
function assignDataSource()
{
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
  masterTable.set_dataSource(<some_data_source_of_the_specified_type_above>);
masterTable.dataBind();
}

i want to know how pass JSON data to this method. What would be written in class either it pass data set or data table and how it will be converted toJSOn. Please give me complete sample code for this
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
3 answers
135 views
Hello,

I have a sharepoint page on which i am using third party control(QuestWEbpart) which uses teleric controls. So from javascript i want to set the date of date picker control?
how to do this? 

as i have seen posts to get datepicker like below but i could not find this id and in Content Editor webpart this syntax was giving error.
var datepicker = $find("<%= RadDatePicker1.ClientID %>");

So can you please suggest me how to set the date using javascript in SharePoint environemnt

Thanks-
Galin
Telerik team
 answered on 31 Aug 2012
1 answer
130 views

Hey Community,

 

i hope you can help me.

 

I use the RadListView Control. In that I have the asp.net image control.

I try to bind a path from my Database at the image in the RadListView Control.

 

But it doesn’t work…

I found this code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
       For Each item As RadListViewDataItem In rlvGalerie.Items
            Dim fcimgGalerie As Image = DirectCast(item.FindControl("imgGalerie"), Image)
            Dim Verzeichnis As String = Hilfsfunktion.GetCRTUploadVerzeichnisZuordnung(13, "Dateisystem")
            fcimgGalerie.ImageUrl = Verzeichnis & "\" & SlidewayGalerie.GETDateiName(13)
        Next
End Sub

Thats the control definition:

        <telerik:RadListView ID="rlvGalerie" runat="server" DataSourceID="sdsGalerie" Skin="Windows7">
            <LayoutTemplate>
                <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
            </LayoutTemplate>
            <ItemTemplate>
                <div style="float: left; margin: 5px; padding: 2px; background: #eeeeee;" class="myClass"
                    onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">
                    <asp:ImageButton ID="imgGalerie" ImageUrl="" Width='<%# ImageWidth %>'
                        Height='<%# ImageHeight %>' runat="server" OnClientClick="openRWGalerie(window.location.pathname;)"
                        Style="margin: 0; padding: 0;" />
                </div>
            </ItemTemplate>
        </telerik:RadListView>

I hope you can help my

Greetings Daniel
Sorry for my Englich

Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
79 views
Hi,

I want to show only the close button in the tittle bar of RadWindow. How can I remove all other buttons in the title bar of RadWindow?

Thanks in advance
Sigma
Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
42 views
Pie.htc (html component used for border-radius in IE8 and lower versions of IE).
not working inside of Telerik RadGrid in IE8.(its working perfectly outside of radgrid)

Please find the attached image file.
How can I solve this?
Please help me.

Jayesh Goyani
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
53 views
I am trying to create an inbox service for my companies product, Everything works however for better use for users i would like them to be able to click on an item in a radgrid like they do below
Where i carry a piece of information to the redirected page (strid)

Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    If RadGrid1.SelectedItems.Count > 0 Then
        For Each item As GridDataItem In RadGrid1.SelectedItems
            Dim strid As String
            strid = item("UniqueID").Text
            Response.Redirect("MessageForm1.aspx?id=" + strid)
        Next
    End If
End Sub

But what i want to be able to do is open it in a new radwindow such as i do in the code below
function Message() {
    var ow = window.radopen('MessageForm1.aspx');
    ow.setSize(600, 1000);
    ow.set_title("MessageForm");
    ow.moveTo(400, 0);
 
    return false;
}

but still carry over the piece of information that i can get when i redirect

To clarify...
I currently use response.redirect because it allows me to transfer information, but I want to open a whole new rad window, and still transfer the information, is there any way to do this?
Thanks
Ryan
Princy
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
56 views
How to add more space between remove icon and "Remove" text in attached image?
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
1 answer
94 views
Hi:

I have a grid that I want to show check marks or x marks depending on whether a student has got a question right or wrong.  

The relevant columns in my grid are:

<telerik:GridBoundColumn DataField="IsCorrect" FilterControlAltText="Filter IsCorrect column"
                        HeaderText="IsCorrect" SortExpression="IsCorrect" UniqueName="IsCorrect" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="CheckMark" HeaderText="Status">
                        <ItemTemplate>
                            <asp:Image ID="TemplateColumn" runat="server" ImageUrl="~/Images/check2.gif" />
                        </ItemTemplate>
                        <ItemStyle Width="30px" />
                        <HeaderStyle Width="30px" />
                    </telerik:GridTemplateColumn>

Currently, I am able to show check marks by overriding the check mark with blank text - i.e.

protected void grdExamReults_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
         {
             GridDataItem dataItem = e.Item as GridDataItem;
 
             try
             {
                 if (dataItem["IsCorrect"].Text != "1")
                     dataItem["CheckMark"].Text = "";
             }
             catch
             {
             }
         }
However, what I would really like to do is to show an xmark (wrong.gif) if dataItem["isCorrect].Text !="1".

Any help on this greatly appreciated.

RBS

Shinu
Top achievements
Rank 2
 answered on 31 Aug 2012
4 answers
154 views

I would like to know if the below scenerio is possible in RadGrid.
I am getting data from database and populating the RadGrid. One of the columns values in the RadGrid is a link(linkbutton). Clicking on the link will open a new window(webpage). I was able to move through the rows in the Radgrid using keyboard up and down arrows. I will click on the link for the firsttime and open the new window then when I move through the rows in the Radgrid using keyboard up and down arrows the content in the new window should also change. Does any one know how to achive this? Any help will be appreciated.

Thanks,
Raji
Raji
Top achievements
Rank 1
 answered on 30 Aug 2012
2 answers
97 views
I imagine that that title has a couple of you almost automatically reaching for your keyboards to type a reply.

Read on.

I have a control that, under certain conditions, needs to open a window to collect additional info from the user. Lets call the control the "SettingsControl" and the window that it opens the "AdvancedWindow".

The SettingsControl will be deployed in any number of pages which, themselves are displayed in a RadWindow. Let's call these the "CallingPages" and the underlying aspx page that drives it all, the "TopLevelPage"

My CallingPages directly manipulate controls on (and handle events from) the AdvancedWindow which is defined inside the SettingsControl using a ContentTemplate.

My problem is that when I open the AdvancedWindow it is limited in dimensions to the window containing the SettingsControl.

Now, normally, my AdvancedWindow would be defined using a completely separate aspx page and the window would be opened by having it registered with the WindowManager on the TopLevelPage. Clearly, in this specific case I can't.

What I need to be able to do is something like this...

1. When the CallingPage opens it has a reference to the RadWindowManager that opened it.
2. The CallingPage notifies the SettingsControl and it, in turn, registers the AdvancedWindow with the RadWindowManager from the previous step so that, when called, it has the entire browser window to wander about in.

I can get a reference to the RadWindowManager that opens a RadWindow but only client-side. Because I can't 'see' the active window manager I can't add my AdvanceWindow to its 'Windows' collection and there is no method for doing this client-side.

So, questions:
  1. Is it p[ossible to do what I'm aiming for?
  2. If not, is there a reasonable alternative method?

It is important that my CallingPages can both get/set properties in the AdvancedWindow (which I could do with QueryString parameters and return arguments) and respond to events from controls in the AdvancedWindow. As an example,. the AdvancedWindow contains a RadListView and I need the CallingPages to handle the OnNeedDataSource event.

I'd be grateful for any help/suggestions.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 30 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?