Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
Hi Telerik team,
actually we are evaluating the trial version of the ajax suite.
we'd like to hide the button (se attach file)

how can we achived this ?

thank you very much

Princy
Top achievements
Rank 2
 answered on 27 Oct 2011
1 answer
92 views
I am having an issue on multiple pages with the RadDatePicker.  If the user uses the Calendar and selects a date there is no issue, but about 35% of the time if the user manually enters the date byt typing it in it does not recognize the date as the selected date.  I am using version 2009.3.1314.35.

<telerik:RadDatePicker ID="dpMeetingDate" runat="server" MinDate="2009-01-01" Width="150px" ImagesPath="" Skin="Vista" Enabled="false">
        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Vista"  />
        <DatePopupButton ImageUrl="" HoverImageUrl="" />
</telerik:RadDatePicker>

when I try to save or sometimes try to filter by looking at the date entered if the user has manually entered it I get the error that no date was selected.

if (dpMeetingDate.SelectedDate == null)
{
  lblError.Text += "<br>  - Select a meeting date";
  canSave = false;
}
Princy
Top achievements
Rank 2
 answered on 27 Oct 2011
1 answer
121 views
Hey, how can i hide a hierarchy column in a radgrid from the server side (VB.NET)?

Depending on authorisation, for exemple if a checkbox is checked.
(Not working)
if mycheckbox.checked = true then
    radgrid1.columns(0).display = false
    radgrid1.columns(0).visible = false
End if

(working, only hide the arrow in the hierarchy column)

Dim

 

 

 numberoflines As Integer = radgrid1.Items.Count

 

 

 

For i = 0 To numberoflines - 1

 

radgrid1.Items(i).Cells(0).Controls(0).Visible =

 

False

 

 

 

Next i

 


I need to hide the column because the waste of space in the grid.
I dont want to make another radgrid in copy without the detailtable and call:
if mycheckbox.checked = true then
    radgrid1.visible = true
    radgrid2.visible = false
else
    radgrid1.visible = false
    radgrid2.visible = true
End if

How can i hide the column(0) of the radgrid in the server side?

TY for your reply


Shinu
Top achievements
Rank 2
 answered on 27 Oct 2011
1 answer
117 views
Hi. 
I had this radgrid: 

 <telerik:RadGrid ID="radGrdView" runat="server" AutoGenerateColumns="false" 
                        AllowPaging="true" OnEditCommand="Edit_Click" OnCancelCommand="Cancel_Click" OnUpdateCommand="Update_Click">
                        <PagerStyle Mode="NextPrevAndNumeric" />
                        <GroupingSettings CaseSensitive="false" />
                        <MasterTableView TableLayout="Fixed">
                            <Columns>
                                <telerik:GridEditCommandColumn EditText="Editar" CancelText="Cancelar" UniqueName="grdEdtColumn" />

                                <telerik:GridBoundColumn DataField="idUser" DataType="System.Int32" HeaderText="Nº Colaborador"
                                    Visible="true"  UniqueName="idUser" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="organizationID_FK" DataType="System.Int32" HeaderText=""
                                    Display="false" UniqueName="idEmpresa" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="UserName" DataType="System.String" HeaderText="Colaborador"
                                    Visible="true"  UniqueName="User" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                                  
...
                                 <telerik:GridBoundColumn DataField="totalDias" DataType="System.DateTime"  HeaderText="Dias de Férias"
                                    Visible="true"  UniqueName="Data" ReadOnly="false">
                                </telerik:GridBoundColumn>


                                <telerik:GridBoundColumn DataField="diasPorGozar" DataType="System.Int32" HeaderText="N.º Dias Férias Gozados"
                                    Visible="true"  UniqueName="NFerias" ReadOnly="false"> 
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

As it's possible to note i add a GridEditCommandColumn. This edit button should allow me to edit my last two columns.
When i click on "Update", Cancel or "Edit" my radgrid disapears, only apearing on a new databind to it.  On the new bind then a template for editing the last columns appears. 
 1st problem:  what can i do in order that radgrid doesn't disapear, since it doesn't make sense that i had to rebind the grid to see it with the template. 

My ideia was that when i click on edit, the last two columns would be enable for edit  an i could do it directly on it.  is this possible? 






Shinu
Top achievements
Rank 2
 answered on 27 Oct 2011
3 answers
150 views
Hi

Here are the steps I have followed to upgrade from version
Telerik.Web.UI version = 2009.1.311.35
to Telerik.Web.UI version = 2010.2.826.35

I Installed 2010.2.826.35 on my machine and replaced the old Telerik.Web.UI.Version.dll on the VS2008 Add references with the new one.  I maually edited the web config and changed the version attribute alone to 2010.2.826.35. I also copied the Telerik.Web.Design.dll to project references.

However on the designer I still see the things like
Error Creating Control - Master content Update Panel
failed to create designer "Telerik.Web.UI.RadAjaxPanel, Telerik.Web.UI, Version=2009.1.311.35 Culture=neutral, PublicKeyToken=121fae78195ba3d4"

The old dll is in a different folder but there are no references to it.

Is my upgrading methods correct? How to solve the designer problem of not rendering the radcontrols?

I appreciate all the help.
Iana Tsolova
Telerik team
 answered on 27 Oct 2011
1 answer
84 views
How do I get the value (What radio button is currently selected) for a group of radio buttons from CS code behind?

Thanks
Princy
Top achievements
Rank 2
 answered on 27 Oct 2011
1 answer
151 views

Hello,

 

I'm trying to get Cell Values for Selected Rows Client-side, and I followed the following example below, but what about if the cell is a text box or drop down list?  I am getting null on innerhtml and value when I reference those controls within the grid.  Is there a different method to access controls within the grid and not necessarily the bound fields?

http://www.telerik.com/help/aspnet-ajax/grid-getting-cell-values-for-selected-rows-client-side.html

Shinu
Top achievements
Rank 2
 answered on 27 Oct 2011
2 answers
129 views
Hi

I am trying to change the mode of my radeditor to read only using client-side code. I did try modifying the enableEditing property but got the same result. On loading my page I want to be able to check the value of a hidden field and if it is 1 then set the editor into preview mode. If the hidden field is 0 then the editor should go into edit mode. I haven't got that far because the editor is giving inconsistent results. I can't get past just unconditionally setting the mode. Sometimes it works and sometimes I get the error in this thread title. It looks like the editor hasn't fully loaded in time for my onload javascript function. The relevant code is below. Please advise.

thx Michael

 


<body
onload="LoadPage();">



function LoadPage() 

 

var editor = $find("<%=txtVisitNotes.ClientID%>");

editor.set_mode(1);
}

Michael Hurse
Top achievements
Rank 1
 answered on 26 Oct 2011
3 answers
77 views
Howdy,

I'm trying to call a javascript function from the ToolTip pop-up in the calendar control. 

I have the calendar control's Display Template Path set to EventDetailDisplay.ascx

Then in the EventDetailDisplay.ascx I have the 'more' link defined as:

link = "<a style=\"float:right;\" href=\"\" onclick=\"HelloTemplate();\">more</a>";

The HelloTemplate() JS method lives on the page that contains the calendar control. 

For the life of me, I cannot seem to be able to call the HelloTemplate() JS method when I click on the more link in the tooltip popup. 

If you can lend any insight into it I would really appreciate it.

Thanks!

Justin

ps we are running v2009.2.701.35 of the webcontrols.

Justin
Top achievements
Rank 1
 answered on 26 Oct 2011
0 answers
90 views
Hi Telerik,

I have the following:


<telerik:RadAjaxLoadingPanel ID="LoadingPanelForSplitterFixing" Runat="Server" Skin="Web20" MinDisplayTime="500" Style="z-index: 90000 !important" IsSticky="True"/>

<telerik:RadButton ID="StartEditButton" Runat="Server" Skin="Web20" ButtonType="StandardButton" Text="Configure Dashboard" CssClass="editButton" OnClientClicked="EnableEditMode" AutoPostBack="False"/>

.editButton
{
    z-index: 20;
    position: absolute;
    margin-top: 2px;
    right: 130px;
}

I need to have the z-index set for the RadButton because it is clashing with some empty space generated by a RadTabStrip. This makes half of the button non-clickable because a div is overlapping it. As such, I set the z-index of the RadButton. This had the desired effect of bringing it above the RadTabStrip. But, I cannot get the RadLoadingPanel to render above the RadButton.

I believe that using cssClass is applying the z-index to the div-level element which is taking higher precedence than setting the style for the RadLoadingPanel...but I'm honestly not quite sure. How can I fix this rendering issue?

Thanks,

Sean

EDIT: Just to be crystal... if I set style="z-index 20" in the RadButton mark-up I see the same effect.

EDIT2: I figured it out. What I was doing initially was just showing the loading panel over everything. E.G. All I did was set it to sticky. After a bit of work adding some other desired features, I solved this bug by accident! I believe the issue is that I was not setting position: absolute (because I did not have the dimensions set for the loading panel).

if (postBackElement.indexOf("BASEUNDERPAGEVIEW") != -1) {
    loadingPanel = $find(loadingPanelForSplitterFixingID);
    loadingPanelFixSplitterVisible = true;
    $get(loadingPanelForSplitterFixingID).style.width = $(window).width() + "px";
    $get(loadingPanelForSplitterFixingID).style.height = $(window).height() - $('#TopBar').height() + "px";
    $get(loadingPanelForSplitterFixingID).style.position = "absolute";
    $get(loadingPanelForSplitterFixingID).style.top = $('#TopBar').height() + "px";
    $get(loadingPanelForSplitterFixingID).style.left = "0px";
}
   
and everything works just as expected!

 
Sean
Top achievements
Rank 2
 asked on 26 Oct 2011
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?